Skip to content

Commit bcdca86

Browse files
committed
refactor: change goHome test to helpAbout
1 parent 0c27083 commit bcdca86

File tree

3 files changed

+307
-282
lines changed

3 files changed

+307
-282
lines changed

lib/vscode/src/vs/server/ipc.d.ts

Lines changed: 68 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -9,133 +9,124 @@ export interface Options {
99
}
1010

1111
export interface InitMessage {
12-
type: 'init';
13-
id: string;
14-
options: VscodeOptions;
12+
type: "init"
13+
id: string
14+
options: VscodeOptions
1515
}
1616

17-
export type Query = { [key: string]: string | string[] | undefined | Query | Query[] };
17+
export type Query = { [key: string]: string | string[] | undefined | Query | Query[] }
1818

1919
export interface SocketMessage {
20-
type: 'socket';
21-
query: Query;
22-
permessageDeflate: boolean;
20+
type: "socket"
21+
query: Query
22+
permessageDeflate: boolean
2323
}
2424

2525
export interface CliMessage {
26-
type: 'cli';
27-
args: Args;
26+
type: "cli"
27+
args: Args
2828
}
2929

3030
export interface OpenCommandPipeArgs {
31-
type: 'open';
32-
fileURIs?: string[];
33-
folderURIs: string[];
34-
forceNewWindow?: boolean;
35-
diffMode?: boolean;
36-
addMode?: boolean;
37-
gotoLineMode?: boolean;
38-
forceReuseWindow?: boolean;
39-
waitMarkerFilePath?: string;
31+
type: "open"
32+
fileURIs?: string[]
33+
folderURIs: string[]
34+
forceNewWindow?: boolean
35+
diffMode?: boolean
36+
addMode?: boolean
37+
gotoLineMode?: boolean
38+
forceReuseWindow?: boolean
39+
waitMarkerFilePath?: string
4040
}
4141

42-
export type CodeServerMessage = InitMessage | SocketMessage | CliMessage;
42+
export type CodeServerMessage = InitMessage | SocketMessage | CliMessage
4343

4444
export interface ReadyMessage {
45-
type: 'ready';
45+
type: "ready"
4646
}
4747

4848
export interface OptionsMessage {
49-
id: string;
50-
type: 'options';
51-
options: WorkbenchOptions;
49+
id: string
50+
type: "options"
51+
options: WorkbenchOptions
5252
}
5353

54-
export type VscodeMessage = ReadyMessage | OptionsMessage;
54+
export type VscodeMessage = ReadyMessage | OptionsMessage
5555

5656
export interface StartPath {
57-
url: string;
58-
workspace: boolean;
57+
url: string
58+
workspace: boolean
5959
}
6060

6161
export interface Args {
62-
'user-data-dir'?: string;
62+
"user-data-dir"?: string
6363

64-
'enable-proposed-api'?: string[];
65-
'extensions-dir'?: string;
66-
'builtin-extensions-dir'?: string;
67-
'extra-extensions-dir'?: string[];
68-
'extra-builtin-extensions-dir'?: string[];
69-
'ignore-last-opened'?: boolean;
64+
"enable-proposed-api"?: string[]
65+
"extensions-dir"?: string
66+
"builtin-extensions-dir"?: string
67+
"extra-extensions-dir"?: string[]
68+
"extra-builtin-extensions-dir"?: string[]
69+
"ignore-last-opened"?: boolean
7070

7171
locale?: string
7272

73-
log?: string;
74-
verbose?: boolean;
75-
home?: string;
73+
log?: string
74+
verbose?: boolean
7675

77-
_: string[];
76+
_: string[]
7877
}
7978

8079
export interface VscodeOptions {
81-
readonly args: Args;
82-
readonly remoteAuthority: string;
83-
readonly startPath?: StartPath;
80+
readonly args: Args
81+
readonly remoteAuthority: string
82+
readonly startPath?: StartPath
8483
}
8584

8685
export interface VscodeOptionsMessage extends VscodeOptions {
87-
readonly id: string;
86+
readonly id: string
8887
}
8988

9089
export interface UriComponents {
91-
readonly scheme: string;
92-
readonly authority: string;
93-
readonly path: string;
94-
readonly query: string;
95-
readonly fragment: string;
90+
readonly scheme: string
91+
readonly authority: string
92+
readonly path: string
93+
readonly query: string
94+
readonly fragment: string
9695
}
9796

9897
export interface NLSConfiguration {
99-
locale: string;
98+
locale: string
10099
availableLanguages: {
101-
[key: string]: string;
102-
};
103-
pseudo?: boolean;
104-
_languagePackSupport?: boolean;
100+
[key: string]: string
101+
}
102+
pseudo?: boolean
103+
_languagePackSupport?: boolean
105104
}
106105

107106
export interface WorkbenchOptions {
108107
readonly workbenchWebConfiguration: {
109-
readonly remoteAuthority?: string;
110-
readonly folderUri?: UriComponents;
111-
readonly workspaceUri?: UriComponents;
112-
readonly logLevel?: number;
108+
readonly remoteAuthority?: string
109+
readonly folderUri?: UriComponents
110+
readonly workspaceUri?: UriComponents
111+
readonly logLevel?: number
113112
readonly workspaceProvider?: {
114-
payload: [
115-
['userDataPath', string],
116-
['enableProposedApi', string],
117-
];
118-
};
119-
readonly homeIndicator?: {
120-
href: string,
121-
icon: string,
122-
title: string,
123-
},
124-
};
125-
readonly remoteUserDataUri: UriComponents;
113+
payload: [["userDataPath", string], ["enableProposedApi", string]]
114+
}
115+
}
116+
readonly remoteUserDataUri: UriComponents
126117
readonly productConfiguration: {
127-
codeServerVersion?: string;
118+
codeServerVersion?: string
128119
readonly extensionsGallery?: {
129-
readonly serviceUrl: string;
130-
readonly itemUrl: string;
131-
readonly controlUrl: string;
132-
readonly recommendationsUrl: string;
133-
};
134-
};
135-
readonly nlsConfiguration: NLSConfiguration;
136-
readonly commit: string;
120+
readonly serviceUrl: string
121+
readonly itemUrl: string
122+
readonly controlUrl: string
123+
readonly recommendationsUrl: string
124+
}
125+
}
126+
readonly nlsConfiguration: NLSConfiguration
127+
readonly commit: string
137128
}
138129

139130
export interface WorkbenchOptionsMessage {
140-
id: string;
131+
id: string
141132
}

0 commit comments

Comments
 (0)