Skip to content

Commit d8a5d5b

Browse files
committed
add CLI argument --disable-workspace-trust
Add CLI flag to disable workspace trust feature, as described in documentation: https://code.visualstudio.com/docs/editor/workspace-trust
1 parent ba68656 commit d8a5d5b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/node/cli.ts

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export interface UserProvidedCodeArgs {
5050
"github-auth"?: string
5151
"disable-update-check"?: boolean
5252
"disable-file-downloads"?: boolean
53+
"disable-workspace-trust"?: boolean
5354
}
5455

5556
/**
@@ -163,6 +164,11 @@ export const options: Options<Required<UserProvidedArgs>> = {
163164
description:
164165
"Disable file downloads from Code. This can also be set with CS_DISABLE_FILE_DOWNLOADS set to 'true' or '1'.",
165166
},
167+
"disable-workspace-trust": {
168+
type: "boolean",
169+
description:
170+
"Disable Workspace Trust feature. This switch only affects the current session."
171+
},
166172
// --enable can be used to enable experimental features. These features
167173
// provide no guarantees.
168174
enable: { type: "string[]" },

0 commit comments

Comments
 (0)