@@ -9,133 +9,124 @@ export interface Options {
9
9
}
10
10
11
11
export interface InitMessage {
12
- type : ' init' ;
13
- id : string ;
14
- options : VscodeOptions ;
12
+ type : " init"
13
+ id : string
14
+ options : VscodeOptions
15
15
}
16
16
17
- export type Query = { [ key : string ] : string | string [ ] | undefined | Query | Query [ ] } ;
17
+ export type Query = { [ key : string ] : string | string [ ] | undefined | Query | Query [ ] }
18
18
19
19
export interface SocketMessage {
20
- type : ' socket' ;
21
- query : Query ;
22
- permessageDeflate : boolean ;
20
+ type : " socket"
21
+ query : Query
22
+ permessageDeflate : boolean
23
23
}
24
24
25
25
export interface CliMessage {
26
- type : ' cli' ;
27
- args : Args ;
26
+ type : " cli"
27
+ args : Args
28
28
}
29
29
30
30
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
40
40
}
41
41
42
- export type CodeServerMessage = InitMessage | SocketMessage | CliMessage ;
42
+ export type CodeServerMessage = InitMessage | SocketMessage | CliMessage
43
43
44
44
export interface ReadyMessage {
45
- type : ' ready' ;
45
+ type : " ready"
46
46
}
47
47
48
48
export interface OptionsMessage {
49
- id : string ;
50
- type : ' options' ;
51
- options : WorkbenchOptions ;
49
+ id : string
50
+ type : " options"
51
+ options : WorkbenchOptions
52
52
}
53
53
54
- export type VscodeMessage = ReadyMessage | OptionsMessage ;
54
+ export type VscodeMessage = ReadyMessage | OptionsMessage
55
55
56
56
export interface StartPath {
57
- url : string ;
58
- workspace : boolean ;
57
+ url : string
58
+ workspace : boolean
59
59
}
60
60
61
61
export interface Args {
62
- ' user-data-dir' ?: string ;
62
+ " user-data-dir" ?: string
63
63
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
70
70
71
71
locale ?: string
72
72
73
- log ?: string ;
74
- verbose ?: boolean ;
75
- home ?: string ;
73
+ log ?: string
74
+ verbose ?: boolean
76
75
77
- _ : string [ ] ;
76
+ _ : string [ ]
78
77
}
79
78
80
79
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
84
83
}
85
84
86
85
export interface VscodeOptionsMessage extends VscodeOptions {
87
- readonly id : string ;
86
+ readonly id : string
88
87
}
89
88
90
89
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
96
95
}
97
96
98
97
export interface NLSConfiguration {
99
- locale : string ;
98
+ locale : string
100
99
availableLanguages : {
101
- [ key : string ] : string ;
102
- } ;
103
- pseudo ?: boolean ;
104
- _languagePackSupport ?: boolean ;
100
+ [ key : string ] : string
101
+ }
102
+ pseudo ?: boolean
103
+ _languagePackSupport ?: boolean
105
104
}
106
105
107
106
export interface WorkbenchOptions {
108
107
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
113
112
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
126
117
readonly productConfiguration : {
127
- codeServerVersion ?: string ;
118
+ codeServerVersion ?: string
128
119
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
137
128
}
138
129
139
130
export interface WorkbenchOptionsMessage {
140
- id : string ;
131
+ id : string
141
132
}
0 commit comments