Skip to content

Commit 6ab5985

Browse files
authored
Merge pull request #82486 from microsoft/aeschli/add-chromium-args
Add chromium command line args
2 parents 633efb9 + b9dc1ce commit 6ab5985

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/vs/platform/environment/common/environment.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ export interface ParsedArgs {
7575
'force'?: boolean;
7676
'force-user-env'?: boolean;
7777

78-
// node flags
78+
// chromium command line args: https://electronjs.org/docs/all#supported-chrome-command-line-switches
79+
'no-proxy-server'?: boolean;
80+
'proxy-server'?: string;
81+
'proxy-bypass-list'?: string;
82+
'proxy-pac-url'?: string;
83+
'inspect'?: string;
84+
'inspect-brk'?: string;
7985
'js-flags'?: string;
8086
'disable-gpu'?: boolean;
8187
'nolazy'?: boolean;

src/vs/platform/environment/node/argv.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,14 @@ export const OPTIONS: OptionDescriptions<Required<ParsedArgs>> = {
112112
'disable-inspect': { type: 'boolean' },
113113
'force-user-env': { type: 'boolean' },
114114

115+
// chromium flags
116+
'no-proxy-server': { type: 'boolean' },
117+
'proxy-server': { type: 'string' },
118+
'proxy-bypass-list': { type: 'string' },
119+
'proxy-pac-url': { type: 'string' },
115120
'js-flags': { type: 'string' }, // chrome js flags
121+
'inspect': { type: 'string' },
122+
'inspect-brk': { type: 'string' },
116123
'nolazy': { type: 'boolean' }, // node inspect
117124
'_urls': { type: 'string[]' },
118125

0 commit comments

Comments
 (0)