Skip to content

Commit 6acce22

Browse files
committed
Use the workspace trust feature
1 parent 6bf616f commit 6acce22

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

extensions/ql-vscode/package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
"extensionDependencies": [
2222
"hbenl.vscode-test-explorer"
2323
],
24+
"capabilities": {
25+
"untrustedWorkspaces": {
26+
"supported": "limited",
27+
"description": "Workspace trust is required to execute commands that can contain arbitrary paths. ",
28+
"restrictedConfigurations": [
29+
"codeQL.cli.executablePath",
30+
"codeQL.runningTests.additionalTestArguments"
31+
]
32+
}
33+
},
2434
"activationEvents": [
2535
"onLanguage:ql",
2636
"onView:codeQLDatabases",
@@ -118,7 +128,7 @@
118128
"title": "CodeQL",
119129
"properties": {
120130
"codeQL.cli.executablePath": {
121-
"scope": "machine",
131+
"scope": "window",
122132
"type": "string",
123133
"default": "",
124134
"description": "Path to the CodeQL executable that should be used by the CodeQL extension. The executable is named `codeql` on Linux/Mac and `codeql.exe` on Windows. If empty, the extension will look for a CodeQL executable on your shell PATH, or if CodeQL is not on your PATH, download and manage its own CodeQL executable."
@@ -190,7 +200,7 @@
190200
"description": "Default string for how to label query history items. %t is the time of the query, %q is the query name, %d is the database name, %r is the number of results, and %s is a status string."
191201
},
192202
"codeQL.runningTests.additionalTestArguments": {
193-
"scope": "machine",
203+
"scope": "window",
194204
"type": "array",
195205
"default": [],
196206
"markdownDescription": "Additional command line arguments to pass to the CLI when [running tests](https://codeql.github.com/docs/codeql-cli/manual/test-run/). This setting should be an array of strings, each containing an argument to be passed."

0 commit comments

Comments
 (0)