@codingame/monaco-vscode-notebook-service-override 11.1.0 → 11.1.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-notebook-service-override",
3
- "version": "11.1.0",
3
+ "version": "11.1.2",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -29,12 +29,14 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "vscode": "npm:@codingame/monaco-vscode-api@11.1.0",
33
- "@codingame/monaco-vscode-chat-notebook-common": "11.1.0",
34
- "@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.1.0",
35
- "@codingame/monaco-vscode-chat-comments-extensions-interactive-notebook-search-common": "11.1.0",
36
- "@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common": "11.1.0",
37
- "@codingame/monaco-vscode-chat-extensions-notebook-common": "11.1.0",
38
- "@codingame/monaco-vscode-debug-notebook-common": "11.1.0"
32
+ "vscode": "npm:@codingame/monaco-vscode-api@11.1.2",
33
+ "@codingame/monaco-vscode-chat-notebook-common": "11.1.2",
34
+ "@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.1.2",
35
+ "@codingame/monaco-vscode-chat-comments-extensions-interactive-notebook-search-common": "11.1.2",
36
+ "@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common": "11.1.2",
37
+ "@codingame/monaco-vscode-chat-extensions-notebook-common": "11.1.2",
38
+ "@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common": "11.1.2",
39
+ "@codingame/monaco-vscode-debug-notebook-common": "11.1.2",
40
+ "@codingame/monaco-vscode-chat-notebook-terminal-common": "11.1.2"
39
41
  }
40
42
  }
@@ -8,7 +8,7 @@ import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/confi
8
8
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
9
9
  import { InputFocusedContextKey, IsWindowsContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
10
10
  import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
11
- import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
11
+ import { InlineChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
12
12
  import { CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
13
13
  import { NotebookCellAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, findTargetCellEditor, NotebookAction } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
14
14
  import { CellEditState } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
@@ -8,7 +8,7 @@ import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/comma
8
8
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
9
9
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
10
10
  import { InputFocusedContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
11
- import { CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_INNER_CURSOR_FIRST, CTX_INLINE_CHAT_INNER_CURSOR_LAST, CTX_INLINE_CHAT_RESPONSE_TYPE, CTX_INLINE_CHAT_VISIBLE, CTX_INLINE_CHAT_DOCUMENT_CHANGED, CTX_INLINE_CHAT_EDIT_MODE, MENU_INLINE_CHAT_WIDGET_STATUS, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
11
+ import { CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_INNER_CURSOR_FIRST, CTX_INLINE_CHAT_INNER_CURSOR_LAST, CTX_INLINE_CHAT_RESPONSE_TYPE, CTX_INLINE_CHAT_VISIBLE, CTX_INLINE_CHAT_DOCUMENT_CHANGED, CTX_INLINE_CHAT_EDIT_MODE, MENU_INLINE_CHAT_WIDGET_STATUS, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
12
12
  import { CTX_NOTEBOOK_CELL_CHAT_FOCUSED, MENU_CELL_CHAT_INPUT, CTX_NOTEBOOK_CHAT_HAS_ACTIVE_REQUEST, MENU_CELL_CHAT_WIDGET, CTX_NOTEBOOK_CHAT_USER_DID_EDIT, CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION, MENU_CELL_CHAT_WIDGET_STATUS, CTX_NOTEBOOK_CHAT_HAS_AGENT } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
13
13
  import { NotebookChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController';
14
14
  import { NotebookAction, NotebookCellAction, getEditorFromArgsOrActivePane, CELL_TITLE_CELL_GROUP_ID, getContextFromActiveEditor } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
@@ -19,7 +19,7 @@ import { NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, IS_COMPOSITE_NOT
19
19
  import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
20
20
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
21
21
  import { CONTEXT_CHAT_INPUT_HAS_TEXT } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
22
- import { AbstractInlineChatAction } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatActions';
22
+ import { AbstractInlineChatAction } from '@codingame/monaco-vscode-chat-notebook-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatActions';
23
23
 
24
24
  registerAction2(class extends NotebookAction {
25
25
  constructor() {
@@ -12,11 +12,11 @@ import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/commo
12
12
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
13
13
  import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
14
14
  import { ChatInputPart } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/chatInputPart';
15
- import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-chat-extensions-notebook-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
15
+ import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
16
16
  import { computeCompletionRanges } from '@codingame/monaco-vscode-chat-notebook-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
17
17
  import { ChatAgentLocation } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents';
18
18
  import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
19
- import { chatVariableLeader } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
19
+ import { chatVariableLeader } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
20
20
  import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
21
21
  import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
22
22
  import './cellChatActions.js';
@@ -17,8 +17,8 @@ import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs
17
17
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
18
18
  import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
19
19
  import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
20
- import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
21
- import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
20
+ import { InlineChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
21
+ import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
22
22
  import { runDeleteAction, changeCellToKind } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
23
23
  import { NotebookCellAction, CELL_TITLE_CELL_GROUP_ID, findTargetCellEditor, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, executeNotebookCondition, CELL_TITLE_OUTPUT_GROUP_ID, NotebookAction, NotebookMultiCellAction } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
24
24
  import { NotebookIndentUsingTabs, NotebookIndentUsingSpaces, NotebookChangeTabDisplaySize, NotebookIndentationToTabsAction, NotebookIndentationToSpacesAction } from './notebookIndentationActions.js';
@@ -41,7 +41,7 @@ registerAction2(class EditCellAction extends NotebookCellAction {
41
41
  constructor() {
42
42
  super({
43
43
  id: EDIT_CELL_COMMAND_ID,
44
- title: ( localize(8081, "Edit Cell")),
44
+ title: ( localize(8084, "Edit Cell")),
45
45
  keybinding: {
46
46
  when: ( (ContextKeyExpr.and(
47
47
  NOTEBOOK_CELL_LIST_FOCUSED,
@@ -87,7 +87,7 @@ registerAction2(class QuitEditCellAction extends NotebookCellAction {
87
87
  constructor() {
88
88
  super({
89
89
  id: QUIT_EDIT_CELL_COMMAND_ID,
90
- title: ( localize(8082, "Stop Editing Cell")),
90
+ title: ( localize(8085, "Stop Editing Cell")),
91
91
  menu: {
92
92
  id: MenuId.NotebookCellTitle,
93
93
  when: ( (ContextKeyExpr.and(
@@ -137,7 +137,7 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
137
137
  constructor() {
138
138
  super({
139
139
  id: DELETE_CELL_COMMAND_ID,
140
- title: ( localize(8083, "Delete Cell")),
140
+ title: ( localize(8086, "Delete Cell")),
141
141
  keybinding: {
142
142
  primary: 20 ,
143
143
  mac: {
@@ -174,13 +174,13 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
174
174
  const configService = accessor.get(IConfigurationService);
175
175
  if (runState === NotebookCellExecutionState.Executing && configService.getValue(NotebookSetting.confirmDeleteRunningCell)) {
176
176
  const dialogService = accessor.get(IDialogService);
177
- const primaryButton = ( localize(8084, "Delete"));
177
+ const primaryButton = ( localize(8087, "Delete"));
178
178
  confirmation = await dialogService.confirm({
179
179
  type: 'question',
180
- message: ( localize(8085, "This cell is running, are you sure you want to delete it?")),
180
+ message: ( localize(8088, "This cell is running, are you sure you want to delete it?")),
181
181
  primaryButton: primaryButton,
182
182
  checkbox: {
183
- label: ( localize(8086, "Do not ask me again"))
183
+ label: ( localize(8089, "Do not ask me again"))
184
184
  }
185
185
  });
186
186
  }
@@ -200,7 +200,7 @@ registerAction2(class ClearCellOutputsAction extends NotebookCellAction {
200
200
  constructor() {
201
201
  super({
202
202
  id: CLEAR_CELL_OUTPUTS_COMMAND_ID,
203
- title: ( localize(8087, 'Clear Cell Outputs')),
203
+ title: ( localize(8090, 'Clear Cell Outputs')),
204
204
  menu: [
205
205
  {
206
206
  id: MenuId.NotebookCellTitle,
@@ -271,7 +271,7 @@ registerAction2(class ClearAllCellOutputsAction extends NotebookAction {
271
271
  constructor() {
272
272
  super({
273
273
  id: CLEAR_ALL_CELLS_OUTPUTS_COMMAND_ID,
274
- title: ( localize(8088, 'Clear All Outputs')),
274
+ title: ( localize(8091, 'Clear All Outputs')),
275
275
  precondition: NOTEBOOK_HAS_OUTPUTS,
276
276
  menu: [
277
277
  {
@@ -332,9 +332,9 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
332
332
  constructor() {
333
333
  super({
334
334
  id: CHANGE_CELL_LANGUAGE,
335
- title: ( localize(8089, 'Change Cell Language')),
335
+ title: ( localize(8092, 'Change Cell Language')),
336
336
  metadata: {
337
- description: ( localize(8089, 'Change Cell Language')),
337
+ description: ( localize(8092, 'Change Cell Language')),
338
338
  args: [
339
339
  {
340
340
  name: 'range',
@@ -407,10 +407,10 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
407
407
  providerLanguages.forEach(languageId => {
408
408
  let description;
409
409
  if (context.cell.cellKind === CellKind.Markup ? (languageId === 'markdown') : (languageId === context.cell.language)) {
410
- description = ( localize(8090, "({0}) - Current Language", languageId));
410
+ description = ( localize(8093, "({0}) - Current Language", languageId));
411
411
  }
412
412
  else {
413
- description = ( localize(8091, "({0})", languageId));
413
+ description = ( localize(8094, "({0})", languageId));
414
414
  }
415
415
  const languageName = languageService.getLanguageName(languageId);
416
416
  if (!languageName) {
@@ -433,16 +433,16 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
433
433
  return a.description.localeCompare(b.description);
434
434
  });
435
435
  const autoDetectMode = {
436
- label: ( localize(8092, "Auto Detect"))
436
+ label: ( localize(8095, "Auto Detect"))
437
437
  };
438
438
  const picks = [
439
439
  autoDetectMode,
440
- { type: 'separator', label: ( localize(8093, "languages (identifier)")) },
440
+ { type: 'separator', label: ( localize(8096, "languages (identifier)")) },
441
441
  ...topItems,
442
442
  { type: 'separator' },
443
443
  ...mainItems
444
444
  ];
445
- const selection = await quickInputService.pick(picks, { placeHolder: ( localize(8094, "Select Language Mode")) });
445
+ const selection = await quickInputService.pick(picks, { placeHolder: ( localize(8097, "Select Language Mode")) });
446
446
  const languageId = selection === autoDetectMode
447
447
  ? await languageDetectionService.detectLanguage(context.cell.uri)
448
448
  : selection?.languageId;
@@ -475,7 +475,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
475
475
  constructor() {
476
476
  super({
477
477
  id: DETECT_CELL_LANGUAGE,
478
- title: ( localize2(8095, "Accept Detected Language for Cell")),
478
+ title: ( localize2(8098, "Accept Detected Language for Cell")),
479
479
  f1: true,
480
480
  precondition: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE))),
481
481
  keybinding: { primary: 34 | 512 | 1024 , weight: 200 }
@@ -493,7 +493,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
493
493
  setCellToLanguage(detection, context);
494
494
  }
495
495
  else {
496
- notificationService.warn(( localize(8096, "Unable to detect cell language")));
496
+ notificationService.warn(( localize(8099, "Unable to detect cell language")));
497
497
  }
498
498
  }
499
499
  });
@@ -518,7 +518,7 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
518
518
  constructor() {
519
519
  super({
520
520
  id: SELECT_NOTEBOOK_INDENTATION_ID,
521
- title: ( localize2(8097, 'Select Indentation')),
521
+ title: ( localize2(8100, 'Select Indentation')),
522
522
  f1: true,
523
523
  precondition: ( (ContextKeyExpr.and(
524
524
  NOTEBOOK_IS_ACTIVE_EDITOR,
@@ -536,10 +536,10 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
536
536
  const instantiationService = accessor.get(IInstantiationService);
537
537
  const activeNotebook = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
538
538
  if (!activeNotebook || activeNotebook.isDisposed) {
539
- return quickInputService.pick([{ label: ( localize(8098, "No notebook editor active at this time")) }]);
539
+ return quickInputService.pick([{ label: ( localize(8101, "No notebook editor active at this time")) }]);
540
540
  }
541
541
  if (activeNotebook.isReadOnly) {
542
- return quickInputService.pick([{ label: ( localize(8099, "The active notebook editor is read-only.")) }]);
542
+ return quickInputService.pick([{ label: ( localize(8102, "The active notebook editor is read-only.")) }]);
543
543
  }
544
544
  const picks = ( ([
545
545
  (
@@ -561,9 +561,9 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
561
561
  }
562
562
  };
563
563
  })));
564
- picks.splice(3, 0, { type: 'separator', label: ( localize(8100, "convert file")) });
565
- picks.unshift({ type: 'separator', label: ( localize(8101, "change view")) });
566
- const action = await quickInputService.pick(picks, { placeHolder: ( localize(8102, "Select Action")), matchOnDetail: true });
564
+ picks.splice(3, 0, { type: 'separator', label: ( localize(8103, "convert file")) });
565
+ picks.unshift({ type: 'separator', label: ( localize(8104, "change view")) });
566
+ const action = await quickInputService.pick(picks, { placeHolder: ( localize(8105, "Select Action")), matchOnDetail: true });
567
567
  if (!action) {
568
568
  return;
569
569
  }
@@ -576,7 +576,7 @@ registerAction2(class CommentSelectedCellsAction extends NotebookMultiCellAction
576
576
  constructor() {
577
577
  super({
578
578
  id: COMMENT_SELECTED_CELLS_ID,
579
- title: ( localize(8103, "Comment Selected Cells")),
579
+ title: ( localize(8106, "Comment Selected Cells")),
580
580
  keybinding: {
581
581
  when: ( (ContextKeyExpr.and(
582
582
  NOTEBOOK_EDITOR_FOCUSED,
@@ -7,7 +7,7 @@ import { registerAction2, MenuId, MenuRegistry } from 'vscode/vscode/vs/platform
7
7
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
8
8
  import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
9
9
  import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
10
- import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
10
+ import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-chat-interactive-notebook-search-terminal-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
11
11
  import { insertCell } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
12
12
  import { CTX_NOTEBOOK_CELL_CHAT_FOCUSED } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
13
13
  import { NotebookChatController } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController';