Skip to content

Commit 876cb34

Browse files
committed
Update args.
1 parent 43af6fc commit 876cb34

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

src/vs/server/@types/code-server-lib/index.d.ts

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,28 @@ declare global {
1616
}
1717

1818
export interface ServerParsedArgs {
19-
auth: AuthType;
19+
//#region
20+
auth?: AuthType;
21+
'ignore-last-opened'?: boolean;
22+
//#endregion
23+
2024
port?: string;
25+
'pick-port'?: string;
26+
/**
27+
* @deprecated use `connection-token` instead
28+
*/
2129
connectionToken?: string;
30+
/**
31+
* A secret token that must be provided by the web client with all requests.
32+
* Use only `[0-9A-Za-z\-]`.
33+
*
34+
* By default, a UUID will be generated every time the server starts up.
35+
*
36+
* If the server is running on a multi-user system, then consider
37+
* using `--connection-secret` which has the advantage that the token cannot
38+
* be seen by other users using `ps` or similar commands.
39+
*/
40+
'connection-token'?: string;
2241
/**
2342
* A path to a filename which will be read on startup.
2443
* Consider placing this file in a folder readable only by the same user (a `chmod 0700` directory).
@@ -50,7 +69,7 @@ declare global {
5069
'list-extensions'?: boolean;
5170
'locate-extension'?: string[];
5271
'show-versions'?: boolean;
53-
category?: string;
72+
'category'?: string;
5473

5574
'force-disable-user-env'?: boolean;
5675
'use-host-proxy'?: string;
@@ -69,8 +88,14 @@ declare global {
6988
'web-user-data-dir'?: string;
7089
'enable-sync'?: boolean;
7190
'github-auth'?: string;
72-
log?: string;
73-
logsPath?: string;
91+
'log'?: string;
92+
'logsPath'?: string;
93+
94+
// server cli
95+
help: boolean;
96+
version: boolean;
97+
98+
'accept-server-license-terms': boolean;
7499

75100
_: string[];
76101
}

0 commit comments

Comments
 (0)