microsoft / microsoft/vscode-cpptools
[Feature Request] Launch program with elevated privileges from non-elevated VS Code
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 6.2k
- フォーク
- 1.7k
- 平均マージ
- 14時間 46分
- マージ済み PR(30日)
- 61
説明
Type: Debugger
I have a program that needs to run elevated. Currently, the only possible way to do this it to run VS Code itself elevated. This has some unfortunate side effects like not being able to drag and drop files onto the editor to open them any more.
Using compile settings to change UAC Execution Level highestAvailable or requireAdministrator both fail with Unknown Error: 0x800702e4. (In the case of highestAvailable this seems like a bug.) The same error occurs when setting the exe Compatibility properties to Run this program as an administrator.
Can we get an option to request elevation on a launch task without required VS Code itself to be elevated? This appears to possible on Windows.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、デバッガーの起動タスク処理と、Windows について説明されている既存の UAC の動作を確認します。highestAvailable と requireAdministrator を使用して 0x800702e4 の失敗を再現し、次に、非昇格の VS Code インスタンスからの昇格起動が成功した場合に何を実証すべきかを定義します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript, vscode
- 領域
- devtools, operating-systems, security
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 28/100