Skip to content

Commit 0ee0e46

Browse files
authored
Merge pull request #7925 from microsoft/run-admin
Update run as admin instructions
2 parents 655d4d5 + 95dd3e9 commit 0ee0e46

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/setup/windows.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,17 @@ Using the Registry Editor (regedit):
106106

107107
### Unable to run as admin when AppLocker is enabled
108108

109-
With the introduction of process sandboxing (discussed in this [blog post](https://code.visualstudio.com/blogs/2022/11/28/vscode-sandbox)) running as administrator is currently unsupported when AppLocker is configured due to a limitation of the runtime sandbox. If your work requires that you run VS Code from an elevated terminal, you can launch `code` with `--no-sandbox --disable-gpu-sandbox` as a workaround.
109+
With the introduction of process sandboxing (discussed in this [blog post](https://code.visualstudio.com/blogs/2022/11/28/vscode-sandbox)) running as administrator is currently unsupported when AppLocker is configured due to a limitation of the runtime sandbox.
110+
111+
If your work requires that you run VS Code from an elevated terminal:
112+
113+
1. In VS Code, run the **Preferences: Configure Runtime Arguments** command in the Command Palette (`kb(workbench.action.showCommands)`)
114+
115+
This command opens an `argv.json` file to configure runtime arguments for VS Code. You might see some default arguments there already.
116+
117+
1. Add `"disable-chromium-sandbox": true` to the `argv.json` file.
118+
119+
1. Restart VS Code. You should now be able to run VS Code in an elevated terminal.
110120

111121
Subscribe to [issue #122951](https://github.com/microsoft/vscode/issues/122951) to receive updates.
112122

0 commit comments

Comments
 (0)