Skip to content

Commit

Permalink
Allow the extension to be active in untrusted workspaces
Browse files Browse the repository at this point in the history
Closes editorconfig#305

Just ran into this today. At an absolute minimum, the language definition and grammar should be available even in untrusted workspaces, but a quick look suggests that the generate command is also safe. There is no substitution in the template, plus the user would have to run the command manually. At worst, untrusted files could set their own `.editorconfig`, which only applies to files below in the directory hierarchy: This is probably wanted behavior even in an untrusted workspace.
  • Loading branch information
jashug authored Feb 22, 2024
1 parent b86ebd4 commit 7b2b79a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@
"virtualWorkspaces": {
"supported": false,
"description": "The `editorconfig` dependency requires fs access for parsing the config to use."
},
"untrustedWorkspaces": {
"supported": true
}
},
"dependencies": {
Expand Down

0 comments on commit 7b2b79a

Please sign in to comment.