Skip to content

Commit

Permalink
Declare "Trusted Workspaces" support. (#15521)
Browse files Browse the repository at this point in the history
(closes #15525)

This change enables the new "Trusted Workspaces" feature of VS Code (see microsoft/vscode#106488) for the extension.  For now a user must put `"workspace.trustEnabled": true` in their settings.json to trigger the functionality (and it only works on VS Code insiders).
  • Loading branch information
ericsnowcurrently authored Mar 3, 2021
1 parent 5e82a6b commit 07c1d15
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions news/3 Code Health/15525.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Add support for "Trusted Workspaces".

"Trusted Workspaces" is an upcoming feature in VS Code. (See:
https://github.com/microsoft/vscode/issues/106488.) For now you need
the following for the experience:

* the latest VS Code Insiders
* add `"workspace.trustEnabled": true` to your user settings.json

At that point, when the Python extension would normally activate, VS Code
will prompt you about whether or not the current workspace is trusted.
If not then the extension will be disabled (but only for that workspace).
As soon as the workspace is marked as trusted, the extension will
activate.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"Machine Learning",
"Notebooks"
],
"requiresWorkspaceTrust": "onStart",
"activationEvents": [
"onLanguage:python",
"onDebugResolve:python",
Expand Down

0 comments on commit 07c1d15

Please sign in to comment.