@codingame/monaco-vscode-chat-service-override 11.0.2 → 11.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/chat.js +2 -2
  2. package/package.json +8 -6
  3. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +19 -19
  4. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +17 -16
  5. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +14 -13
  6. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +22 -21
  7. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +5 -4
  8. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +1 -1
  9. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +5 -4
  10. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +2 -1
  11. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +7 -6
  12. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +7 -6
  13. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +167 -0
  14. package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +11 -11
  15. package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +24 -24
  16. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
  17. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.js +4 -4
  18. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +2 -2
  19. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +4 -4
  20. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +6 -5
  21. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +1 -1
  22. package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipantContributions.js +27 -27
  23. package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +1 -1
  24. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +2 -2
  25. package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +1 -1
  26. package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +3 -3
  27. package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +4 -4
  28. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +4 -4
  29. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +3 -3
  30. package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +1 -1
  31. package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeContributions.js +5 -5
  32. package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +4 -4
  33. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +1 -1
  34. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +2 -2
  35. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
  36. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +13 -13
  37. package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -2
  38. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +8 -8
  39. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
  40. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +2 -2
  41. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +5 -5
  42. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +1 -1
  43. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +6 -6
@@ -4,23 +4,24 @@ import { localize, localize2 } from 'vscode/vscode/vs/nls';
4
4
  import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
5
5
  import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
6
6
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
7
- import { CHAT_CATEGORY } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
7
+ import '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
8
8
  import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
9
- import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
9
+ import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
10
10
  import { CONTEXT_CHAT_ENABLED } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
11
- import { isExportableSessionData } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatModel';
11
+ import { isExportableSessionData } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatModel';
12
12
  import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService.service';
13
13
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
14
+ import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
14
15
 
15
16
  const defaultFileName = 'chat.json';
16
- const filters = [{ name: ( localize(7599, "Chat Session")), extensions: ['json'] }];
17
+ const filters = [{ name: ( localize(7555, "Chat Session")), extensions: ['json'] }];
17
18
  function registerChatExportActions() {
18
19
  registerAction2(class ExportChatAction extends Action2 {
19
20
  constructor() {
20
21
  super({
21
22
  id: 'workbench.action.chat.export',
22
23
  category: CHAT_CATEGORY,
23
- title: ( localize2(7600, "Export Chat...")),
24
+ title: ( localize2(7556, "Export Chat...")),
24
25
  precondition: CONTEXT_CHAT_ENABLED,
25
26
  f1: true,
26
27
  });
@@ -54,7 +55,7 @@ function registerChatExportActions() {
54
55
  constructor() {
55
56
  super({
56
57
  id: 'workbench.action.chat.import',
57
- title: ( localize2(7601, "Import Chat...")),
58
+ title: ( localize2(7557, "Import Chat...")),
58
59
  category: CHAT_CATEGORY,
59
60
  precondition: CONTEXT_CHAT_ENABLED,
60
61
  f1: true,
@@ -2,17 +2,18 @@ import { localize2 } from 'vscode/vscode/vs/nls';
2
2
  import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
3
3
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
4
4
  import { ActiveEditorContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
5
- import { CHAT_CATEGORY } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
6
- import { CHAT_VIEW_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chat';
5
+ import '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
6
+ import { CHAT_VIEW_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chat';
7
7
  import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
8
8
  import { ChatEditor } from '../chatEditor.js';
9
- import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
9
+ import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
10
10
  import { CONTEXT_CHAT_ENABLED } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
11
11
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
12
12
  import { AUX_WINDOW_GROUP, ACTIVE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
13
13
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
14
14
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
15
15
  import { isChatViewTitleActionContext } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatActions';
16
+ import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
16
17
 
17
18
  var MoveToNewLocation;
18
19
  ( ((function(MoveToNewLocation) {
@@ -24,7 +25,7 @@ function registerMoveActions() {
24
25
  constructor() {
25
26
  super({
26
27
  id: `workbench.action.chat.openInEditor`,
27
- title: ( localize2(7602, "Open Chat in Editor")),
28
+ title: ( localize2(7558, "Open Chat in Editor")),
28
29
  category: CHAT_CATEGORY,
29
30
  precondition: CONTEXT_CHAT_ENABLED,
30
31
  f1: true,
@@ -44,7 +45,7 @@ function registerMoveActions() {
44
45
  constructor() {
45
46
  super({
46
47
  id: `workbench.action.chat.openInNewWindow`,
47
- title: ( localize2(7603, "Open Chat in New Window")),
48
+ title: ( localize2(7559, "Open Chat in New Window")),
48
49
  category: CHAT_CATEGORY,
49
50
  precondition: CONTEXT_CHAT_ENABLED,
50
51
  f1: true,
@@ -64,7 +65,7 @@ function registerMoveActions() {
64
65
  constructor() {
65
66
  super({
66
67
  id: `workbench.action.chat.openInSidebar`,
67
- title: ( localize2(7604, "Open Chat in Side Bar")),
68
+ title: ( localize2(7560, "Open Chat in Side Bar")),
68
69
  category: CHAT_CATEGORY,
69
70
  precondition: CONTEXT_CHAT_ENABLED,
70
71
  f1: true,
@@ -0,0 +1,167 @@
1
+ import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
2
+ import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
3
+ import { Selection } from 'vscode/vscode/vs/editor/common/core/selection';
4
+ import { localize2, localize } from 'vscode/vscode/vs/nls';
5
+ import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
6
+ import '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
7
+ import { IQuickChatService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
8
+ import { CONTEXT_CHAT_ENABLED } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
9
+ import { InlineChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
10
+ import { CHAT_CATEGORY, ASK_QUICK_QUESTION_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
11
+ export { ASK_QUICK_QUESTION_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
12
+
13
+ function registerQuickChatActions() {
14
+ registerAction2(QuickChatGlobalAction);
15
+ registerAction2(AskQuickChatAction);
16
+ registerAction2(class OpenInChatViewAction extends Action2 {
17
+ constructor() {
18
+ super({
19
+ id: 'workbench.action.quickchat.openInChatView',
20
+ title: ( localize2(7561, "Open in Chat View")),
21
+ f1: false,
22
+ category: CHAT_CATEGORY,
23
+ icon: Codicon.commentDiscussion,
24
+ menu: {
25
+ id: MenuId.ChatInputSide,
26
+ group: 'navigation',
27
+ order: 10
28
+ }
29
+ });
30
+ }
31
+ run(accessor) {
32
+ const quickChatService = accessor.get(IQuickChatService);
33
+ quickChatService.openInChatView();
34
+ }
35
+ });
36
+ registerAction2(class CloseQuickChatAction extends Action2 {
37
+ constructor() {
38
+ super({
39
+ id: 'workbench.action.quickchat.close',
40
+ title: ( localize2(7562, "Close Quick Chat")),
41
+ f1: false,
42
+ category: CHAT_CATEGORY,
43
+ icon: Codicon.close,
44
+ menu: {
45
+ id: MenuId.ChatInputSide,
46
+ group: 'navigation',
47
+ order: 20
48
+ }
49
+ });
50
+ }
51
+ run(accessor) {
52
+ const quickChatService = accessor.get(IQuickChatService);
53
+ quickChatService.close();
54
+ }
55
+ });
56
+ registerAction2(class LaunchInlineChatFromQuickChatAction extends Action2 {
57
+ constructor() {
58
+ super({
59
+ id: 'workbench.action.quickchat.launchInlineChat',
60
+ title: ( localize2(7563, "Launch Inline Chat")),
61
+ f1: false,
62
+ category: CHAT_CATEGORY
63
+ });
64
+ }
65
+ async run(accessor) {
66
+ const quickChatService = accessor.get(IQuickChatService);
67
+ const codeEditorService = accessor.get(ICodeEditorService);
68
+ if (quickChatService.focused) {
69
+ quickChatService.close();
70
+ }
71
+ const codeEditor = codeEditorService.getActiveCodeEditor();
72
+ if (!codeEditor) {
73
+ return;
74
+ }
75
+ const controller = InlineChatController.get(codeEditor);
76
+ if (!controller) {
77
+ return;
78
+ }
79
+ await controller.run();
80
+ controller.focus();
81
+ }
82
+ });
83
+ }
84
+ class QuickChatGlobalAction extends Action2 {
85
+ constructor() {
86
+ super({
87
+ id: ASK_QUICK_QUESTION_ACTION_ID,
88
+ title: ( localize2(7564, 'Quick Chat')),
89
+ precondition: CONTEXT_CHAT_ENABLED,
90
+ icon: Codicon.commentDiscussion,
91
+ f1: false,
92
+ category: CHAT_CATEGORY,
93
+ keybinding: {
94
+ weight: 200 ,
95
+ primary: 2048 | 1024 | 512 | 42 ,
96
+ },
97
+ menu: {
98
+ id: MenuId.ChatCommandCenter,
99
+ group: 'c_quickChat',
100
+ order: 5
101
+ },
102
+ metadata: {
103
+ description: ( localize(7565, 'Toggle the quick chat')),
104
+ args: [{
105
+ name: 'args',
106
+ schema: {
107
+ anyOf: [
108
+ {
109
+ type: 'object',
110
+ required: ['query'],
111
+ properties: {
112
+ query: {
113
+ description: ( localize(7566, "The query to open the quick chat with")),
114
+ type: 'string'
115
+ },
116
+ isPartialQuery: {
117
+ description: ( localize(7567, "Whether the query is partial; it will wait for more user input")),
118
+ type: 'boolean'
119
+ }
120
+ },
121
+ },
122
+ {
123
+ type: 'string',
124
+ description: ( localize(7566, "The query to open the quick chat with"))
125
+ }
126
+ ]
127
+ }
128
+ }]
129
+ },
130
+ });
131
+ }
132
+ run(accessor, query) {
133
+ const quickChatService = accessor.get(IQuickChatService);
134
+ let options;
135
+ switch (typeof query) {
136
+ case 'string':
137
+ options = { query };
138
+ break;
139
+ case 'object':
140
+ options = query;
141
+ break;
142
+ }
143
+ if (options?.query) {
144
+ options.selection = ( (new Selection(1, options.query.length + 1, 1, options.query.length + 1)));
145
+ }
146
+ quickChatService.toggle(options);
147
+ }
148
+ }
149
+ class AskQuickChatAction extends Action2 {
150
+ constructor() {
151
+ super({
152
+ id: `workbench.action.openQuickChat`,
153
+ category: CHAT_CATEGORY,
154
+ title: ( localize2(7568, "Open Quick Chat")),
155
+ f1: true
156
+ });
157
+ }
158
+ run(accessor, query) {
159
+ const quickChatService = accessor.get(IQuickChatService);
160
+ quickChatService.toggle(query ? {
161
+ query,
162
+ selection: ( (new Selection(1, query.length + 1, 1, query.length + 1)))
163
+ } : undefined);
164
+ }
165
+ }
166
+
167
+ export { registerQuickChatActions };
@@ -19,12 +19,12 @@ import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
19
19
  import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
20
20
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
21
21
  import { ITextFileService } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles.service';
22
- import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
22
+ import { InlineChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
23
23
  import { insertCell } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
24
24
  import { CellKind, NOTEBOOK_EDITOR_ID } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
25
25
  import { getReferencesAsDocumentContext } from '../../common/chatCodeMapperService.js';
26
26
  import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService.service';
27
- import { isResponseVM, isRequestVM } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatViewModel';
27
+ import { isResponseVM, isRequestVM } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatViewModel';
28
28
 
29
29
  let InsertCodeBlockOperation = class InsertCodeBlockOperation {
30
30
  constructor(editorService, textFileService, bulkEditService, codeEditorService, chatService, languageService, dialogService) {
@@ -48,7 +48,7 @@ let InsertCodeBlockOperation = class InsertCodeBlockOperation {
48
48
  }
49
49
  else {
50
50
  this.notify(( localize(
51
- 10864,
51
+ 10852,
52
52
  "To insert the code block, open a code editor or notebook editor and set the cursor at the location where to insert the code block."
53
53
  )));
54
54
  }
@@ -61,7 +61,7 @@ let InsertCodeBlockOperation = class InsertCodeBlockOperation {
61
61
  }
62
62
  async handleNotebookEditor(notebookEditor, codeBlockContext) {
63
63
  if (notebookEditor.isReadOnly) {
64
- this.notify(( localize(10865, "Cannot insert the code block to read-only notebook editor.")));
64
+ this.notify(( localize(10853, "Cannot insert the code block to read-only notebook editor.")));
65
65
  return false;
66
66
  }
67
67
  const focusRange = notebookEditor.getFocus();
@@ -72,7 +72,7 @@ let InsertCodeBlockOperation = class InsertCodeBlockOperation {
72
72
  async handleTextEditor(codeEditor, codeBlockContext) {
73
73
  const activeModel = codeEditor.getModel();
74
74
  if (isReadOnly(activeModel, this.textFileService)) {
75
- this.notify(( localize(10866, "Cannot insert the code block to read-only code editor.")));
75
+ this.notify(( localize(10854, "Cannot insert the code block to read-only code editor.")));
76
76
  return false;
77
77
  }
78
78
  const range = codeEditor.getSelection() ?? ( (new Range(activeModel.getLineCount(), 1, activeModel.getLineCount(), 1)));
@@ -112,7 +112,7 @@ let ApplyCodeBlockOperation = class ApplyCodeBlockOperation {
112
112
  async run(context) {
113
113
  if (this.inlineChatPreview && this.inlineChatPreview.isOpen()) {
114
114
  await this.dialogService.info(( localize(
115
- 10867,
115
+ 10855,
116
116
  "Another code change is being previewed. Please apply or discard the pending changes first."
117
117
  )));
118
118
  return;
@@ -143,7 +143,7 @@ let ApplyCodeBlockOperation = class ApplyCodeBlockOperation {
143
143
  result = await this.handleNotebookEditor(activeNotebookEditor, context);
144
144
  }
145
145
  else {
146
- this.notify(( localize(10868, "To apply this code block, open a code or notebook editor.")));
146
+ this.notify(( localize(10856, "To apply this code block, open a code or notebook editor.")));
147
147
  }
148
148
  }
149
149
  notifyUserAction(this.chatService, context, {
@@ -156,7 +156,7 @@ let ApplyCodeBlockOperation = class ApplyCodeBlockOperation {
156
156
  }
157
157
  async handleNotebookEditor(notebookEditor, codeBlockContext) {
158
158
  if (notebookEditor.isReadOnly) {
159
- this.notify(( localize(10869, "Cannot apply code block to read-only notebook editor.")));
159
+ this.notify(( localize(10857, "Cannot apply code block to read-only notebook editor.")));
160
160
  return undefined;
161
161
  }
162
162
  const focusRange = notebookEditor.getFocus();
@@ -166,7 +166,7 @@ let ApplyCodeBlockOperation = class ApplyCodeBlockOperation {
166
166
  }
167
167
  async handleTextEditor(codeEditor, codeBlockContext) {
168
168
  if (isReadOnly(codeEditor.getModel(), this.textFileService)) {
169
- this.notify(( localize(10870, "Cannot apply code block to read-only file.")));
169
+ this.notify(( localize(10858, "Cannot apply code block to read-only file.")));
170
170
  return undefined;
171
171
  }
172
172
  const result = await this.computeEdits(codeEditor, codeBlockContext);
@@ -193,7 +193,7 @@ let ApplyCodeBlockOperation = class ApplyCodeBlockOperation {
193
193
  const result = await this.progressService.withProgress({ location: 15 , delay: 500, sticky: true, cancellable: true }, async (progress) => {
194
194
  for (const provider of mappedEditsProviders) {
195
195
  codeMapper = provider.displayName;
196
- progress.report({ message: ( localize(10871, "Applying code block using {0}...", codeMapper)) });
196
+ progress.report({ message: ( localize(10859, "Applying code block using {0}...", codeMapper)) });
197
197
  const mappedEdits = await provider.provideMappedEdits(activeModel, [codeBlockActionContext.code], {
198
198
  documents: docRefs,
199
199
  conversation: getChatConversation(codeBlockActionContext),
@@ -210,7 +210,7 @@ let ApplyCodeBlockOperation = class ApplyCodeBlockOperation {
210
210
  }
211
211
  catch (e) {
212
212
  if (!isCancellationError(e)) {
213
- this.notify(( localize(10872, "Failed to apply code block: {0}", e.message)));
213
+ this.notify(( localize(10860, "Failed to apply code block: {0}", e.message)));
214
214
  }
215
215
  }
216
216
  finally {
@@ -24,8 +24,8 @@ import 'vscode/vscode/vs/base/common/map';
24
24
  import 'vscode/vscode/vs/base/common/strings';
25
25
  import 'vscode/vscode/vs/base/common/path';
26
26
  import 'vscode/vscode/vs/editor/common/languages';
27
- import '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatColors';
28
- import { chatVariableLeader } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
27
+ import '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatColors';
28
+ import { chatVariableLeader } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
29
29
  import '../common/chatServiceImpl.js';
30
30
  import '../common/chatSlashCommands.js';
31
31
  import { IChatSlashCommandService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service';
@@ -36,7 +36,7 @@ import '../common/languageModelStats.js';
36
36
  import { LanguageModelToolsExtensionPointHandler } from '../common/tools/languageModelToolsContribution.js';
37
37
  import '../common/voiceChatService.js';
38
38
  import { PanelChatAccessibilityHelp, QuickChatAccessibilityHelp } from './actions/chatAccessibilityHelp.js';
39
- import { ChatCommandCenterRendering, registerChatActions } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
39
+ import { ChatCommandCenterRendering, registerChatActions } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
40
40
  import { ACTION_ID_NEW_CHAT, registerNewChatActions } from './actions/chatClearActions.js';
41
41
  import { registerChatCodeBlockActions, registerChatCodeCompareBlockActions } from './actions/chatCodeblockActions.js';
42
42
  import { registerChatContextActions } from './actions/chatContextActions.js';
@@ -46,8 +46,8 @@ import { SubmitAction, registerChatExecuteActions } from '@codingame/monaco-vsco
46
46
  import { registerChatFileTreeActions } from './actions/chatFileTreeActions.js';
47
47
  import { registerChatExportActions } from './actions/chatImportExport.js';
48
48
  import { registerMoveActions } from './actions/chatMoveActions.js';
49
- import { registerQuickChatActions } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions';
50
- import { registerChatTitleActions } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
49
+ import { registerQuickChatActions } from './actions/chatQuickInputActions.js';
50
+ import { registerChatTitleActions } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
51
51
  import './chatAccessibilityService.js';
52
52
  import 'vscode/vscode/vs/base/common/event';
53
53
  import 'vscode/vscode/vs/base/common/resources';
@@ -56,15 +56,15 @@ import './chatEditing/chatEditingService.js';
56
56
  import { ChatEditor } from './chatEditor.js';
57
57
  import { registerChatEditorActions } from './chatEditorActions.js';
58
58
  import { ChatEditorController } from './chatEditorController.js';
59
- import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
59
+ import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
60
60
  import { ChatEditorSaving } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatEditorSaving';
61
- import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
61
+ import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
62
62
  import { ChatExtensionPointHandler, ChatCompatibilityNotifier } from './chatParticipantContributions.js';
63
63
  import { ChatPasteProvidersFeature } from './chatPasteProviders.js';
64
64
  import './chatQuick.js';
65
65
  import { ChatResponseAccessibleView } from './chatResponseAccessibleView.js';
66
66
  import './chatVariables.js';
67
- import '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
67
+ import '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
68
68
  import '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
69
69
  import './contrib/chatInputEditorContrib.js';
70
70
  import './contrib/chatInputEditorHover.js';
@@ -76,34 +76,34 @@ import { ChatGettingStartedContribution } from './actions/chatGettingStarted.js'
76
76
  const configurationRegistry = ( (Registry.as(Extensions.Configuration)));
77
77
  configurationRegistry.registerConfiguration({
78
78
  id: 'chatSidebar',
79
- title: ( localize(3198, "Chat")),
79
+ title: ( localize(2714, "Chat")),
80
80
  type: 'object',
81
81
  properties: {
82
82
  'chat.editor.fontSize': {
83
83
  type: 'number',
84
- description: ( localize(3199, "Controls the font size in pixels in chat codeblocks.")),
84
+ description: ( localize(2715, "Controls the font size in pixels in chat codeblocks.")),
85
85
  default: isMacintosh ? 12 : 14,
86
86
  },
87
87
  'chat.editor.fontFamily': {
88
88
  type: 'string',
89
- description: ( localize(3200, "Controls the font family in chat codeblocks.")),
89
+ description: ( localize(2716, "Controls the font family in chat codeblocks.")),
90
90
  default: 'default'
91
91
  },
92
92
  'chat.editor.fontWeight': {
93
93
  type: 'string',
94
- description: ( localize(3201, "Controls the font weight in chat codeblocks.")),
94
+ description: ( localize(2717, "Controls the font weight in chat codeblocks.")),
95
95
  default: 'default'
96
96
  },
97
97
  'chat.editor.wordWrap': {
98
98
  type: 'string',
99
- description: ( localize(3202, "Controls whether lines should wrap in chat codeblocks.")),
99
+ description: ( localize(2718, "Controls whether lines should wrap in chat codeblocks.")),
100
100
  default: 'off',
101
101
  enum: ['on', 'off']
102
102
  },
103
103
  'chat.editor.lineHeight': {
104
104
  type: 'number',
105
105
  description: ( localize(
106
- 3203,
106
+ 2719,
107
107
  "Controls the line height in pixels in chat codeblocks. Use 0 to compute the line height from the font size."
108
108
  )),
109
109
  default: 0
@@ -112,7 +112,7 @@ configurationRegistry.registerConfiguration({
112
112
  type: 'boolean',
113
113
  tags: ['preview'],
114
114
  markdownDescription: ( localize(
115
- 3204,
115
+ 2720,
116
116
  "Controls whether the command center shows a menu for chat actions (requires {0}).",
117
117
  '`#window.commandCenter#`'
118
118
  )),
@@ -122,7 +122,7 @@ configurationRegistry.registerConfiguration({
122
122
  type: 'boolean',
123
123
  scope: 1 ,
124
124
  markdownDescription: ( localize(
125
- 3205,
125
+ 2721,
126
126
  "Whether to always ask before saving files with changes made by chat."
127
127
  )),
128
128
  default: false,
@@ -131,7 +131,7 @@ configurationRegistry.registerConfiguration({
131
131
  type: 'boolean',
132
132
  scope: 1 ,
133
133
  markdownDescription: ( localize(
134
- 3206,
134
+ 2722,
135
135
  "Whether to show a confirmation before removing a request and its associated edits."
136
136
  )),
137
137
  default: true,
@@ -140,7 +140,7 @@ configurationRegistry.registerConfiguration({
140
140
  type: 'boolean',
141
141
  scope: 1 ,
142
142
  markdownDescription: ( localize(
143
- 3207,
143
+ 2723,
144
144
  "Whether to show a confirmation before retrying a request and its associated edits."
145
145
  )),
146
146
  default: true,
@@ -149,19 +149,19 @@ configurationRegistry.registerConfiguration({
149
149
  type: 'boolean',
150
150
  scope: 1 ,
151
151
  markdownDescription: ( localize(
152
- 3208,
152
+ 2724,
153
153
  "Whether to show a toggle to restore an earlier version of a file that was edited in a chat editing session request."
154
154
  )),
155
155
  default: false,
156
156
  },
157
157
  'chat.experimental.detectParticipant.enabled': {
158
158
  type: 'boolean',
159
- description: ( localize(3209, "Enables chat participant autodetection for panel chat.")),
159
+ description: ( localize(2725, "Enables chat participant autodetection for panel chat.")),
160
160
  default: null
161
161
  },
162
162
  }
163
163
  });
164
- ( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(3210, "Chat"))), [
164
+ ( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(2726, "Chat"))), [
165
165
  ( (new SyncDescriptor(ChatEditorInput)))
166
166
  ]);
167
167
  let ChatResolverContribution = class ChatResolverContribution extends Disposable {
@@ -170,7 +170,7 @@ let ChatResolverContribution = class ChatResolverContribution extends Disposable
170
170
  super();
171
171
  this._register(editorResolverService.registerEditor(`${Schemas.vscodeChatSesssion}:**/**`, {
172
172
  id: ChatEditorInput.EditorID,
173
- label: ( localize(3210, "Chat")),
173
+ label: ( localize(2726, "Chat")),
174
174
  priority: RegisteredEditorPriority.builtin
175
175
  }, {
176
176
  singlePerResource: true,
@@ -195,7 +195,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
195
195
  super();
196
196
  this._store.add(slashCommandService.registerSlashCommand({
197
197
  command: 'clear',
198
- detail: ( localize(3211, "Start a new chat")),
198
+ detail: ( localize(2727, "Start a new chat")),
199
199
  sortText: 'z2_clear',
200
200
  executeImmediately: true,
201
201
  locations: [ChatAgentLocation.Panel]
@@ -244,7 +244,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
244
244
  }
245
245
  const variables = [
246
246
  ...chatVariablesService.getVariables(ChatAgentLocation.Panel),
247
- { name: 'file', description: ( localize(3212, "Choose a file in the workspace")) }
247
+ { name: 'file', description: ( localize(2728, "Choose a file in the workspace")) }
248
248
  ];
249
249
  const variableText = ( (variables
250
250
  .map(v => `* \`${chatVariableLeader}${v.name}\` - ${v.description}`)))
@@ -197,7 +197,7 @@ let ChatEditingModifiedFileEntry = class ChatEditingModifiedFileEntry extends Di
197
197
  if (this._isFirstEditAfterStartOrSnapshot) {
198
198
  this._isFirstEditAfterStartOrSnapshot = false;
199
199
  const request = this._chatService.getSession(this._telemetryInfo.sessionId)?.getRequests().at(-1);
200
- const label = request?.message.text ? ( localize(10892, "Chat Edit: '{0}'", request.message.text)) : ( localize(10893, "Chat Edit"));
200
+ const label = request?.message.text ? ( localize(10873, "Chat Edit: '{0}'", request.message.text)) : ( localize(10874, "Chat Edit"));
201
201
  this._undoRedoService.pushElement(( (new SingleModelEditStackElement(label, 'chat.edit', this.doc, null))));
202
202
  }
203
203
  this._applyEdits(( (textEdits.map(TextEdit.asEditOperation))));
@@ -31,7 +31,7 @@ import { MultiDiffEditorItem } from 'vscode/vscode/vs/workbench/contrib/multiDif
31
31
  import { IMultiDiffSourceResolverService } from 'vscode/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service';
32
32
  import { ICodeMapperService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatCodeMapperService.service';
33
33
  import { CONTEXT_CHAT_EDITING_CAN_UNDO, CONTEXT_CHAT_EDITING_CAN_REDO } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
34
- import { defaultChatEditingMaxFileLimit, applyingChatEditsFailedContextKey, decidedChatEditingResourceContextKey, hasUndecidedChatEditingResourceContextKey, hasAppliedChatEditsContextKey, inChatEditingSessionContextKey, applyingChatEditsContextKey, chatEditingMaxFileAssignmentName, CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME, chatEditingResourceContextKey } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatEditingService';
34
+ import { defaultChatEditingMaxFileLimit, applyingChatEditsFailedContextKey, decidedChatEditingResourceContextKey, hasUndecidedChatEditingResourceContextKey, hasAppliedChatEditsContextKey, inChatEditingSessionContextKey, applyingChatEditsContextKey, chatEditingMaxFileAssignmentName, CHAT_EDITING_MULTI_DIFF_SOURCE_RESOLVER_SCHEME, chatEditingResourceContextKey } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatEditingService';
35
35
  import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService.service';
36
36
  import { ChatEditingSession } from './chatEditingSession.js';
37
37
  import { ChatEditingTextModelContentProvider, ChatEditingSnapshotTextModelContentProvider } from './chatEditingTextModelContentProviders.js';
@@ -167,7 +167,7 @@ let ChatEditingService = class ChatEditingService extends Disposable {
167
167
  this._currentSessionDisposables.add(this.installAutoApplyObserver(chatSessionId));
168
168
  const input = MultiDiffEditorInput.fromResourceMultiDiffEditorInput({
169
169
  multiDiffSource: ChatEditingMultiDiffSourceResolver.getMultiDiffSourceUri(),
170
- label: ( localize(3220, "Suggested Edits"))
170
+ label: ( localize(2734, "Suggested Edits"))
171
171
  }, this._instantiationService);
172
172
  const editorPane = options?.silent ? undefined : await this._editorGroupsService.activeGroup.openEditor(input, { pinned: true, activation: EditorActivation.ACTIVATE });
173
173
  const session = this._instantiationService.createInstance(ChatEditingSession, chatSessionId, editorPane, this._editingSessionFileLimitPromise);
@@ -316,7 +316,7 @@ let ChatEditingService = class ChatEditingService extends Disposable {
316
316
  else {
317
317
  await this._progressService.withProgress({
318
318
  location: 10 ,
319
- title: ( localize2(3221, 'Generating edits...')).value,
319
+ title: ( localize2(2735, 'Generating edits...')).value,
320
320
  }, async () => {
321
321
  await builder(stream, cancellationTokenSource.token);
322
322
  }, () => cancellationTokenSource.cancel());
@@ -367,7 +367,7 @@ class ChatDecorationsProvider extends Disposable {
367
367
  constructor(_session) {
368
368
  super();
369
369
  this._session = _session;
370
- this.label = ( localize(3222, "Chat Editing"));
370
+ this.label = ( localize(2736, "Chat Editing"));
371
371
  this._currentlyEditingUris = derived(this, (r) => {
372
372
  const session = this._session.read(r);
373
373
  if (!session) {
@@ -315,7 +315,7 @@ let ChatEditingSession = class ChatEditingSession extends Disposable {
315
315
  }
316
316
  const input = MultiDiffEditorInput.fromResourceMultiDiffEditorInput({
317
317
  multiDiffSource: ChatEditingMultiDiffSourceResolver.getMultiDiffSourceUri(),
318
- label: ( localize(7701, "Suggested Edits"))
318
+ label: ( localize(7665, "Suggested Edits"))
319
319
  }, this._instantiationService);
320
320
  const editorPane = await this._editorGroupsService.activeGroup.openEditor(input, { pinned: true, activation: EditorActivation.ACTIVATE });
321
321
  this.editorPane = editorPane;
@@ -416,7 +416,7 @@ let ChatEditingSession = class ChatEditingSession extends Disposable {
416
416
  }
417
417
  if (resource.scheme !== Schemas.untitled && !this._workspaceContextService.getWorkspaceFolder(resource) && !(await this._fileService.exists(resource))) {
418
418
  const saveLocation = await this._dialogService.showSaveDialog({ title: ( localize(
419
- 7702,
419
+ 7666,
420
420
  '{0} wants to create a file. Choose where it should be saved.',
421
421
  this._chatAgentService.getDefaultAgent(ChatAgentLocation.EditingSession)?.fullName ?? 'Chat'
422
422
  )) });
@@ -18,11 +18,11 @@ import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
18
18
  import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';
19
19
  import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
20
20
  import { Memento } from 'vscode/vscode/vs/workbench/common/memento';
21
- import { clearChatEditor } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatClear';
22
- import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
23
- import { ChatWidget } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
21
+ import { clearChatEditor } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/actions/chatClear';
22
+ import { ChatEditorInput } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
23
+ import { ChatWidget } from '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
24
24
  import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
25
- import { CHAT_PROVIDER_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParticipantContribTypes';
25
+ import { CHAT_PROVIDER_ID } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParticipantContribTypes';
26
26
  import { EDITOR_DRAG_AND_DROP_BACKGROUND } from 'vscode/vscode/vs/workbench/common/theme';
27
27
 
28
28
  let ChatEditor = class ChatEditor extends EditorPane {