Path: blob/main/src/vs/platform/environment/common/argv.ts
5253 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45export interface INativeCliOptions {6'cli-data-dir'?: string;7'disable-telemetry'?: boolean;8'telemetry-level'?: string;9}1011/**12* A list of command line arguments we support natively.13*/14export interface NativeParsedArgs {1516// subcommands17tunnel?: INativeCliOptions & {18user: {19login: {20'access-token'?: string;21'provider'?: string;22};23};24};25'serve-web'?: INativeCliOptions;26chat?: {27_: string[];28'add-file'?: string[];29mode?: string;30maximize?: boolean;31'reuse-window'?: boolean;32'new-window'?: boolean;33profile?: string;34help?: boolean;35};3637// arguments38_: string[];39'folder-uri'?: string[]; // undefined or array of 1 or more40'file-uri'?: string[]; // undefined or array of 1 or more41_urls?: string[];42help?: boolean;43version?: boolean;44telemetry?: boolean;45status?: boolean;46wait?: boolean;47waitMarkerFilePath?: string;48diff?: boolean;49merge?: boolean;50add?: boolean;51remove?: boolean;52goto?: boolean;53'new-window'?: boolean;54'reuse-window'?: boolean;55locale?: string;56'user-data-dir'?: string;57'prof-startup'?: boolean;58'prof-startup-prefix'?: string;59'prof-append-timers'?: string;60'prof-duration-markers'?: string[];61'prof-duration-markers-file'?: string;62'prof-v8-extensions'?: boolean;63'no-cached-data'?: boolean;64verbose?: boolean;65trace?: boolean;66'trace-memory-infra'?: boolean;67'trace-category-filter'?: string;68'trace-options'?: string;69'open-devtools'?: boolean;70log?: string[];71logExtensionHostCommunication?: boolean;72'extensions-dir'?: string;73'extensions-download-dir'?: string;74'builtin-extensions-dir'?: string;75extensionDevelopmentPath?: string[]; // undefined or array of 1 or more local paths or URIs76extensionTestsPath?: string; // either a local path or a URI77extensionDevelopmentKind?: string[];78extensionEnvironment?: string; // JSON-stringified Record<string, string> object79'inspect-extensions'?: string;80'inspect-brk-extensions'?: string;81debugId?: string;82debugRenderer?: boolean; // whether we expect a debugger (js-debug) to attach to the renderer, incl webviews+webworker83'inspect-search'?: string;84'inspect-brk-search'?: string;85'inspect-ptyhost'?: string;86'inspect-brk-ptyhost'?: string;87'inspect-sharedprocess'?: string;88'inspect-brk-sharedprocess'?: string;89'disable-extensions'?: boolean;90'disable-extension'?: string[]; // undefined or array of 1 or more91'list-extensions'?: boolean;92'show-versions'?: boolean;93'category'?: string;94'install-extension'?: string[]; // undefined or array of 1 or more95'pre-release'?: boolean;96'install-builtin-extension'?: string[]; // undefined or array of 1 or more97'uninstall-extension'?: string[]; // undefined or array of 1 or more98'update-extensions'?: boolean;99'do-not-include-pack-dependencies'?: boolean;100'locate-extension'?: string[]; // undefined or array of 1 or more101'enable-proposed-api'?: string[]; // undefined or array of 1 or more102'open-url'?: boolean;103'skip-release-notes'?: boolean;104'skip-welcome'?: boolean;105'disable-telemetry'?: boolean;106'export-default-configuration'?: string;107'export-policy-data'?: string;108'install-source'?: string;109'add-mcp'?: string[];110'disable-updates'?: boolean;111'transient'?: boolean;112'use-inmemory-secretstorage'?: boolean;113'password-store'?: string;114'disable-workspace-trust'?: boolean;115'disable-crash-reporter'?: boolean;116'crash-reporter-directory'?: string;117'crash-reporter-id'?: string;118'skip-add-to-recently-opened'?: boolean;119'file-write'?: boolean;120'file-chmod'?: boolean;121'enable-smoke-test-driver'?: boolean;122'remote'?: string;123'force'?: boolean;124'do-not-sync'?: boolean;125'preserve-env'?: boolean;126'force-user-env'?: boolean;127'force-disable-user-env'?: boolean;128'sync'?: 'on' | 'off';129'logsPath'?: string;130'__enable-file-policy'?: boolean;131editSessionId?: string;132continueOn?: string;133'locate-shell-integration-path'?: string;134'profile'?: string;135'profile-temp'?: boolean;136'disable-chromium-sandbox'?: boolean;137sandbox?: boolean;138'enable-coi'?: boolean;139'unresponsive-sample-interval'?: string;140'unresponsive-sample-period'?: string;141'enable-rdp-display-tracking'?: boolean;142'disable-layout-restore'?: boolean;143'disable-experiments'?: boolean;144145// chromium command line args: https://electronjs.org/docs/all#supported-chrome-command-line-switches146'no-proxy-server'?: boolean;147'no-sandbox'?: boolean;148'proxy-server'?: string;149'proxy-bypass-list'?: string;150'proxy-pac-url'?: string;151'inspect'?: string;152'inspect-brk'?: string;153'js-flags'?: string;154'disable-lcd-text'?: boolean;155'disable-gpu'?: boolean;156'disable-gpu-sandbox'?: boolean;157'nolazy'?: boolean;158'force-device-scale-factor'?: string;159'force-renderer-accessibility'?: boolean;160'ignore-certificate-errors'?: boolean;161'allow-insecure-localhost'?: boolean;162'log-net-log'?: string;163'vmodule'?: string;164'disable-dev-shm-usage'?: boolean;165'ozone-platform'?: string;166'enable-tracing'?: string;167'trace-startup-format'?: string;168'trace-startup-file'?: string;169'trace-startup-duration'?: string;170'xdg-portal-required-version'?: string;171}172173174