Path: blob/main/src/vs/platform/environment/common/argv.ts
3296 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'install-source'?: string;108'add-mcp'?: string[];109'disable-updates'?: boolean;110'transient'?: boolean;111'use-inmemory-secretstorage'?: boolean;112'password-store'?: string;113'disable-workspace-trust'?: boolean;114'disable-crash-reporter'?: boolean;115'crash-reporter-directory'?: string;116'crash-reporter-id'?: string;117'skip-add-to-recently-opened'?: boolean;118'file-write'?: boolean;119'file-chmod'?: boolean;120'enable-smoke-test-driver'?: boolean;121'remote'?: string;122'force'?: boolean;123'do-not-sync'?: boolean;124'preserve-env'?: boolean;125'force-user-env'?: boolean;126'force-disable-user-env'?: boolean;127'sync'?: 'on' | 'off';128'logsPath'?: string;129'__enable-file-policy'?: boolean;130editSessionId?: string;131continueOn?: string;132'locate-shell-integration-path'?: string;133'profile'?: string;134'profile-temp'?: boolean;135'disable-chromium-sandbox'?: boolean;136sandbox?: boolean;137'enable-coi'?: boolean;138'unresponsive-sample-interval'?: string;139'unresponsive-sample-period'?: string;140'enable-rdp-display-tracking'?: boolean;141'disable-layout-restore'?: boolean;142'disable-experiments'?: boolean;143144// chromium command line args: https://electronjs.org/docs/all#supported-chrome-command-line-switches145'no-proxy-server'?: boolean;146'no-sandbox'?: boolean;147'proxy-server'?: string;148'proxy-bypass-list'?: string;149'proxy-pac-url'?: string;150'inspect'?: string;151'inspect-brk'?: string;152'js-flags'?: string;153'disable-lcd-text'?: boolean;154'disable-gpu'?: boolean;155'disable-gpu-sandbox'?: boolean;156'nolazy'?: boolean;157'force-device-scale-factor'?: string;158'force-renderer-accessibility'?: boolean;159'ignore-certificate-errors'?: boolean;160'allow-insecure-localhost'?: boolean;161'log-net-log'?: string;162'vmodule'?: string;163'disable-dev-shm-usage'?: boolean;164'ozone-platform'?: string;165'enable-tracing'?: string;166'trace-startup-format'?: string;167'trace-startup-file'?: string;168'trace-startup-duration'?: string;169'xdg-portal-required-version'?: string;170}171172173