microsoft / microsoft/vscode-cpptools
[Feature Request] Launch program with elevated privileges from non-elevated VS Code
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the debugger launch-task handling and the existing UAC behavior described for Windows. Reproduce the 0x800702e4 failure with highestAvailable and requireAdministrator, then define what a successful elevated launch from a non-elevated VS Code instance should demonstrate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools, operating-systems, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100