microsoft / microsoft/vscode-cpptools
[Feature Request] Launch program with elevated privileges from non-elevated VS Code
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando la gestione delle attività di avvio del debugger e il comportamento UAC esistente descritto per Windows. Riproduci l'errore 0x800702e4 con highestAvailable e requireAdministrator, quindi definisci cosa dovrebbe dimostrare un avvio con privilegi elevati riuscito da un'istanza di VS Code non elevata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript, vscode
- Ambito
- devtools, operating-systems, security
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 28/100