Skip to content

Commit 13bf3f8

Browse files
author
Benjamin Pasero
committed
bring back: add ignore-certificate-error & allow-insecure-localhost. Clarify unknown option warning
1 parent b9dd2ef commit 13bf3f8

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ export interface ParsedArgs {
8787
'nolazy'?: boolean;
8888
'force-device-scale-factor'?: string;
8989
'force-renderer-accessibility'?: boolean;
90+
'ignore-certificate-error'?: boolean;
91+
'allow-insecure-localhost'?: boolean;
9092
}
9193

9294
export const IEnvironmentService = createDecorator<IEnvironmentService>('environmentService');

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ export const OPTIONS: OptionDescriptions<Required<ParsedArgs>> = {
119119
'nolazy': { type: 'boolean' }, // node inspect
120120
'force-device-scale-factor': { type: 'string' },
121121
'force-renderer-accessibility': { type: 'boolean' },
122+
'ignore-certificate-error': { type: 'boolean' },
123+
'allow-insecure-localhost': { type: 'boolean' },
122124
'_urls': { type: 'string[]' },
123125

124126
_: { type: 'string[]' } // main arguments

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { parseArgs, ErrorReporter, OPTIONS } from 'vs/platform/environment/node/
1313
function parseAndValidate(cmdLineArgs: string[], reportWarnings: boolean): ParsedArgs {
1414
const errorReporter: ErrorReporter = {
1515
onUnknownOption: (id) => {
16-
console.warn(localize('unknownOption', "Option '{0}' is unknown. Ignoring.", id));
16+
console.warn(localize('unknownOption', "Warning: '{0}' is not in the list of known options, but still passed to Electron/Chromium.", id));
1717
},
1818
onMultipleValues: (id, val) => {
1919
console.warn(localize('multipleValues', "Option '{0}' is defined more than once. Using value '{1}.'", id, val));

0 commit comments

Comments
 (0)