ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / extensions / terminal-suggest / src / test / completions / code.test.ts 341 строк · изменён 14 нояб., 04:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
import 'mocha' ;
import codeCompletionSpec from '../../completions/code' ;
import { testPaths, type ISuiteSpec , type ITestSpec } from '../helpers' ;
import codeInsidersCompletionSpec from '../../completions/code-insiders' ;
import codeTunnelCompletionSpec from '../../completions/code-tunnel' ;
export const codeSpecOptionsAndSubcommands = [
'-a <folder>' ,
'-d <file> <file>' ,
'-g <file:line[:character]>' ,
'-h' ,
'-m <file> <file> <base> <result>' ,
'-n' ,
'-r' ,
'-s'
executable ITestSpec
localeOptions
categoryOptions
logOptions
syncOptions
chatOptions
agentCommonFlags
agentHostFlags
agentConnectionFlags
agentSubcommands
agentHelpSubcommands
typingTests ITestSpec
i i executable length i
expectedCompletions label executable description executable codeCompletionSpec name codeCompletionSpec Fig Subcommand description codeInsidersCompletionSpec Fig Subcommand description
input
typingTests input expectedCompletions expectedResourceRequests input type cwd testPaths cwd
typingTests
input expectedCompletions codeSpecOptionsAndSubcommands expectedResourceRequests type cwd testPaths cwd
input expectedResourceRequests type cwd testPaths cwd
input expectedCompletions
input expectedCompletions codeSpecOptionsAndSubcommands c c expectedResourceRequests type cwd testPaths cwd
input expectedCompletions codeSpecOptionsAndSubcommands c c expectedResourceRequests type cwd testPaths cwd
input expectedCompletions codeSpecOptionsAndSubcommands c c expectedResourceRequests type cwd testPaths cwd
input expectedCompletions executable
input expectedCompletions logOptions
input expectedCompletions localeOptions
input expectedResourceRequests type cwd testPaths cwd
input expectedResourceRequests type cwd testPaths cwd
input expectedResourceRequests type cwd testPaths cwd
input expectedResourceRequests type cwd testPaths cwd
input expectedResourceRequests type cwd testPaths cwd
input expectedResourceRequests type cwd testPaths cwd
input expectedResourceRequests type cwd testPaths cwd
input
input expectedCompletions executable expectedResourceRequests type cwd testPaths cwd
input expectedCompletions executable
input expectedCompletions executable
input expectedCompletions logOptions
input expectedCompletions syncOptions
input expectedResourceRequests type cwd testPaths cwd
input expectedCompletions codeSpecOptionsAndSubcommands c c expectedResourceRequests type cwd testPaths cwd
input expectedCompletions codeSpecOptionsAndSubcommands c c expectedResourceRequests type cwd testPaths cwd
input expectedCompletions categoryOptions
input expectedCompletions categoryOptions
input expectedCompletions chatOptions
input expectedCompletions
input expectedResourceRequests type cwd testPaths cwd
input expectedCompletions agentSubcommands agentHostFlags agentCommonFlags
input expectedCompletions agentHostFlags agentCommonFlags
input expectedCompletions agentConnectionFlags agentCommonFlags
input expectedCompletions agentConnectionFlags agentCommonFlags
input expectedCompletions agentConnectionFlags agentCommonFlags
input expectedCompletions agentCommonFlags
input expectedCompletions agentHelpSubcommands
input expectedCompletions codeSpecOptionsAndSubcommands expectedResourceRequests type cwd testPaths cwd
executable ITestSpec
subcommandAndFlags
tunnelSubcommandsAndFlags
helpSubcommands
serveWebSubcommandsAndFlags
extSubcommands
commonFlags
agentHostFlags
agentConnectionFlags
agentSubcommands
agentHelpSubcommands
typingTests ITestSpec
i i executable length i
expectedCompletions label executable description executable codeCompletionSpec name executable codeTunnelCompletionSpec name codeCompletionSpec Fig Subcommand description codeInsidersCompletionSpec Fig Subcommand description
input
typingTests input expectedCompletions expectedResourceRequests input type cwd testPaths cwd
typingTests
input expectedCompletions subcommandAndFlags expectedResourceRequests type cwd testPaths cwd
input expectedCompletions tunnelSubcommandsAndFlags
input expectedCompletions
input expectedCompletions commonFlags
input expectedCompletions commonFlags
input expectedCompletions commonFlags
input expectedCompletions commonFlags
input expectedCompletions commonFlags
input expectedCompletions commonFlags
input expectedCompletions commonFlags
input expectedCompletions helpSubcommands
input expectedCompletions
input expectedCompletions
input expectedResourceRequests type cwd testPaths cwd
input expectedCompletions serveWebSubcommandsAndFlags
input expectedCompletions extSubcommands
input expectedCompletions commonFlags
input expectedCompletions commonFlags
input expectedCompletions commonFlags
input expectedCompletions commonFlags
input expectedCompletions commonFlags
input expectedCompletions agentSubcommands agentHostFlags commonFlags
input expectedCompletions agentHostFlags commonFlags
input expectedCompletions agentConnectionFlags commonFlags
input expectedCompletions agentConnectionFlags commonFlags
input expectedCompletions agentConnectionFlags commonFlags
input expectedCompletions commonFlags
input expectedCompletions agentHelpSubcommands
codeTestSuite ISuiteSpec
name
completionSpecs codeCompletionSpec
availableCommands
testSpecs
codeTunnelTestSuite ISuiteSpec
name
completionSpecs codeTunnelCompletionSpec
availableCommands
testSpecs
,
'-v'
,
'-w'
,
'-'
,
'--add <folder>'
,
'--add-mcp <json>'
,
'--category <category>'
,
'--diff <file> <file>'
,
'--disable-chromium-sandbox'
,
'--disable-extension <extension-id>'
,
'--disable-extensions'
,
'--disable-gpu'
,
'--disable-lcd-text'
,
'--enable-proposed-api <extension-id>'
,
'--extensions-dir <dir>'
,
'--goto <file:line[:character]>'
,
'--help'
,
'--inspect-brk-extensions <port>'
,
'--inspect-extensions <port>'
,
'--install-extension <extension-id[@version] | path-to-vsix>'
,
'--list-extensions'
,
'--locale <locale>'
,
'--locate-shell-integration-path <shell>'
,
'--log <level>'
,
'--max-memory <memory>'
,
'--merge <file> <file> <base> <result>'
,
'--new-window'
,
'--pre-release'
,
'--prof-startup'
,
'--profile <profileName>'
,
'--remove <folder>'
,
'--reuse-window'
,
'--show-versions'
,
'--status'
,
'--sync <sync>'
,
'--telemetry'
,
'--transient'
,
'--uninstall-extension <extension-id>'
,
'--update-extensions'
,
'--user-data-dir <dir>'
,
'--verbose'
,
'--version'
,
'--wait'
,
'tunnel'
,
'chat [<prompt>]'
,
'serve-web'
,
'agent'
,
'help'
,
'status'
,
'version'
]
;
export
function
createCodeTestSpecs
(
:
string
)
:
[
]
{
const
=
[
'bg'
,
'de'
,
'en'
,
'es'
,
'fr'
,
'hu'
,
'it'
,
'ja'
,
'ko'
,
'pt-br'
,
'ru'
,
'tr'
,
'zh-CN'
,
'zh-TW'
]
;
const
=
[
'azure'
,
'data science'
,
'debuggers'
,
'extension packs'
,
'education'
,
'formatters'
,
'keymaps'
,
'language packs'
,
'linters'
,
'machine learning'
,
'notebooks'
,
'programming languages'
,
'scm providers'
,
'snippets'
,
'testing'
,
'themes'
,
'visualization'
,
'other'
]
;
const
=
[
'critical'
,
'error'
,
'warn'
,
'info'
,
'debug'
,
'trace'
,
'off'
]
;
const
=
[
'on'
,
'off'
]
;
const
=
[
'--add-file <file>'
,
'--help'
,
'--maximize'
,
'--mode <mode>'
,
'--new-window'
,
'--reuse-window'
,
'-a <file>'
,
'-h'
,
'-m <mode>'
,
'-n'
,
'-r'
]
;
const
=
[
'--cli-data-dir <cli_data_dir>'
,
'--log [<log>]'
,
'--verbose'
,
'--help'
,
'-h'
]
;
const
=
[
'--host <host>'
,
'--port <port>'
,
'--connection-token <connection_token>'
,
'--connection-token-file <connection_token_file>'
,
'--without-connection-token'
,
'--server-data-dir <server_data_dir>'
,
'--replace'
,
'--tunnel'
,
'--name <name>'
,
'--random-name'
]
;
const
=
[
'--address <address>'
,
'--tunnel <tunnel>'
]
;
const
=
[
'host'
,
'ps'
,
'stop <session>'
,
'kill'
,
'logs <session>'
,
'help'
]
;
const
=
[
'host'
,
'ps'
,
'stop'
,
'kill'
,
'logs'
,
'help'
]
;
const
:
[
]
=
[
]
;
for
(
let
=
1
;
<
.
;
++
)
{
const
=
[
{
:
,
:
===
.
?
(
as
.
)
.
:
(
as
.
)
.
}
]
;
const
=
` ${ executable. slice ( 0 , i) } | `
;
.
push
(
{
,
,
:
.
endsWith
(
' '
)
?
undefined
:
{
:
'both'
,
:
.
}
}
)
;
}
return
[
...
,
{
:
` ${ executable} | `
,
:
,
:
{
:
'both'
,
:
.
}
}
,
{
:
` ${ executable} --remove | `
,
:
{
:
'folders'
,
:
.
}
}
,
{
:
` ${ executable} --add-mcp | `
,
:
[
]
}
,
{
:
` ${ executable} --update-extensions | `
,
:
.
filter
(
=>
!==
'--update-extensions'
)
,
:
{
:
'both'
,
:
.
}
}
,
{
:
` ${ executable} --disable-lcd-text | `
,
:
.
filter
(
=>
!==
'--disable-lcd-text'
)
,
:
{
:
'both'
,
:
.
}
}
,
{
:
` ${ executable} --disable-chromium-sandbox | `
,
:
.
filter
(
=>
!==
'--disable-chromium-sandbox'
)
,
:
{
:
'both'
,
:
.
}
}
,
{
:
` ${ executable} --enable-proposed-api | `
,
:
[
]
}
,
{
:
` ${ executable} --log | `
,
:
}
,
{
:
` ${ executable} --locale | `
,
:
}
,
{
:
` ${ executable} --diff | `
,
:
{
:
'files'
,
:
.
}
}
,
{
:
` ${ executable} --diff ./file1 | `
,
:
{
:
'files'
,
:
.
}
}
,
{
:
` ${ executable} --merge | `
,
:
{
:
'files'
,
:
.
}
}
,
{
:
` ${ executable} --merge ./file1 ./file2 | `
,
:
{
:
'files'
,
:
.
}
}
,
{
:
` ${ executable} --merge ./file1 ./file2 ./base | `
,
:
{
:
'files'
,
:
.
}
}
,
{
:
` ${ executable} --goto | `
,
:
{
:
'files'
,
:
.
}
}
,
{
:
` ${ executable} --user-data-dir | `
,
:
{
:
'folders'
,
:
.
}
}
,
{
:
` ${ executable} --profile | `
}
,
{
:
` ${ executable} --install-extension | `
,
:
[
]
,
:
{
:
'both'
,
:
.
}
}
,
{
:
` ${ executable} --uninstall-extension | `
,
:
[
]
}
,
{
:
` ${ executable} --disable-extension | `
,
:
[
]
}
,
{
:
` ${ executable} --log | `
,
:
}
,
{
:
` ${ executable} --sync | `
,
:
}
,
{
:
` ${ executable} --extensions-dir | `
,
:
{
:
'folders'
,
:
.
}
}
,
{
:
` ${ executable} --list-extensions | `
,
:
.
filter
(
=>
!==
'--list-extensions'
)
,
:
{
:
'both'
,
:
.
}
}
,
{
:
` ${ executable} --show-versions | `
,
:
.
filter
(
=>
!==
'--show-versions'
)
,
:
{
:
'both'
,
:
.
}
}
,
{
:
` ${ executable} --category | `
,
:
}
,
{
:
` ${ executable} --category a| `
,
:
}
,
{
:
` ${ executable} chat | `
,
:
}
,
{
:
` ${ executable} chat --mode | `
,
:
[
'agent'
,
'ask'
,
'edit'
]
}
,
{
:
` ${ executable} chat --add-file | `
,
:
{
:
'files'
,
:
.
}
}
,
{
:
` ${ executable} agent | `
,
:
[
...
,
...
,
...
]
}
,
{
:
` ${ executable} agent host | `
,
:
[
...
,
...
]
}
,
{
:
` ${ executable} agent ps | `
,
:
[
...
,
'--json'
,
'--all'
,
'-a'
,
...
]
}
,
{
:
` ${ executable} agent stop | `
,
:
[
...
,
...
]
}
,
{
:
` ${ executable} agent logs | `
,
:
[
...
,
...
]
}
,
{
:
` ${ executable} agent kill | `
,
:
[
...
]
}
,
{
:
` ${ executable} agent help | `
,
:
}
,
{
:
` ${ executable} | --locale `
,
:
,
:
{
:
'both'
,
:
.
}
}
,
]
;
}
export
function
createCodeTunnelTestSpecs
(
:
string
)
:
[
]
{
const
:
string
[
]
=
[
'-'
,
'--add <folder>'
,
'--add-mcp <json>'
,
'--category <category>'
,
'--cli-data-dir <cli_data_dir>'
,
'--diff <file> <file>'
,
'--disable-chromium-sandbox'
,
'--disable-extension <extension-id>'
,
'--disable-extensions'
,
'--disable-gpu'
,
'--disable-lcd-text'
,
'--enable-proposed-api <extension-id>'
,
'--extensions-dir [<extensions_dir>]'
,
'--goto <file:line[:character]>'
,
'--help'
,
'--inspect-brk-extensions <port>'
,
'--inspect-extensions <port>'
,
'--install-extension <extension-id[@version] | path-to-vsix>'
,
'--list-extensions'
,
'--locale <locale>'
,
'--locate-shell-integration-path <shell>'
,
'--log [<log>]'
,
'--max-memory <memory>'
,
'--merge <file> <file> <base> <result>'
,
'--new-window'
,
'--pre-release'
,
'--prof-startup'
,
'--profile <profileName>'
,
'--remove <folder>'
,
'--reuse-window'
,
'--show-versions'
,
'--status'
,
'--sync <sync>'
,
'--telemetry'
,
'--transient'
,
'--uninstall-extension <extension-id>'
,
'--update-extensions'
,
'--use-version [<use_version>]'
,
'--user-data-dir [<user_data_dir>]'
,
'--verbose'
,
'--version'
,
'--wait'
,
'-a <folder>'
,
'-d <file> <file>'
,
'-g <file:line[:character]>'
,
'-h'
,
'-m <file> <file> <base> <result>'
,
'-n'
,
'-r'
,
'-s'
,
'-v'
,
'-w'
,
'agent'
,
'chat [<prompt>]'
,
'ext'
,
'help'
,
'serve-web'
,
'status'
,
'tunnel'
,
'version'
]
;
const
:
string
[
]
=
[
'--accept-server-license-terms'
,
'--cli-data-dir <cli_data_dir>'
,
'--extensions-dir [<extensions_dir>]'
,
'--help'
,
'--install-extension [<install_extension>]'
,
'--log [<log>]'
,
'--name [<name>]'
,
'--no-sleep'
,
'--random-name'
,
'--server-data-dir [<server_data_dir>]'
,
'--use-version [<use_version>]'
,
'--user-data-dir [<user_data_dir>]'
,
'--verbose'
,
'-h'
,
'help'
,
'kill'
,
'prune'
,
'rename <name>'
,
'restart'
,
'service'
,
'status'
,
'unregister'
,
'user'
,
]
;
const
:
string
[
]
=
[
'help'
,
'kill'
,
'prune'
,
'rename'
,
'restart'
,
'service'
,
'status'
,
'unregister'
,
'user'
]
;
const
:
string
[
]
=
[
'--accept-server-license-terms'
,
'--cli-data-dir <cli_data_dir>'
,
'--connection-token [<connection_token>]'
,
'--connection-token-file [<connection_token_file>]'
,
'--help'
,
'--host [<host>]'
,
'--log [<log>]'
,
'--port [<port>]'
,
'--server-base-path [<server_base_path>]'
,
'--server-data-dir [<server_data_dir>]'
,
'--socket-path [<socket_path>]'
,
'--verbose'
,
'--without-connection-token'
,
'-h'
]
;
const
:
string
[
]
=
[
'install [<ext-id | id>]'
,
'list'
,
'uninstall [<ext-id | id>]'
,
'update'
]
;
const
:
string
[
]
=
[
'--cli-data-dir <cli_data_dir>'
,
'--log [<log>]'
,
'--verbose'
,
'--help'
,
'-h'
]
;
const
:
string
[
]
=
[
'--host <host>'
,
'--port <port>'
,
'--connection-token <connection_token>'
,
'--connection-token-file <connection_token_file>'
,
'--without-connection-token'
,
'--server-data-dir <server_data_dir>'
,
'--replace'
,
'--tunnel'
,
'--name <name>'
,
'--random-name'
]
;
const
:
string
[
]
=
[
'--address <address>'
,
'--tunnel <tunnel>'
]
;
const
:
string
[
]
=
[
'host'
,
'ps'
,
'stop <session>'
,
'kill'
,
'logs <session>'
,
'help'
]
;
const
:
string
[
]
=
[
'host'
,
'ps'
,
'stop'
,
'kill'
,
'logs'
,
'help'
]
;
const
:
[
]
=
[
]
;
for
(
let
=
1
;
<
.
;
++
)
{
const
=
[
{
:
,
:
===
.
||
===
.
?
(
as
.
)
.
:
(
as
.
)
.
}
]
;
const
=
` ${ executable. slice ( 0 , i) } | `
;
.
push
(
{
,
,
:
.
endsWith
(
' '
)
?
undefined
:
{
:
'both'
,
:
.
}
}
)
;
}
return
[
...
,
{
:
` ${ executable} | `
,
:
,
:
{
:
'both'
,
:
.
}
}
,
{
:
` ${ executable} tunnel | `
,
:
}
,
{
:
` ${ executable} tunnel user | `
,
:
[
'help'
,
'login'
,
'logout'
,
'show'
]
}
,
{
:
` ${ executable} tunnel prune | `
,
:
[
...
]
}
,
{
:
` ${ executable} tunnel kill | `
,
:
[
...
]
}
,
{
:
` ${ executable} tunnel restart | `
,
:
[
...
]
}
,
{
:
` ${ executable} tunnel status | `
,
:
[
...
]
}
,
{
:
` ${ executable} tunnel rename | `
,
:
[
...
]
}
,
{
:
` ${ executable} tunnel unregister | `
,
:
[
...
]
}
,
{
:
` ${ executable} tunnel service | `
,
:
[
...
,
'help'
,
'install'
,
'log'
,
'uninstall'
]
}
,
{
:
` ${ executable} tunnel help | `
,
:
}
,
{
:
` ${ executable} chat | `
,
:
[
'--mode <mode>'
,
'--add-file <file>'
,
'--help'
,
'--maximize'
,
'--new-window'
,
'--reuse-window'
,
'-m <mode>'
,
'-a <file>'
,
'-h'
,
'-n'
,
'-r'
]
}
,
{
:
` ${ executable} chat --mode | `
,
:
[
'agent'
,
'ask'
,
'edit'
]
}
,
{
:
` ${ executable} chat --add-file | `
,
:
{
:
'files'
,
:
.
}
}
,
{
:
` ${ executable} serve-web | `
,
:
}
,
{
:
` ${ executable} ext | `
,
:
}
,
{
:
` ${ executable} ext list | `
,
:
[
...
,
'--category [<category>]'
,
'--show-versions'
]
}
,
{
:
` ${ executable} ext install | `
,
:
[
...
,
'--pre-release'
,
'--donot-include-pack-and-dependencies'
,
'--force'
]
}
,
{
:
` ${ executable} ext update | `
,
:
[
...
]
}
,
{
:
` ${ executable} status | `
,
:
}
,
{
:
` ${ executable} version | `
,
:
}
,
{
:
` ${ executable} agent | `
,
:
[
...
,
...
,
...
]
}
,
{
:
` ${ executable} agent host | `
,
:
[
...
,
...
]
}
,
{
:
` ${ executable} agent ps | `
,
:
[
...
,
'--json'
,
'--all'
,
'-a'
,
...
]
}
,
{
:
` ${ executable} agent stop | `
,
:
[
...
,
...
]
}
,
{
:
` ${ executable} agent logs | `
,
:
[
...
,
...
]
}
,
{
:
` ${ executable} agent kill | `
,
:
[
...
]
}
,
{
:
` ${ executable} agent help | `
,
:
}
,
]
;
}
export
const
:
=
{
:
'code'
,
:
,
:
'code'
,
:
createCodeTestSpecs
(
'code'
)
}
;
export
const
:
=
{
:
'code-tunnel'
,
:
,
:
'code-tunnel'
,
:
createCodeTunnelTestSpecs
(
'code-tunnel'
)
}
;