ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / src / vs / sessions / contrib / chat / browser / chat.contribution.ts 429 строк · изменён 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
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
import { KeyCode, KeyMod } from '../../../../base/common/keyCodes.js' ;
import { Schemas } from '../../../../base/common/network.js' ;
import { status } from '../../../../base/browser/ui/aria/aria.js' ;
import { basename, isEqual } from '../../../../base/common/resources.js' ;
import { URI } from '../../../../base/common/uri.js' ;
import { ServicesAccessor } from '../../../../editor/browser/editorExtensions.js' ;
import { localize, localize2 } from '../../../../nls.js' ;
Action2 MenuId registerAction2
ContextKeyExpr
ConfigurationScope Extensions ConfigurationExtensions IConfigurationRegistry
IFileDialogService
IQuickInputService IQuickPickItem QuickPickInput
registerWorkbenchContribution2 WorkbenchPhase
ISessionsService
ISessionsManagementService inheritableSessionTarget
BranchChatSessionAction
RunScriptContribution
InstantiationType registerSingleton
KeybindingWeight
ISessionsTasksService SessionsTasksService
ISessionTaskRunnerRegistry SessionTaskRunnerRegistry
RegisterDefaultSessionTaskRunnersContribution
AgenticPromptsService
IPromptsService
IAICustomizationWorkspaceService
ICustomizationHarnessService
SessionsAICustomizationWorkspaceService
SessionsCustomizationHarnessService
IChatViewFactory
ChatViewFactory
AccessibleViewRegistry
SessionsChatAccessibilityHelp
SessionsOpenerParticipantContribution
OpenSessionLinkOpenerContribution
WorktreeCreatedTaskDispatcher
Registry
EditorAreaFocusContext IsSessionsWindowContext SideBarVisibleContext
SessionsChatBackgroundAvailableContext SessionsChatBackgroundConfiguredContext SessionsChatBackgroundImageConfiguredContext SessionsTitleBarNewSessionEnabledContext SessionsWelcomeVisibleContext
Menus
ISessionsChatViewStateService SessionsChatViewStateService
SessionsChatResponseFileChangesService
IChatResponseFileChangesService
SessionsChatPetAchievementContribution
chatBackgroundImageLayoutValues ChatBackgroundImageLayout ISessionsChatBackgroundService SessionsChatBackgroundService
ContextKeyExpr IsSessionsWindowContext SessionsChatBackgroundAvailableContext
ContextKeyExpr SessionsChatBackgroundConfiguredContext
ContextKeyExpr SessionsChatBackgroundImageConfiguredContext
IQuickPickItem
kind
image
IQuickPickItem
kind
RecentChatBackgroundTypeItem
chatBackgroundTypeItems ChatBackgroundTypeItem
kind
label
detail
kind
label
detail
detail
chatBackgroundImageLayoutMetadata Record ChatBackgroundImageLayout IChatBackgroundImageLayoutMetadata
repeat
label
detail
stretch
label
detail
center
label
detail
top
label
detail
label
detail
label
detail
bottom
label
detail
label
detail
label
detail
left
label
detail
right
label
detail
chatBackgroundImageLayoutItems chatBackgroundImageLayoutValues layout
layout
chatBackgroundImageLayoutMetadata layout
id
title
category
f1
keybinding
weight KeybindingWeight SessionsContrib
when EditorAreaFocusContext
primary KeyMod CtrlCmd KeyCode KeyN
secondary KeyMod CtrlCmd KeyCode KeyL
mac
primary KeyMod CtrlCmd KeyCode KeyN
secondary KeyMod WinCtrl KeyCode KeyL
menu
id Menus SidebarSessionsHeader
group
order
id Menus TitleBarLeftLayout
group
order
when ContextKeyExpr SideBarVisibleContext SessionsWelcomeVisibleContext SessionsTitleBarNewSessionEnabledContext
override accessor ServicesAccessor
sessionsService accessor ISessionsService
sessionsManagementService accessor ISessionsManagementService
activeSession sessionsService activeSession
isQuickChat activeSession isQuickChat
folderUri isQuickChat activeSession workspace uri
sessionsService
folderUri
sessionsManagementService activeSession folderUri
NewChatInSessionsWindowAction
id
title
category
precondition
menu
id MenuId CommandPalette
when
id Menus SessionChatBackgroundContext
group
order
when SessionsChatBackgroundAvailableContext
override accessor ServicesAccessor
backgroundService accessor ISessionsChatBackgroundService
quickInputService accessor IQuickInputService
fileDialogService accessor IFileDialogService
backgroundKind backgroundService kind
recentImages backgroundService
recentItems RecentChatBackgroundTypeItem recentImages image
kind
image
label image image fsPath
detail image fsPath
items QuickPickInput ChatBackgroundTypeItem chatBackgroundTypeItems
recentItems length
items
type
label
recentItems
currentImage backgroundService
backgroundType quickInputService items
title
placeHolder
activeItem backgroundKind
recentItems item currentImage item image currentImage
chatBackgroundTypeItems item item kind backgroundKind
backgroundType
backgroundType kind
backgroundService
backgroundType kind
backgroundService backgroundType image
backgroundType label
selected fileDialogService
title
openLabel
canSelectFiles
canSelectFolders
canSelectMany
filters
name
extensions
availableFileSystems Schemas file
defaultUri backgroundService
image selected
image
backgroundService image
SetChatBackgroundAction
id
title
category
precondition
menu
id MenuId CommandPalette
when
id Menus SessionChatBackgroundContext
group
order
when ContextKeyExpr SessionsChatBackgroundAvailableContext SessionsChatBackgroundImageConfiguredContext
override accessor ServicesAccessor
backgroundService accessor ISessionsChatBackgroundService
currentLayout backgroundService
selected chatBackgroundImageLayoutItems
selected accessor IQuickInputService chatBackgroundImageLayoutItems
title
placeHolder
activeItem chatBackgroundImageLayoutItems item item layout currentLayout
item backgroundService item layout
backgroundService selected layout currentLayout selected
selected selected layout currentLayout
selected label
ChangeChatBackgroundLayoutAction
id
title
category
precondition
menu
id MenuId CommandPalette
when
id Menus SessionChatBackgroundContext
group
order
when ContextKeyExpr SessionsChatBackgroundAvailableContext SessionsChatBackgroundConfiguredContext
override accessor ServicesAccessor
accessor ISessionsChatBackgroundService
ClearChatBackgroundAction
BranchChatSessionAction
RunScriptContribution RunScriptContribution WorkbenchPhase AfterRestored
SessionsOpenerParticipantContribution SessionsOpenerParticipantContribution WorkbenchPhase BlockStartup
OpenSessionLinkOpenerContribution OpenSessionLinkOpenerContribution WorkbenchPhase BlockStartup
RegisterDefaultSessionTaskRunnersContribution RegisterDefaultSessionTaskRunnersContribution WorkbenchPhase BlockStartup
WorktreeCreatedTaskDispatcher WorktreeCreatedTaskDispatcher WorkbenchPhase AfterRestored
SessionsChatPetAchievementContribution SessionsChatPetAchievementContribution WorkbenchPhase AfterRestored
IPromptsService AgenticPromptsService InstantiationType Delayed
ISessionTaskRunnerRegistry SessionTaskRunnerRegistry InstantiationType Delayed
ISessionsTasksService SessionsTasksService InstantiationType Delayed
IAICustomizationWorkspaceService SessionsAICustomizationWorkspaceService InstantiationType Delayed
ICustomizationHarnessService SessionsCustomizationHarnessService InstantiationType Delayed
IChatViewFactory ChatViewFactory InstantiationType Delayed
ISessionsChatViewStateService SessionsChatViewStateService InstantiationType Delayed
IChatResponseFileChangesService SessionsChatResponseFileChangesService InstantiationType Delayed
ISessionsChatBackgroundService SessionsChatBackgroundService InstantiationType Delayed
AccessibleViewRegistry
Registry ConfigurationExtensions Configuration
properties
type
scope ConfigurationScope
description
type
scope ConfigurationScope
description
type
scope ConfigurationScope
markdownDescription
examples
tags
ignoreSync
type
scope ConfigurationScope
markdownDescription
examples
tags
ignoreSync
type
chatBackgroundImageLayoutValues
enumItemLabels chatBackgroundImageLayoutItems item item label
enumDescriptions chatBackgroundImageLayoutItems item item detail
scope ConfigurationScope
markdownDescription
tags
import
{
,
,
}
from
'../../../../platform/actions/common/actions.js'
;
import
{
}
from
'../../../../platform/contextkey/common/contextkey.js'
;
import
{
,
as
,
}
from
'../../../../platform/configuration/common/configurationRegistry.js'
;
import
{
}
from
'../../../../platform/dialogs/common/dialogs.js'
;
import
{
,
,
}
from
'../../../../platform/quickinput/common/quickInput.js'
;
import
{
,
}
from
'../../../../workbench/common/contributions.js'
;
import
{
}
from
'../../../services/sessions/browser/sessionsService.js'
;
import
{
,
}
from
'../../../services/sessions/common/sessionsManagement.js'
;
import
{
}
from
'./branchChatSessionAction.js'
;
import
{
}
from
'./runScriptAction.js'
;
import
'./nullInlineChatSessionService.js'
;
import
'./modelPicker.js'
;
import
'./agentHostDelegation.js'
;
import
'./newSessionFolderQuickPickAction.js'
;
import
{
,
}
from
'../../../../platform/instantiation/common/extensions.js'
;
import
{
}
from
'../../../../platform/keybinding/common/keybindingsRegistry.js'
;
import
{
,
}
from
'./sessionsTasksService.js'
;
import
{
,
}
from
'./sessionTaskRunner.js'
;
import
{
}
from
'./registerDefaultSessionTaskRunners.js'
;
import
{
}
from
'./promptsService.js'
;
import
{
}
from
'../../../../workbench/contrib/chat/common/promptSyntax/service/promptsService.js'
;
import
{
}
from
'../../../../workbench/contrib/chat/common/aiCustomizationWorkspaceService.js'
;
import
{
}
from
'../../../../workbench/contrib/chat/common/customizationHarnessService.js'
;
import
{
}
from
'./aiCustomizationWorkspaceService.js'
;
import
{
}
from
'./customizationHarnessService.js'
;
import
{
}
from
'../../../services/chatView/browser/chatViewFactory.js'
;
import
{
}
from
'./chatView.js'
;
import
{
CHAT_CATEGORY
}
from
'../../../../workbench/contrib/chat/browser/actions/chatActions.js'
;
import
{
}
from
'../../../../platform/accessibility/browser/accessibleViewRegistry.js'
;
import
{
}
from
'./sessionsChatAccessibilityHelp.js'
;
import
{
}
from
'./sessionsOpenerParticipant.js'
;
import
{
}
from
'./openSessionLinkOpener.contribution.js'
;
import
{
,
AGENT_HOST_RUN_WORKTREE_CREATED_TASKS_SETTING
}
from
'./worktreeCreatedTaskDispatcher.js'
;
import
{
AGENT_SESSIONS_SCOPED_INPUT_HISTORY_SETTING
}
from
'./sessionsChatHistory.js'
;
import
'../../sessions/browser/mobile/mobileOverlayContribution.js'
;
import
{
}
from
'../../../../platform/registry/common/platform.js'
;
import
{
,
,
}
from
'../../../../workbench/common/contextkeys.js'
;
import
{
NEW_SESSION_ACTION_ID
}
from
'../common/constants.js'
;
import
{
,
,
,
,
}
from
'../../../common/contextkeys.js'
;
import
{
}
from
'../../../browser/menus.js'
;
import
{
,
}
from
'./chatViewStateService.js'
;
import
{
}
from
'./sessionTurnChanges.js'
;
import
{
}
from
'../../../../workbench/contrib/chat/browser/chatResponseFileChangesService.js'
;
import
{
}
from
'./chatPetAchievements.js'
;
import
{
AGENT_SESSIONS_CHAT_BACKGROUND_CODICONS_PRESET
,
AGENT_SESSIONS_CHAT_BACKGROUND_IMAGE_LAYOUT_SETTING
,
AGENT_SESSIONS_PREFERRED_DARK_CHAT_BACKGROUND_IMAGE_SETTING
,
AGENT_SESSIONS_PREFERRED_LIGHT_CHAT_BACKGROUND_IMAGE_SETTING
,
,
,
,
}
from
'../../../services/chatBackground/browser/chatBackgroundService.js'
;
const
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_COMMAND_ID
=
'workbench.action.chat.changeAgentSessionsBackground'
;
const
CLEAR_AGENT_SESSIONS_CHAT_BACKGROUND_COMMAND_ID
=
'workbench.action.chat.clearAgentSessionsBackground'
;
const
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_LAYOUT_COMMAND_ID
=
'workbench.action.chat.changeAgentSessionsBackgroundLayout'
;
const
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_WHEN
=
.
and
(
,
)
;
const
CLEAR_AGENT_SESSIONS_CHAT_BACKGROUND_WHEN
=
.
and
(
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_WHEN
,
)
;
const
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_LAYOUT_WHEN
=
.
and
(
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_WHEN
,
)
;
type
RecentChatBackgroundTypeItem
=
&
{
readonly
:
'recentImage'
;
readonly
:
URI
;
}
;
type
ChatBackgroundTypeItem
=
&
(
{
readonly
:
'codicons'
|
'image'
;
}
)
|
;
const
:
[
]
=
[
{
:
'codicons'
,
:
localize
(
'chat.agentSessions.backgroundType.codicons.label'
,
"Codicons"
)
,
:
localize
(
'chat.agentSessions.backgroundType.codicons.detail'
,
"Use a theme-aware pattern of built-in VS Code icons."
)
,
}
,
{
:
'image'
,
:
localize
(
'chat.agentSessions.backgroundType.image.label'
,
"Image..."
)
,
:
localize
(
'chat.agentSessions.backgroundType.image.detail'
,
"Choose an image file from this machine."
)
,
}
]
;
interface
IChatBackgroundImageLayoutMetadata
extends
IQuickPickItem
{
readonly
:
string
;
}
const
:
<
,
>
=
{
:
{
:
localize
(
'chat.agentSessions.backgroundImageLayout.repeat.label'
,
"Repeat"
)
,
:
localize
(
'chat.agentSessions.backgroundImageLayout.repeat.description'
,
"Repeats the image at its original size until it fills the chat background."
)
,
}
,
:
{
:
localize
(
'chat.agentSessions.backgroundImageLayout.stretch.label'
,
"Stretch"
)
,
:
localize
(
'chat.agentSessions.backgroundImageLayout.stretch.description'
,
"Stretches the image to fill the chat background."
)
,
}
,
:
{
:
localize
(
'chat.agentSessions.backgroundImageLayout.center.label'
,
"Center"
)
,
:
localize
(
'chat.agentSessions.backgroundImageLayout.center.description'
,
"Shows the image at its original size in the center."
)
,
}
,
:
{
:
localize
(
'chat.agentSessions.backgroundImageLayout.top.label'
,
"Top"
)
,
:
localize
(
'chat.agentSessions.backgroundImageLayout.top.description'
,
"Shows the image at its original size at the top center."
)
,
}
,
'top-right'
:
{
:
localize
(
'chat.agentSessions.backgroundImageLayout.topRight.label'
,
"Top Right"
)
,
:
localize
(
'chat.agentSessions.backgroundImageLayout.topRight.description'
,
"Shows the image at its original size in the top right."
)
,
}
,
'top-left'
:
{
:
localize
(
'chat.agentSessions.backgroundImageLayout.topLeft.label'
,
"Top Left"
)
,
:
localize
(
'chat.agentSessions.backgroundImageLayout.topLeft.description'
,
"Shows the image at its original size in the top left."
)
,
}
,
:
{
:
localize
(
'chat.agentSessions.backgroundImageLayout.bottom.label'
,
"Bottom"
)
,
:
localize
(
'chat.agentSessions.backgroundImageLayout.bottom.description'
,
"Shows the image at its original size at the bottom center."
)
,
}
,
'bottom-right'
:
{
:
localize
(
'chat.agentSessions.backgroundImageLayout.bottomRight.label'
,
"Bottom Right"
)
,
:
localize
(
'chat.agentSessions.backgroundImageLayout.bottomRight.description'
,
"Shows the image at its original size in the bottom right."
)
,
}
,
'bottom-left'
:
{
:
localize
(
'chat.agentSessions.backgroundImageLayout.bottomLeft.label'
,
"Bottom Left"
)
,
:
localize
(
'chat.agentSessions.backgroundImageLayout.bottomLeft.description'
,
"Shows the image at its original size in the bottom left."
)
,
}
,
:
{
:
localize
(
'chat.agentSessions.backgroundImageLayout.left.label'
,
"Left"
)
,
:
localize
(
'chat.agentSessions.backgroundImageLayout.left.description'
,
"Shows the image at its original size at the center left."
)
,
}
,
:
{
:
localize
(
'chat.agentSessions.backgroundImageLayout.right.label'
,
"Right"
)
,
:
localize
(
'chat.agentSessions.backgroundImageLayout.right.description'
,
"Shows the image at its original size at the center right."
)
,
}
,
}
;
const
=
.
map
(
=>
(
{
,
...
[
]
,
}
)
)
;
class
NewChatInSessionsWindowAction
extends
Action2
{
constructor
(
)
{
super
(
{
:
NEW_SESSION_ACTION_ID
,
:
localize2
(
'sessions.newSession.label'
,
"New Session"
)
,
:
CHAT_CATEGORY
,
:
true
,
:
{
:
.
,
:
.
negate
(
)
,
:
.
|
.
,
:
[
.
|
.
]
,
:
{
:
.
|
.
,
:
[
.
|
.
]
}
,
}
,
:
[
{
:
.
,
:
'navigation'
,
:
0
,
}
,
{
:
.
,
:
'navigation'
,
:
1
,
:
.
and
(
.
toNegated
(
)
,
.
toNegated
(
)
,
)
}
]
}
)
;
}
run
(
:
)
:
void
{
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
.
get
(
)
;
const
=
?.
?.
get
(
)
??
false
;
const
=
?
undefined
:
?.
.
get
(
)
?.
;
.
openNewSession
(
{
,
...
inheritableSessionTarget
(
,
,
)
,
}
)
;
}
}
registerAction2
(
)
;
class
SetChatBackgroundAction
extends
Action2
{
constructor
(
)
{
super
(
{
:
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_COMMAND_ID
,
:
localize2
(
'chat.agentSessions.setBackground'
,
"Set Background..."
)
,
:
CHAT_CATEGORY
,
:
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_WHEN
,
:
[
{
:
.
,
:
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_WHEN
,
}
,
{
:
.
,
:
'navigation'
,
:
1
,
:
,
}
]
,
}
)
;
}
async
run
(
:
)
:
Promise
<
void
>
{
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
getBackground
(
)
?.
;
const
=
.
getRecentBackgroundImages
(
)
;
const
:
[
]
=
.
map
(
=>
(
{
:
'recentImage'
,
,
:
basename
(
)
||
.
,
:
.
,
}
)
)
;
const
:
<
>
[
]
=
[
...
]
;
if
(
.
>
0
)
{
.
push
(
{
:
'separator'
,
:
localize
(
'chat.agentSessions.backgroundType.recentlyUsed'
,
"recently used"
)
,
}
,
...
)
;
}
const
=
.
getConfiguredBackgroundImage
(
)
;
const
=
await
.
pick
(
,
{
:
localize
(
'chat.agentSessions.setBackground.title'
,
"Set Chat Background"
)
,
:
localize
(
'chat.agentSessions.setBackground.placeholder'
,
"Select a background type"
)
,
:
===
'image'
?
.
find
(
=>
&&
isEqual
(
.
,
)
)
:
.
find
(
=>
.
===
)
,
}
)
;
if
(
!
)
{
return
;
}
if
(
.
===
'codicons'
)
{
await
.
setBackground
(
AGENT_SESSIONS_CHAT_BACKGROUND_CODICONS_PRESET
)
;
status
(
localize
(
'chat.agentSessions.setBackground.codicons'
,
"Chat background set to Codicons."
)
)
;
return
;
}
if
(
.
===
'recentImage'
)
{
await
.
setBackground
(
.
)
;
status
(
localize
(
'chat.agentSessions.setBackground.recentImage'
,
"Chat background image set to {0}."
,
.
)
)
;
return
;
}
const
=
await
.
showOpenDialog
(
{
:
localize
(
'chat.agentSessions.setBackground.dialogTitle'
,
"Set Chat Background"
)
,
:
localize
(
'chat.agentSessions.setBackground.openLabel'
,
"Set Background"
)
,
:
true
,
:
false
,
:
false
,
:
[
{
:
localize
(
'chat.agentSessions.changeBackground.images'
,
"Images"
)
,
:
[
'avif'
,
'bmp'
,
'gif'
,
'ico'
,
'jpeg'
,
'jpg'
,
'png'
,
'svg'
,
'webp'
]
,
}
]
,
:
[
.
]
,
:
.
getConfiguredBackgroundImage
(
)
,
}
)
;
const
=
?.
[
0
]
;
if
(
!
)
{
return
;
}
await
.
setBackground
(
)
;
status
(
localize
(
'chat.agentSessions.setBackground.image'
,
"Chat background image set."
)
)
;
}
}
registerAction2
(
)
;
class
ChangeChatBackgroundLayoutAction
extends
Action2
{
constructor
(
)
{
super
(
{
:
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_LAYOUT_COMMAND_ID
,
:
localize2
(
'chat.agentSessions.changeBackgroundLayout'
,
"Change Background Layout..."
)
,
:
CHAT_CATEGORY
,
:
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_LAYOUT_WHEN
,
:
[
{
:
.
,
:
CHANGE_AGENT_SESSIONS_CHAT_BACKGROUND_LAYOUT_WHEN
,
}
,
{
:
.
,
:
'navigation'
,
:
2
,
:
.
and
(
,
)
,
}
]
,
}
)
;
}
async
run
(
:
)
:
Promise
<
void
>
{
const
=
.
get
(
)
;
const
=
.
getBackgroundImageLayout
(
)
;
let
:
(
typeof
)
[
number
]
|
undefined
;
try
{
=
await
.
get
(
)
.
pick
(
,
{
:
localize
(
'chat.agentSessions.changeBackgroundLayout.title'
,
"Change Chat Background Layout"
)
,
:
localize
(
'chat.agentSessions.changeBackgroundLayout.placeholder'
,
"Select how the background image is displayed"
)
,
:
.
find
(
=>
.
===
)
,
onDidFocus
:
=>
void
.
setBackgroundImageLayout
(
.
,
false
)
,
}
)
;
}
finally
{
await
.
setBackgroundImageLayout
(
?.
??
,
!==
undefined
)
;
}
if
(
&&
.
!==
)
{
status
(
localize
(
'chat.agentSessions.changeBackgroundLayout.changed'
,
"Chat background layout changed to {0}."
,
.
)
)
;
}
}
}
registerAction2
(
)
;
class
ClearChatBackgroundAction
extends
Action2
{
constructor
(
)
{
super
(
{
:
CLEAR_AGENT_SESSIONS_CHAT_BACKGROUND_COMMAND_ID
,
:
localize2
(
'chat.agentSessions.clearBackground'
,
"Clear Background"
)
,
:
CHAT_CATEGORY
,
:
CLEAR_AGENT_SESSIONS_CHAT_BACKGROUND_WHEN
,
:
[
{
:
.
,
:
CLEAR_AGENT_SESSIONS_CHAT_BACKGROUND_WHEN
,
}
,
{
:
.
,
:
'navigation'
,
:
3
,
:
.
and
(
,
)
,
}
]
,
}
)
;
}
async
run
(
:
)
:
Promise
<
void
>
{
await
.
get
(
)
.
clearBackground
(
)
;
status
(
localize
(
'chat.agentSessions.clearBackground.cleared'
,
"Chat background cleared."
)
)
;
}
}
registerAction2
(
)
;
registerAction2
(
)
;
registerWorkbenchContribution2
(
.
ID
,
,
.
)
;
registerWorkbenchContribution2
(
.
ID
,
,
.
)
;
registerWorkbenchContribution2
(
.
ID
,
,
.
)
;
registerWorkbenchContribution2
(
.
ID
,
,
.
)
;
registerWorkbenchContribution2
(
.
ID
,
,
.
)
;
registerWorkbenchContribution2
(
.
ID
,
,
.
)
;
registerSingleton
(
,
,
.
)
;
registerSingleton
(
,
,
.
)
;
registerSingleton
(
,
,
.
)
;
registerSingleton
(
,
,
.
)
;
registerSingleton
(
,
,
.
)
;
registerSingleton
(
,
,
.
)
;
registerSingleton
(
,
,
.
)
;
registerSingleton
(
,
,
.
)
;
registerSingleton
(
,
,
.
)
;
.
register
(
new
SessionsChatAccessibilityHelp
(
)
)
;
.
as < IConfigurationRegistry>
(
.
)
.
registerConfiguration
(
{
:
{
[
AGENT_HOST_RUN_WORKTREE_CREATED_TASKS_SETTING
]
:
{
:
'boolean'
,
default
:
true
,
:
.
APPLICATION
,
:
localize
(
'chat.agentHost.runWorktreeCreatedTasks'
,
"Whether to automatically run tasks tagged with `\"runOptions\": { \"runOn\": \"worktreeCreated\" }` when a new agent host session worktree is created. Manual `Run Task` invocations are unaffected."
)
,
}
,
[
AGENT_SESSIONS_SCOPED_INPUT_HISTORY_SETTING
]
:
{
:
'boolean'
,
default
:
true
,
:
.
APPLICATION
,
:
localize
(
'chat.agentSessions.scopedInputHistory'
,
"Controls whether chat input history in the Agents Window is scoped to the current session. Disable this to use shared input history across sessions."
)
,
}
,
[
AGENT_SESSIONS_PREFERRED_DARK_CHAT_BACKGROUND_IMAGE_SETTING
]
:
{
:
'string'
,
default
:
''
,
:
.
MACHINE
,
:
localize
(
'chat.agentSessions.preferredDarkBackgroundImage'
,
"Specifies `codicons`, an absolute file path, or a `file` URI for the background displayed behind chat content in the Agents Window when using a dark color theme. The background is hidden in high contrast themes."
)
,
:
[
'codicons'
]
,
:
[
'experimental'
]
,
:
true
,
}
,
[
AGENT_SESSIONS_PREFERRED_LIGHT_CHAT_BACKGROUND_IMAGE_SETTING
]
:
{
:
'string'
,
default
:
''
,
:
.
MACHINE
,
:
localize
(
'chat.agentSessions.preferredLightBackgroundImage'
,
"Specifies `codicons`, an absolute file path, or a `file` URI for the background displayed behind chat content in the Agents Window when using a light color theme. The background is hidden in high contrast themes."
)
,
:
[
'codicons'
]
,
:
[
'experimental'
]
,
:
true
,
}
,
[
AGENT_SESSIONS_CHAT_BACKGROUND_IMAGE_LAYOUT_SETTING
]
:
{
:
'string'
,
enum
:
[
...
]
,
:
.
map
(
=>
.
)
,
:
.
map
(
=>
.
)
,
default
:
'repeat'
,
:
.
APPLICATION
,
:
localize
(
'chat.agentSessions.backgroundImageLayout'
,
"Controls how the dark and light chat background images are laid out in the Agents Window."
)
,
:
[
'experimental'
]
,
}
,
}
,
}
)
;