Skip to content

Commit

Permalink
Merge pull request #82486 from microsoft/aeschli/add-chromium-args
Browse files Browse the repository at this point in the history
Add chromium command line args
  • Loading branch information
joaomoreno authored Oct 15, 2019
2 parents 633efb9 + b9dc1ce commit 6ab5985
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/vs/platform/environment/common/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ export interface ParsedArgs {
'force'?: boolean;
'force-user-env'?: boolean;

// node flags
// chromium command line args: https://electronjs.org/docs/all#supported-chrome-command-line-switches
'no-proxy-server'?: boolean;
'proxy-server'?: string;
'proxy-bypass-list'?: string;
'proxy-pac-url'?: string;
'inspect'?: string;
'inspect-brk'?: string;
'js-flags'?: string;
'disable-gpu'?: boolean;
'nolazy'?: boolean;
Expand Down
7 changes: 7 additions & 0 deletions src/vs/platform/environment/node/argv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,14 @@ export const OPTIONS: OptionDescriptions<Required<ParsedArgs>> = {
'disable-inspect': { type: 'boolean' },
'force-user-env': { type: 'boolean' },

// chromium flags
'no-proxy-server': { type: 'boolean' },
'proxy-server': { type: 'string' },
'proxy-bypass-list': { type: 'string' },
'proxy-pac-url': { type: 'string' },
'js-flags': { type: 'string' }, // chrome js flags
'inspect': { type: 'string' },
'inspect-brk': { type: 'string' },
'nolazy': { type: 'boolean' }, // node inspect
'_urls': { type: 'string[]' },

Expand Down

0 comments on commit 6ab5985

Please sign in to comment.