You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/setup/windows.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,17 @@ Using the Registry Editor (regedit):
106
106
107
107
### Unable to run as admin when AppLocker is enabled
108
108
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.
110
120
111
121
Subscribe to [issue #122951](https://github.com/microsoft/vscode/issues/122951) to receive updates.
0 commit comments