Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/platform/environment/common/argv.ts
3296 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
export interface INativeCliOptions {
7
'cli-data-dir'?: string;
8
'disable-telemetry'?: boolean;
9
'telemetry-level'?: string;
10
}
11
12
/**
13
* A list of command line arguments we support natively.
14
*/
15
export interface NativeParsedArgs {
16
17
// subcommands
18
tunnel?: INativeCliOptions & {
19
user: {
20
login: {
21
'access-token'?: string;
22
'provider'?: string;
23
};
24
};
25
};
26
'serve-web'?: INativeCliOptions;
27
chat?: {
28
_: string[];
29
'add-file'?: string[];
30
mode?: string;
31
maximize?: boolean;
32
'reuse-window'?: boolean;
33
'new-window'?: boolean;
34
profile?: string;
35
help?: boolean;
36
};
37
38
// arguments
39
_: string[];
40
'folder-uri'?: string[]; // undefined or array of 1 or more
41
'file-uri'?: string[]; // undefined or array of 1 or more
42
_urls?: string[];
43
help?: boolean;
44
version?: boolean;
45
telemetry?: boolean;
46
status?: boolean;
47
wait?: boolean;
48
waitMarkerFilePath?: string;
49
diff?: boolean;
50
merge?: boolean;
51
add?: boolean;
52
remove?: boolean;
53
goto?: boolean;
54
'new-window'?: boolean;
55
'reuse-window'?: boolean;
56
locale?: string;
57
'user-data-dir'?: string;
58
'prof-startup'?: boolean;
59
'prof-startup-prefix'?: string;
60
'prof-append-timers'?: string;
61
'prof-duration-markers'?: string[];
62
'prof-duration-markers-file'?: string;
63
'prof-v8-extensions'?: boolean;
64
'no-cached-data'?: boolean;
65
verbose?: boolean;
66
trace?: boolean;
67
'trace-memory-infra'?: boolean;
68
'trace-category-filter'?: string;
69
'trace-options'?: string;
70
'open-devtools'?: boolean;
71
log?: string[];
72
logExtensionHostCommunication?: boolean;
73
'extensions-dir'?: string;
74
'extensions-download-dir'?: string;
75
'builtin-extensions-dir'?: string;
76
extensionDevelopmentPath?: string[]; // undefined or array of 1 or more local paths or URIs
77
extensionTestsPath?: string; // either a local path or a URI
78
extensionDevelopmentKind?: string[];
79
extensionEnvironment?: string; // JSON-stringified Record<string, string> object
80
'inspect-extensions'?: string;
81
'inspect-brk-extensions'?: string;
82
debugId?: string;
83
debugRenderer?: boolean; // whether we expect a debugger (js-debug) to attach to the renderer, incl webviews+webworker
84
'inspect-search'?: string;
85
'inspect-brk-search'?: string;
86
'inspect-ptyhost'?: string;
87
'inspect-brk-ptyhost'?: string;
88
'inspect-sharedprocess'?: string;
89
'inspect-brk-sharedprocess'?: string;
90
'disable-extensions'?: boolean;
91
'disable-extension'?: string[]; // undefined or array of 1 or more
92
'list-extensions'?: boolean;
93
'show-versions'?: boolean;
94
'category'?: string;
95
'install-extension'?: string[]; // undefined or array of 1 or more
96
'pre-release'?: boolean;
97
'install-builtin-extension'?: string[]; // undefined or array of 1 or more
98
'uninstall-extension'?: string[]; // undefined or array of 1 or more
99
'update-extensions'?: boolean;
100
'do-not-include-pack-dependencies'?: boolean;
101
'locate-extension'?: string[]; // undefined or array of 1 or more
102
'enable-proposed-api'?: string[]; // undefined or array of 1 or more
103
'open-url'?: boolean;
104
'skip-release-notes'?: boolean;
105
'skip-welcome'?: boolean;
106
'disable-telemetry'?: boolean;
107
'export-default-configuration'?: 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;
131
editSessionId?: string;
132
continueOn?: string;
133
'locate-shell-integration-path'?: string;
134
'profile'?: string;
135
'profile-temp'?: boolean;
136
'disable-chromium-sandbox'?: boolean;
137
sandbox?: 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;
144
145
// chromium command line args: https://electronjs.org/docs/all#supported-chrome-command-line-switches
146
'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
}
172
173