args._.forEach(arg=>assert(/^(\w:)?[^:]+(:\d*){0,2}$/.test(arg),localize('gotoValidation',"Arguments in `--goto` mode should be in the format of `FILE(:LINE(:CHARACTER))`.")));
}
...
...
@@ -52,7 +52,9 @@ export function parseMainProcessArgv(processArgv: string[]): ParsedArgs {
args=stripAppPath(args)||[];
}
returnparseAndValidate(args);
// If called from CLI, don't report warnings as they are already reported.
letreportWarnings=!process.env['VSCODE_CLI'];
returnparseAndValidate(args,reportWarnings);
}
/**
...
...
@@ -65,5 +67,5 @@ export function parseCLIProcessArgv(processArgv: string[]): ParsedArgs {