@codingame/monaco-vscode-notebook-service-override 15.0.2 → 16.0.0

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 (84) hide show
  1. package/index.js +5 -11
  2. package/package.json +27 -26
  3. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css +6 -0
  4. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +10 -10
  5. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +22 -22
  6. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +1 -0
  7. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +7 -3
  8. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +5 -5
  9. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +7 -3
  10. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +3 -3
  11. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +7 -7
  12. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +12 -3
  13. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +10 -10
  14. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css +17 -0
  15. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +4 -4
  16. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +5 -5
  17. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +2 -2
  18. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
  19. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +6 -6
  20. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +14 -14
  21. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +1 -1
  22. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +1 -1
  23. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
  24. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +2 -2
  25. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +2 -2
  26. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +10 -10
  27. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
  28. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +13 -13
  29. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +3 -3
  30. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +28 -28
  31. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +54 -31
  32. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +25 -25
  33. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +26 -26
  34. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +25 -25
  35. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +18 -18
  36. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
  37. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +12 -12
  38. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +2 -2
  39. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +22 -22
  40. package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +72 -74
  41. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +11 -11
  42. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +1 -1
  43. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
  44. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +2 -2
  45. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
  46. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
  47. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +3 -3
  48. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
  49. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +54 -12
  50. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +4 -3
  51. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +2 -0
  52. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +42 -1
  53. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +10 -2
  54. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookCellMatching.d.ts +15 -0
  55. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookCellMatching.js +173 -0
  56. package/vscode/src/vs/workbench/contrib/notebook/common/services/{notebookSimpleWorker.d.ts → notebookWebWorker.d.ts} +24 -6
  57. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +366 -0
  58. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorkerMain.js +5 -0
  59. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
  60. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
  61. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +2 -2
  62. package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +1 -1
  63. package/worker.js +1 -1
  64. package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +0 -6
  65. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/contribution.js +0 -10
  66. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookCellDecorators.d.ts +0 -24
  67. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookCellDecorators.js +0 -332
  68. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatActionsOverlay.d.ts +0 -23
  69. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatActionsOverlay.js +0 -299
  70. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditController.d.ts +0 -9
  71. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditController.js +0 -179
  72. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.d.ts +0 -21
  73. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.js +0 -42
  74. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.d.ts +0 -25
  75. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.js +0 -77
  76. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.d.ts +0 -64
  77. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.js +0 -443
  78. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +0 -20
  79. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +0 -86
  80. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +0 -6
  81. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +0 -279
  82. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.d.ts +0 -1
  83. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.js +0 -5
  84. /package/vscode/src/vs/workbench/contrib/notebook/{browser/contrib/chatEdit/contribution.d.ts → common/services/notebookWebWorkerMain.d.ts} +0 -0
package/index.js CHANGED
@@ -28,14 +28,10 @@ import { INotebookSearchService } from '@codingame/monaco-vscode-api/vscode/vs/w
28
28
  import { NotebookSearchService } from '@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common/vscode/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService';
29
29
  import { NotebookDocumentWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/notebook/common/notebookDocumentService';
30
30
  import { INotebookDocumentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/notebook/common/notebookDocumentService.service';
31
- import { INotebookSynchronizerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookSynchronizerService.service';
32
- import { NotebookSynchronizerService } from './vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js';
33
- import { INotebookOriginalCellModelFactory } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.service';
34
- import { INotebookOriginalModelReferenceFactory } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.service';
35
- import { NotebookOriginalModelReferenceFactory } from './vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.js';
36
- import { INotebookModelSynchronizerFactory } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.service';
37
- import { NotebookModelSynchronizerFactory } from './vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.js';
38
- import { OriginalNotebookCellModelFactory } from './vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.js';
31
+ import { INotebookOriginalCellModelFactory } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.service';
32
+ import { INotebookOriginalModelReferenceFactory } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.service';
33
+ import { OriginalNotebookCellModelFactory } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory';
34
+ import { NotebookOriginalModelReferenceFactory } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory';
39
35
  import './vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js';
40
36
 
41
37
  function getServiceOverride() {
@@ -54,10 +50,8 @@ function getServiceOverride() {
54
50
  [INotebookLoggingService.toString()]: new SyncDescriptor(NotebookLoggingService, [], true),
55
51
  [INotebookSearchService.toString()]: new SyncDescriptor(NotebookSearchService, [], true),
56
52
  [INotebookDocumentService.toString()]: new SyncDescriptor(NotebookDocumentWorkbenchService, [], true),
57
- [INotebookSynchronizerService.toString()]: new SyncDescriptor(NotebookSynchronizerService, [], true),
58
53
  [INotebookOriginalCellModelFactory.toString()]: new SyncDescriptor(OriginalNotebookCellModelFactory, [], true),
59
- [INotebookOriginalModelReferenceFactory.toString()]: new SyncDescriptor(NotebookOriginalModelReferenceFactory, [], true),
60
- [INotebookModelSynchronizerFactory.toString()]: new SyncDescriptor(NotebookModelSynchronizerFactory, [], true)
54
+ [INotebookOriginalModelReferenceFactory.toString()]: new SyncDescriptor(NotebookOriginalModelReferenceFactory, [], true)
61
55
  };
62
56
  }
63
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-notebook-service-override",
3
- "version": "15.0.2",
3
+ "version": "16.0.0",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - notebook service-override",
6
6
  "keywords": [],
@@ -15,31 +15,29 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "15.0.2",
19
- "@codingame/monaco-vscode-0cd5242b-7b61-5f66-ac25-ffa40baf8e8f-common": "15.0.2",
20
- "@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "15.0.2",
21
- "@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common": "15.0.2",
22
- "@codingame/monaco-vscode-1bb39316-6fbf-572e-ab6a-818a2496c14f-common": "15.0.2",
23
- "@codingame/monaco-vscode-29bc1406-2925-5b8f-b25e-d04a7772d896-common": "15.0.2",
24
- "@codingame/monaco-vscode-2e69e120-617a-5258-95e0-3b8902f4e014-common": "15.0.2",
25
- "@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "15.0.2",
26
- "@codingame/monaco-vscode-4e719823-8b6e-554d-b01a-5670b53fbb19-common": "15.0.2",
27
- "@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-9bee-b28824214eac-common": "15.0.2",
28
- "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "15.0.2",
29
- "@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common": "15.0.2",
30
- "@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common": "15.0.2",
31
- "@codingame/monaco-vscode-805e9c2f-56b6-5a43-8b5b-d2dc2d3805fc-common": "15.0.2",
32
- "@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "15.0.2",
33
- "@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "15.0.2",
34
- "@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "15.0.2",
35
- "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common": "15.0.2",
36
- "@codingame/monaco-vscode-9b5a5e82-d649-5455-b4bf-ef90d6afd294-common": "15.0.2",
37
- "@codingame/monaco-vscode-a3f28a41-ba19-5a7e-8f5a-d6c1403b507d-common": "15.0.2",
38
- "@codingame/monaco-vscode-a4c2011e-8775-52bd-abf0-4a3c07a9696b-common": "15.0.2",
39
- "@codingame/monaco-vscode-api": "15.0.2",
40
- "@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common": "15.0.2",
41
- "@codingame/monaco-vscode-bba55be6-41a2-50cd-a3cc-8bafa35bfa89-common": "15.0.2",
42
- "@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "15.0.2",
18
+ "@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "16.0.0",
19
+ "@codingame/monaco-vscode-0cd5242b-7b61-5f66-ac25-ffa40baf8e8f-common": "16.0.0",
20
+ "@codingame/monaco-vscode-12c5f9eb-72d3-57ca-babd-5bef7aa9de3b-common": "16.0.0",
21
+ "@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common": "16.0.0",
22
+ "@codingame/monaco-vscode-29bc1406-2925-5b8f-b25e-d04a7772d896-common": "16.0.0",
23
+ "@codingame/monaco-vscode-2e69e120-617a-5258-95e0-3b8902f4e014-common": "16.0.0",
24
+ "@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "16.0.0",
25
+ "@codingame/monaco-vscode-4e719823-8b6e-554d-b01a-5670b53fbb19-common": "16.0.0",
26
+ "@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "16.0.0",
27
+ "@codingame/monaco-vscode-68b3311c-eb96-5711-8f72-f5f4b2e31932-common": "16.0.0",
28
+ "@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common": "16.0.0",
29
+ "@codingame/monaco-vscode-805e9c2f-56b6-5a43-8b5b-d2dc2d3805fc-common": "16.0.0",
30
+ "@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "16.0.0",
31
+ "@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "16.0.0",
32
+ "@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common": "16.0.0",
33
+ "@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "16.0.0",
34
+ "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common": "16.0.0",
35
+ "@codingame/monaco-vscode-9b5a5e82-d649-5455-b4bf-ef90d6afd294-common": "16.0.0",
36
+ "@codingame/monaco-vscode-a1eb43d5-da63-5f76-8ad4-acf0d6c3b749-common": "16.0.0",
37
+ "@codingame/monaco-vscode-a3f28a41-ba19-5a7e-8f5a-d6c1403b507d-common": "16.0.0",
38
+ "@codingame/monaco-vscode-api": "16.0.0",
39
+ "@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common": "16.0.0",
40
+ "@codingame/monaco-vscode-bba55be6-41a2-50cd-a3cc-8bafa35bfa89-common": "16.0.0",
43
41
  "marked": "14.0.0"
44
42
  },
45
43
  "main": "index.js",
@@ -49,6 +47,9 @@
49
47
  ".": {
50
48
  "default": "./index.js"
51
49
  },
50
+ "./vscode/*.css": {
51
+ "default": "./vscode/src/*.css"
52
+ },
52
53
  "./vscode/*": {
53
54
  "types": "./vscode/src/*.d.ts",
54
55
  "default": "./vscode/src/*.js"
@@ -0,0 +1,6 @@
1
+ .monaco-editor .contentWidgets .empty-editor-hint {
2
+ color: var(--vscode-input-placeholderForeground);
3
+ }
4
+ .monaco-editor .contentWidgets .empty-editor-hint a {
5
+ color: var(--vscode-textLink-foreground)
6
+ }
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
3
- import './emptyTextEditorHint.css.js';
3
+ import './emptyTextEditorHint.css';
4
4
  import { $ as $$1, getActiveWindow, addDisposableListener, EventType } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
5
5
  import { dispose, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
6
6
  import { ContentWidgetPositionPreference } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser';
@@ -28,10 +28,10 @@ import { OUTPUT_MODE_ID, LOG_MODE_ID } from '@codingame/monaco-vscode-api/vscode
28
28
  import { SEARCH_RESULT_LANGUAGE_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search';
29
29
  import { getDefaultHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
30
30
  import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
31
- import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents';
32
31
  import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
33
32
  import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
34
33
  import { StandardMouseEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/mouseEvent';
34
+ import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
35
35
 
36
36
  const $ = $$1;
37
37
  const emptyTextEditorHintSetting = 'workbench.editor.empty.hint';
@@ -196,8 +196,8 @@ class EmptyTextEditorHintContentWidget {
196
196
  getActions: () => {
197
197
  return [{
198
198
  id: 'workench.action.disableEmptyEditorHint',
199
- label: ( localize(4918, "Disable Empty Editor Hint")),
200
- tooltip: ( localize(4918, "Disable Empty Editor Hint")),
199
+ label: ( localize(5052, "Disable Empty Editor Hint")),
200
+ tooltip: ( localize(5052, "Disable Empty Editor Hint")),
201
201
  enabled: true,
202
202
  class: undefined,
203
203
  run: () => {
@@ -235,7 +235,7 @@ class EmptyTextEditorHintContentWidget {
235
235
  const keybindingHintLabel = keybindingHint?.getLabel();
236
236
  if (keybindingHint && keybindingHintLabel) {
237
237
  const actionPart = ( localize(
238
- 4919,
238
+ 5053,
239
239
  'Press {0} to ask {1} to do something. ',
240
240
  keybindingHintLabel,
241
241
  providerName
@@ -266,7 +266,7 @@ class EmptyTextEditorHintContentWidget {
266
266
  this.toDispose.add(addDisposableListener(label.element, EventType.CLICK, handleClick));
267
267
  }
268
268
  hintElement.appendChild(after);
269
- const typeToDismiss = ( localize(4920, 'Start typing to dismiss.'));
269
+ const typeToDismiss = ( localize(5054, 'Start typing to dismiss.'));
270
270
  const textHint2 = $('span', undefined, typeToDismiss);
271
271
  textHint2.style.fontStyle = 'italic';
272
272
  hintElement.appendChild(textHint2);
@@ -274,7 +274,7 @@ class EmptyTextEditorHintContentWidget {
274
274
  }
275
275
  else {
276
276
  const hintMsg = ( localize(
277
- 4921,
277
+ 5055,
278
278
  '[[Ask {0} to do something]] or start typing to dismiss.',
279
279
  providerName
280
280
  ));
@@ -334,7 +334,7 @@ class EmptyTextEditorHintContentWidget {
334
334
  }
335
335
  };
336
336
  const hintMsg = ( localize(
337
- 4922,
337
+ 5056,
338
338
  '[[Select a language]], or [[fill with template]], or [[open a different editor]] to get started.\nStart typing to dismiss or [[don\'t show]] this again.'
339
339
  ));
340
340
  const hintElement = renderFormattedText(hintMsg, {
@@ -345,7 +345,7 @@ class EmptyTextEditorHintContentWidget {
345
345
  const keybindingsLookup = [ChangeLanguageAction.ID, ApplyFileSnippetAction.Id, 'welcome.showNewFileEntries'];
346
346
  const keybindingLabels = ( keybindingsLookup.map((id) => this.keybindingService.lookupKeybinding(id)?.getLabel() ?? id));
347
347
  const ariaLabel = ( localize(
348
- 4923,
348
+ 5057,
349
349
  'Execute {0} to select a language, execute {1} to fill with template, or execute {2} to open a different editor and get started. Start typing to dismiss.',
350
350
  ...keybindingLabels
351
351
  ));
@@ -366,7 +366,7 @@ class EmptyTextEditorHintContentWidget {
366
366
  const { hintElement, ariaLabel } = !inlineChatProviders.length ? this._getHintDefault() : this._getHintInlineChat(inlineChatProviders);
367
367
  this.domNode.append(hintElement);
368
368
  this.ariaLabel = ariaLabel.concat(( localize(
369
- 4924,
369
+ 5058,
370
370
  ' Toggle {0} in settings to disable this hint.',
371
371
  AccessibilityVerbositySettingId.EmptyEditorHint
372
372
  )));
@@ -12,7 +12,7 @@ import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-9a6d8b6c-ad4c
12
12
  import { moveCellRange, copyCellRange, computeCellLinesContents, joinCellsWithSurrounds, joinSelectedCells, changeCellToKind } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
13
13
  import { NotebookCellAction, CellOverflowToolbarGroups, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, NotebookMultiCellAction, parseMultiCellExecutionArgs, cellExecutionArgs } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
14
14
  import { CellFocusMode, EXPAND_CELL_INPUT_COMMAND_ID, EXPAND_CELL_OUTPUT_COMMAND_ID } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
15
- import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_INPUT_COLLAPSED, NOTEBOOK_CELL_TYPE, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED, NOTEBOOK_CELL_HAS_OUTPUTS } from '@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-9bee-b28824214eac-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
15
+ import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_INPUT_COLLAPSED, NOTEBOOK_CELL_TYPE, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED, NOTEBOOK_CELL_HAS_OUTPUTS } from '@codingame/monaco-vscode-a1eb43d5-da63-5f76-8ad4-acf0d6c3b749-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
16
16
  import { moveUpIcon, moveDownIcon, splitCellIcon } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
17
17
  import { CellEditType, CellKind, NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
18
18
  import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
@@ -27,7 +27,7 @@ registerAction2(class extends NotebookCellAction {
27
27
  constructor() {
28
28
  super({
29
29
  id: MOVE_CELL_UP_COMMAND_ID,
30
- title: ( localize2(7540, "Move Cell Up")),
30
+ title: ( localize2(7817, "Move Cell Up")),
31
31
  icon: moveUpIcon,
32
32
  keybinding: {
33
33
  primary: KeyMod.Alt | KeyCode.UpArrow,
@@ -50,7 +50,7 @@ registerAction2(class extends NotebookCellAction {
50
50
  constructor() {
51
51
  super({
52
52
  id: MOVE_CELL_DOWN_COMMAND_ID,
53
- title: ( localize2(7541, "Move Cell Down")),
53
+ title: ( localize2(7818, "Move Cell Down")),
54
54
  icon: moveDownIcon,
55
55
  keybinding: {
56
56
  primary: KeyMod.Alt | KeyCode.DownArrow,
@@ -73,7 +73,7 @@ registerAction2(class extends NotebookCellAction {
73
73
  constructor() {
74
74
  super({
75
75
  id: COPY_CELL_UP_COMMAND_ID,
76
- title: ( localize2(7542, "Copy Cell Up")),
76
+ title: ( localize2(7819, "Copy Cell Up")),
77
77
  keybinding: {
78
78
  primary: KeyMod.Alt | KeyMod.Shift | KeyCode.UpArrow,
79
79
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( InputFocusedContext.toNegated()))),
@@ -89,7 +89,7 @@ registerAction2(class extends NotebookCellAction {
89
89
  constructor() {
90
90
  super({
91
91
  id: COPY_CELL_DOWN_COMMAND_ID,
92
- title: ( localize2(7543, "Copy Cell Down")),
92
+ title: ( localize2(7820, "Copy Cell Down")),
93
93
  keybinding: {
94
94
  primary: KeyMod.Alt | KeyMod.Shift | KeyCode.DownArrow,
95
95
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( InputFocusedContext.toNegated()))),
@@ -115,7 +115,7 @@ registerAction2(class extends NotebookCellAction {
115
115
  constructor() {
116
116
  super({
117
117
  id: SPLIT_CELL_COMMAND_ID,
118
- title: ( localize2(7544, "Split Cell")),
118
+ title: ( localize2(7821, "Split Cell")),
119
119
  menu: {
120
120
  id: MenuId.NotebookCellTitle,
121
121
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, ( NOTEBOOK_CELL_INPUT_COLLAPSED.toNegated()))),
@@ -182,7 +182,7 @@ registerAction2(class extends NotebookCellAction {
182
182
  constructor() {
183
183
  super({
184
184
  id: JOIN_CELL_ABOVE_COMMAND_ID,
185
- title: ( localize2(7545, "Join With Previous Cell")),
185
+ title: ( localize2(7822, "Join With Previous Cell")),
186
186
  keybinding: {
187
187
  when: NOTEBOOK_EDITOR_FOCUSED,
188
188
  primary: KeyMod.WinCtrl | KeyMod.Alt | KeyMod.Shift | KeyCode.KeyJ,
@@ -205,7 +205,7 @@ registerAction2(class extends NotebookCellAction {
205
205
  constructor() {
206
206
  super({
207
207
  id: JOIN_CELL_BELOW_COMMAND_ID,
208
- title: ( localize2(7546, "Join With Next Cell")),
208
+ title: ( localize2(7823, "Join With Next Cell")),
209
209
  keybinding: {
210
210
  when: NOTEBOOK_EDITOR_FOCUSED,
211
211
  primary: KeyMod.WinCtrl | KeyMod.Alt | KeyCode.KeyJ,
@@ -228,7 +228,7 @@ registerAction2(class extends NotebookCellAction {
228
228
  constructor() {
229
229
  super({
230
230
  id: JOIN_SELECTED_CELLS_COMMAND_ID,
231
- title: ( localize2(7547, "Join Selected Cells")),
231
+ title: ( localize2(7824, "Join Selected Cells")),
232
232
  menu: {
233
233
  id: MenuId.NotebookCellTitle,
234
234
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE)),
@@ -249,7 +249,7 @@ registerAction2(class ChangeCellToCodeAction extends NotebookMultiCellAction {
249
249
  constructor() {
250
250
  super({
251
251
  id: CHANGE_CELL_TO_CODE_COMMAND_ID,
252
- title: ( localize2(7548, "Change Cell to Code")),
252
+ title: ( localize2(7825, "Change Cell to Code")),
253
253
  keybinding: {
254
254
  when: ( ContextKeyExpr.and(
255
255
  NOTEBOOK_EDITOR_FOCUSED,
@@ -280,7 +280,7 @@ registerAction2(class ChangeCellToMarkdownAction extends NotebookMultiCellAction
280
280
  constructor() {
281
281
  super({
282
282
  id: CHANGE_CELL_TO_MARKDOWN_COMMAND_ID,
283
- title: ( localize2(7549, "Change Cell to Markdown")),
283
+ title: ( localize2(7826, "Change Cell to Markdown")),
284
284
  keybinding: {
285
285
  when: ( ContextKeyExpr.and(
286
286
  NOTEBOOK_EDITOR_FOCUSED,
@@ -319,7 +319,7 @@ registerAction2(class CollapseCellInputAction extends NotebookMultiCellAction {
319
319
  constructor() {
320
320
  super({
321
321
  id: COLLAPSE_CELL_INPUT_COMMAND_ID,
322
- title: ( localize2(7550, "Collapse Cell Input")),
322
+ title: ( localize2(7827, "Collapse Cell Input")),
323
323
  keybinding: {
324
324
  when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( NOTEBOOK_CELL_INPUT_COLLAPSED.toNegated()), ( InputFocusedContext.toNegated()))),
325
325
  primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyC),
@@ -343,7 +343,7 @@ registerAction2(class ExpandCellInputAction extends NotebookMultiCellAction {
343
343
  constructor() {
344
344
  super({
345
345
  id: EXPAND_CELL_INPUT_COMMAND_ID,
346
- title: ( localize2(7551, "Expand Cell Input")),
346
+ title: ( localize2(7828, "Expand Cell Input")),
347
347
  keybinding: {
348
348
  when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_INPUT_COLLAPSED)),
349
349
  primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyC),
@@ -367,7 +367,7 @@ registerAction2(class CollapseCellOutputAction extends NotebookMultiCellAction {
367
367
  constructor() {
368
368
  super({
369
369
  id: COLLAPSE_CELL_OUTPUT_COMMAND_ID,
370
- title: ( localize2(7552, "Collapse Cell Output")),
370
+ title: ( localize2(7829, "Collapse Cell Output")),
371
371
  keybinding: {
372
372
  when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( NOTEBOOK_CELL_OUTPUT_COLLAPSED.toNegated()), ( InputFocusedContext.toNegated()), NOTEBOOK_CELL_HAS_OUTPUTS)),
373
373
  primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyT),
@@ -388,7 +388,7 @@ registerAction2(class ExpandCellOuputAction extends NotebookMultiCellAction {
388
388
  constructor() {
389
389
  super({
390
390
  id: EXPAND_CELL_OUTPUT_COMMAND_ID,
391
- title: ( localize2(7553, "Expand Cell Output")),
391
+ title: ( localize2(7830, "Expand Cell Output")),
392
392
  keybinding: {
393
393
  when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED)),
394
394
  primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyT),
@@ -410,9 +410,9 @@ registerAction2(class extends NotebookMultiCellAction {
410
410
  super({
411
411
  id: TOGGLE_CELL_OUTPUTS_COMMAND_ID,
412
412
  precondition: NOTEBOOK_CELL_LIST_FOCUSED,
413
- title: ( localize2(7554, "Toggle Outputs")),
413
+ title: ( localize2(7831, "Toggle Outputs")),
414
414
  metadata: {
415
- description: ( localize(7554, "Toggle Outputs")),
415
+ description: ( localize(7831, "Toggle Outputs")),
416
416
  args: cellExecutionArgs
417
417
  }
418
418
  });
@@ -437,7 +437,7 @@ registerAction2(class CollapseAllCellInputsAction extends NotebookMultiCellActio
437
437
  constructor() {
438
438
  super({
439
439
  id: COLLAPSE_ALL_CELL_INPUTS_COMMAND_ID,
440
- title: ( localize2(7555, "Collapse All Cell Inputs")),
440
+ title: ( localize2(7832, "Collapse All Cell Inputs")),
441
441
  f1: true,
442
442
  });
443
443
  }
@@ -449,7 +449,7 @@ registerAction2(class ExpandAllCellInputsAction extends NotebookMultiCellAction
449
449
  constructor() {
450
450
  super({
451
451
  id: EXPAND_ALL_CELL_INPUTS_COMMAND_ID,
452
- title: ( localize2(7556, "Expand All Cell Inputs")),
452
+ title: ( localize2(7833, "Expand All Cell Inputs")),
453
453
  f1: true
454
454
  });
455
455
  }
@@ -461,7 +461,7 @@ registerAction2(class CollapseAllCellOutputsAction extends NotebookMultiCellActi
461
461
  constructor() {
462
462
  super({
463
463
  id: COLLAPSE_ALL_CELL_OUTPUTS_COMMAND_ID,
464
- title: ( localize2(7557, "Collapse All Cell Outputs")),
464
+ title: ( localize2(7834, "Collapse All Cell Outputs")),
465
465
  f1: true,
466
466
  });
467
467
  }
@@ -473,7 +473,7 @@ registerAction2(class ExpandAllCellOutputsAction extends NotebookMultiCellAction
473
473
  constructor() {
474
474
  super({
475
475
  id: EXPAND_ALL_CELL_OUTPUTS_COMMAND_ID,
476
- title: ( localize2(7558, "Expand All Cell Outputs")),
476
+ title: ( localize2(7835, "Expand All Cell Outputs")),
477
477
  f1: true
478
478
  });
479
479
  }
@@ -485,7 +485,7 @@ registerAction2(class ToggleCellOutputScrolling extends NotebookMultiCellAction
485
485
  constructor() {
486
486
  super({
487
487
  id: TOGGLE_CELL_OUTPUT_SCROLLING,
488
- title: ( localize2(7559, "Toggle Scroll Cell Output")),
488
+ title: ( localize2(7836, "Toggle Scroll Cell Output")),
489
489
  keybinding: {
490
490
  when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated()), NOTEBOOK_CELL_HAS_OUTPUTS)),
491
491
  primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyY),
@@ -15,6 +15,7 @@ export declare class CellDiagnostics extends Disposable implements INotebookEdit
15
15
  private listening;
16
16
  private diagnosticsByHandle;
17
17
  constructor(notebookEditor: INotebookEditor, notebookExecutionStateService: INotebookExecutionStateService, markerService: IMarkerService, chatAgentService: IChatAgentService, configurationService: IConfigurationService);
18
+ private hasNotebookAgent;
18
19
  private updateEnabled;
19
20
  private handleChangeExecutionState;
20
21
  private clearAll;
@@ -7,10 +7,10 @@ import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vsc
7
7
  import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
8
8
  import { NotebookSetting, CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
9
9
  import { registerNotebookContribution } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
10
- import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
11
10
  import { CodeCellViewModel } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
12
11
  import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
13
12
  import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
13
+ import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
14
14
 
15
15
  var CellDiagnostics_1;
16
16
  let CellDiagnostics = class CellDiagnostics extends Disposable {
@@ -34,13 +34,17 @@ let CellDiagnostics = class CellDiagnostics extends Disposable {
34
34
  }
35
35
  }));
36
36
  }
37
+ hasNotebookAgent() {
38
+ const agents = this.chatAgentService.getAgents();
39
+ return !!agents.find(agent => agent.locations.includes(ChatAgentLocation.Notebook));
40
+ }
37
41
  updateEnabled() {
38
42
  const settingEnabled = this.configurationService.getValue(NotebookSetting.cellFailureDiagnostics);
39
- if (this.enabled && (!settingEnabled || Iterable.isEmpty(this.chatAgentService.getAgents()))) {
43
+ if (this.enabled && (!settingEnabled || !this.hasNotebookAgent())) {
40
44
  this.enabled = false;
41
45
  this.clearAll();
42
46
  }
43
- else if (!this.enabled && settingEnabled && !Iterable.isEmpty(this.chatAgentService.getAgents())) {
47
+ else if (!this.enabled && settingEnabled && this.hasNotebookAgent()) {
44
48
  this.enabled = true;
45
49
  if (!this.listening) {
46
50
  this.listening = true;
@@ -9,7 +9,7 @@ import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/
9
9
  import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
10
10
  import { NotebookCellAction, findTargetCellEditor } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
11
11
  import { CodeCellViewModel } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
12
- import { NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, NOTEBOOK_CELL_EDITOR_FOCUSED } from '@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-9bee-b28824214eac-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
12
+ import { NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, NOTEBOOK_CELL_EDITOR_FOCUSED } from '@codingame/monaco-vscode-a1eb43d5-da63-5f76-8ad4-acf0d6c3b749-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
13
13
  import { InlineChatController } from '@codingame/monaco-vscode-29bc1406-2925-5b8f-b25e-d04a7772d896-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
14
14
  import { showChatView } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chat';
15
15
  import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
@@ -21,7 +21,7 @@ registerAction2(class extends NotebookCellAction {
21
21
  constructor() {
22
22
  super({
23
23
  id: OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID,
24
- title: ( localize2(7560, "Show Cell Failure Actions")),
24
+ title: ( localize2(7837, "Show Cell Failure Actions")),
25
25
  precondition: ( ContextKeyExpr.and(NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, ( NOTEBOOK_CELL_EDITOR_FOCUSED.toNegated()))),
26
26
  f1: true,
27
27
  keybinding: {
@@ -45,7 +45,7 @@ registerAction2(class extends NotebookCellAction {
45
45
  const editor = findTargetCellEditor(context, context.cell);
46
46
  if (editor) {
47
47
  const controller = CodeActionController.get(editor);
48
- controller?.manualTriggerAtCurrentPosition(( localize(7561, "No code actions available")), CodeActionTriggerSource.Default, { include: CodeActionKind.QuickFix });
48
+ controller?.manualTriggerAtCurrentPosition(( localize(7838, "No code actions available")), CodeActionTriggerSource.Default, { include: CodeActionKind.QuickFix });
49
49
  }
50
50
  }
51
51
  }
@@ -55,7 +55,7 @@ registerAction2(class extends NotebookCellAction {
55
55
  constructor() {
56
56
  super({
57
57
  id: FIX_CELL_ERROR_COMMAND_ID,
58
- title: ( localize2(7562, "Fix Cell Error")),
58
+ title: ( localize2(7839, "Fix Cell Error")),
59
59
  precondition: ( ContextKeyExpr.and(NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, ( NOTEBOOK_CELL_EDITOR_FOCUSED.toNegated()))),
60
60
  f1: true
61
61
  });
@@ -87,7 +87,7 @@ registerAction2(class extends NotebookCellAction {
87
87
  constructor() {
88
88
  super({
89
89
  id: EXPLAIN_CELL_ERROR_COMMAND_ID,
90
- title: ( localize2(7563, "Explain Cell Error")),
90
+ title: ( localize2(7840, "Explain Cell Error")),
91
91
  precondition: ( ContextKeyExpr.and(NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, ( NOTEBOOK_CELL_EDITOR_FOCUSED.toNegated()))),
92
92
  f1: true
93
93
  });
@@ -11,7 +11,7 @@ import { registerNotebookContribution } from '@codingame/monaco-vscode-9a6d8b6c-
11
11
  import { CodeCellViewModel } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
12
12
  import { CellStatusbarAlignment } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
13
13
  import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
14
- import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
14
+ import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
15
15
  import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/autorun';
16
16
 
17
17
  let DiagnosticCellStatusBarContrib = class DiagnosticCellStatusBarContrib extends Disposable {
@@ -37,11 +37,15 @@ let DiagnosticCellStatusBarItem = class DiagnosticCellStatusBarItem extends Disp
37
37
  this._currentItemIds = [];
38
38
  this._register(autorun((reader) => this.updateSparkleItem(reader.readObservable(cell.executionErrorDiagnostic))));
39
39
  }
40
+ hasNotebookAgent() {
41
+ const agents = this.chatAgentService.getAgents();
42
+ return !!agents.find(agent => agent.locations.includes(ChatAgentLocation.Notebook));
43
+ }
40
44
  async updateSparkleItem(error) {
41
45
  let item;
42
- if (error?.location && !Iterable.isEmpty(this.chatAgentService.getAgents())) {
46
+ if (error?.location && this.hasNotebookAgent()) {
43
47
  const keybinding = this.keybindingService.lookupKeybinding(OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID)?.getLabel();
44
- const tooltip = ( localize(7564, "Quick Actions {0}", `(${keybinding})`));
48
+ const tooltip = ( localize(7841, "Quick Actions {0}", `(${keybinding})`));
45
49
  item = {
46
50
  text: `$(sparkle)`,
47
51
  tooltip,
@@ -41,7 +41,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
41
41
  }
42
42
  else {
43
43
  const searchTooltip = ( localize(
44
- 7572,
44
+ 7849,
45
45
  "Unknown cell language. Click to search for '{0}' extensions",
46
46
  cell.language
47
47
  ));
@@ -57,7 +57,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
57
57
  statusBarItems.push({
58
58
  text: displayLanguage,
59
59
  command: CHANGE_CELL_LANGUAGE,
60
- tooltip: ( localize(7573, "Select Cell Language Mode")),
60
+ tooltip: ( localize(7850, "Select Cell Language Mode")),
61
61
  alignment: CellStatusbarAlignment.Right,
62
62
  priority: -Number.MAX_SAFE_INTEGER
63
63
  });
@@ -121,7 +121,7 @@ let CellStatusBarLanguageDetectionProvider = class CellStatusBarLanguageDetectio
121
121
  const items = [];
122
122
  if (cached.guess && currentLanguageId !== cached.guess) {
123
123
  const detectedName = this._languageService.getLanguageName(cached.guess) || cached.guess;
124
- let tooltip = ( localize(7574, "Accept Detected Language: {0}", detectedName));
124
+ let tooltip = ( localize(7851, "Accept Detected Language: {0}", detectedName));
125
125
  const keybinding = this._keybindingService.lookupKeybinding(DETECT_CELL_LANGUAGE);
126
126
  const label = keybinding?.getLabel();
127
127
  if (label) {
@@ -4,7 +4,7 @@ import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls'
4
4
  import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
5
5
  import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
6
6
  import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
7
- import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_OUTPUT_FOCUSED } from '@codingame/monaco-vscode-52bb4d5b-ba1a-57fd-9bee-b28824214eac-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
7
+ import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_OUTPUT_FOCUSED } from '@codingame/monaco-vscode-a1eb43d5-da63-5f76-8ad4-acf0d6c3b749-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
8
8
  import { getNotebookEditorFromEditorPane, expandCellRangesWithHiddenCells, cellRangeToViewCells } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
9
9
  import { CopyAction, PasteAction, CutAction } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/clipboard/browser/clipboard';
10
10
  import { IClipboardService } from '@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service';
@@ -350,7 +350,7 @@ registerAction2(class extends NotebookCellAction {
350
350
  constructor() {
351
351
  super({
352
352
  id: COPY_CELL_COMMAND_ID,
353
- title: ( localize(7576, "Copy Cell")),
353
+ title: ( localize(7852, "Copy Cell")),
354
354
  menu: {
355
355
  id: MenuId.NotebookCellTitle,
356
356
  when: NOTEBOOK_EDITOR_FOCUSED,
@@ -373,7 +373,7 @@ registerAction2(class extends NotebookCellAction {
373
373
  constructor() {
374
374
  super({
375
375
  id: CUT_CELL_COMMAND_ID,
376
- title: ( localize(7577, "Cut Cell")),
376
+ title: ( localize(7853, "Cut Cell")),
377
377
  menu: {
378
378
  id: MenuId.NotebookCellTitle,
379
379
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE)),
@@ -396,7 +396,7 @@ registerAction2(class extends NotebookAction {
396
396
  constructor() {
397
397
  super({
398
398
  id: PASTE_CELL_COMMAND_ID,
399
- title: ( localize(7578, "Paste Cell")),
399
+ title: ( localize(7854, "Paste Cell")),
400
400
  menu: {
401
401
  id: MenuId.NotebookCellTitle,
402
402
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE)),
@@ -428,7 +428,7 @@ registerAction2(class extends NotebookCellAction {
428
428
  constructor() {
429
429
  super({
430
430
  id: PASTE_CELL_ABOVE_COMMAND_ID,
431
- title: ( localize(7579, "Paste Cell Above")),
431
+ title: ( localize(7855, "Paste Cell Above")),
432
432
  keybinding: {
433
433
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
434
434
  primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyV,
@@ -472,7 +472,7 @@ registerAction2(class extends Action2 {
472
472
  constructor() {
473
473
  super({
474
474
  id: 'workbench.action.toggleNotebookClipboardLog',
475
- title: ( localize2(7580, 'Toggle Notebook Clipboard Troubleshooting')),
475
+ title: ( localize2(7856, 'Toggle Notebook Clipboard Troubleshooting')),
476
476
  category: Categories.Developer,
477
477
  f1: true
478
478
  });
@@ -489,7 +489,7 @@ registerAction2(class extends NotebookCellAction {
489
489
  constructor() {
490
490
  super({
491
491
  id: 'notebook.cell.output.selectAll',
492
- title: ( localize(7581, "Select All")),
492
+ title: ( localize(7857, "Select All")),
493
493
  keybinding: {
494
494
  primary: KeyMod.CtrlCmd | KeyCode.KeyA,
495
495
  when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED)),