@codingame/monaco-vscode-notebook-service-override 13.1.7 → 14.0.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.
- package/index.js +3 -3
- package/package.json +29 -28
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +25 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookCellDecorators.d.ts +60 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookCellDecorators.js +536 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatActionsOverlay.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatActionsOverlay.js +310 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditController.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditController.js +182 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.js +42 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.js +72 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.js +425 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +0 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +310 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +35 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +32 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +29 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +92 -74
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +16 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +5 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.d.ts +9 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +5 -0
package/index.js
CHANGED
|
@@ -32,10 +32,10 @@ import { INotebookSynchronizerService } from '@codingame/monaco-vscode-api/vscod
|
|
|
32
32
|
import { NotebookSynchronizerService } from './vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js';
|
|
33
33
|
import { INotebookOriginalCellModelFactory } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.service';
|
|
34
34
|
import { INotebookOriginalModelReferenceFactory } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.service';
|
|
35
|
-
import { NotebookOriginalModelReferenceFactory } from '
|
|
35
|
+
import { NotebookOriginalModelReferenceFactory } from './vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalModelRefFactory.js';
|
|
36
36
|
import { INotebookModelSynchronizerFactory } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.service';
|
|
37
|
-
import { NotebookModelSynchronizerFactory } from '
|
|
38
|
-
import { OriginalNotebookCellModelFactory } from '
|
|
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';
|
|
39
39
|
import './vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js';
|
|
40
40
|
|
|
41
41
|
function getServiceOverride() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notebook-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - notebook service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,33 +15,34 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "
|
|
19
|
-
"@codingame/monaco-vscode-0cd5242b-7b61-5f66-ac25-ffa40baf8e8f-common": "
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-
|
|
30
|
-
"@codingame/monaco-vscode-
|
|
31
|
-
"@codingame/monaco-vscode-
|
|
32
|
-
"@codingame/monaco-vscode-
|
|
33
|
-
"@codingame/monaco-vscode-
|
|
34
|
-
"@codingame/monaco-vscode-
|
|
35
|
-
"@codingame/monaco-vscode-
|
|
36
|
-
"@codingame/monaco-vscode-
|
|
37
|
-
"@codingame/monaco-vscode-
|
|
38
|
-
"@codingame/monaco-vscode-
|
|
39
|
-
"@codingame/monaco-vscode-
|
|
40
|
-
"@codingame/monaco-vscode-
|
|
41
|
-
"@codingame/monaco-vscode-
|
|
42
|
-
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "
|
|
43
|
-
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "
|
|
44
|
-
"@codingame/monaco-vscode-
|
|
18
|
+
"@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common": "14.0.1",
|
|
19
|
+
"@codingame/monaco-vscode-0cd5242b-7b61-5f66-ac25-ffa40baf8e8f-common": "14.0.1",
|
|
20
|
+
"@codingame/monaco-vscode-168b98e5-dc20-5807-b1f9-798f1f92b37f-common": "14.0.1",
|
|
21
|
+
"@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common": "14.0.1",
|
|
22
|
+
"@codingame/monaco-vscode-3a00040f-b81b-50bc-88da-35f611c0bd1e-common": "14.0.1",
|
|
23
|
+
"@codingame/monaco-vscode-407531d3-fdae-5387-8c41-49ba0e9574b5-common": "14.0.1",
|
|
24
|
+
"@codingame/monaco-vscode-4e719823-8b6e-554d-b01a-5670b53fbb19-common": "14.0.1",
|
|
25
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "14.0.1",
|
|
26
|
+
"@codingame/monaco-vscode-695440c8-a687-5594-b476-bbc7b36bafe9-common": "14.0.1",
|
|
27
|
+
"@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common": "14.0.1",
|
|
28
|
+
"@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common": "14.0.1",
|
|
29
|
+
"@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "14.0.1",
|
|
30
|
+
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "14.0.1",
|
|
31
|
+
"@codingame/monaco-vscode-91789cdf-e3cb-5a04-aaeb-6f7df7d3d231-common": "14.0.1",
|
|
32
|
+
"@codingame/monaco-vscode-99f24462-c56d-5407-83fb-2ea9dd33cc8c-common": "14.0.1",
|
|
33
|
+
"@codingame/monaco-vscode-9e30237f-37af-5bbd-8bc1-5c4f2c0714b3-common": "14.0.1",
|
|
34
|
+
"@codingame/monaco-vscode-9ee79c1a-3f03-568b-8eac-b02513a98b68-common": "14.0.1",
|
|
35
|
+
"@codingame/monaco-vscode-af5ccfda-af82-504b-b365-92b4e654e5c5-common": "14.0.1",
|
|
36
|
+
"@codingame/monaco-vscode-api": "14.0.1",
|
|
37
|
+
"@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common": "14.0.1",
|
|
38
|
+
"@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "14.0.1",
|
|
39
|
+
"@codingame/monaco-vscode-ce8c4b18-4e75-55dd-9656-517347af9de7-common": "14.0.1",
|
|
40
|
+
"@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common": "14.0.1",
|
|
41
|
+
"@codingame/monaco-vscode-d4a98668-f793-5361-a9cf-1e6ae6d62ce3-common": "14.0.1",
|
|
42
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "14.0.1",
|
|
43
|
+
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "14.0.1",
|
|
44
|
+
"@codingame/monaco-vscode-ecf3436d-6064-5fbd-a760-37a211ce79c7-common": "14.0.1",
|
|
45
|
+
"@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common": "14.0.1",
|
|
45
46
|
"marked": "14.0.0"
|
|
46
47
|
},
|
|
47
48
|
"main": "index.js",
|
|
@@ -196,8 +196,8 @@ class EmptyTextEditorHintContentWidget {
|
|
|
196
196
|
getActions: () => {
|
|
197
197
|
return [{
|
|
198
198
|
id: 'workench.action.disableEmptyEditorHint',
|
|
199
|
-
label: ( localize(
|
|
200
|
-
tooltip: ( localize(
|
|
199
|
+
label: ( localize(4818, "Disable Empty Editor Hint")),
|
|
200
|
+
tooltip: ( localize(4818, "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
|
-
|
|
238
|
+
4819,
|
|
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(
|
|
269
|
+
const typeToDismiss = ( localize(4820, '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
|
-
|
|
277
|
+
4821,
|
|
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
|
-
|
|
337
|
+
4822,
|
|
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
|
-
|
|
348
|
+
4823,
|
|
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
|
-
|
|
369
|
+
4824,
|
|
370
370
|
' Toggle {0} in settings to disable this hint.',
|
|
371
371
|
AccessibilityVerbositySettingId.EmptyEditorHint
|
|
372
372
|
)));
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js
CHANGED
|
@@ -7,11 +7,11 @@ import { registerAction2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
7
7
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
8
8
|
import { InputFocusedContext, InputFocusedContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
9
9
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
10
|
-
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-
|
|
10
|
+
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-af5ccfda-af82-504b-b365-92b4e654e5c5-common/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
11
11
|
import { moveCellRange, copyCellRange, computeCellLinesContents, joinCellsWithSurrounds, joinSelectedCells, changeCellToKind } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
12
12
|
import { NotebookCellAction, CellOverflowToolbarGroups, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, NotebookMultiCellAction, parseMultiCellExecutionArgs, cellExecutionArgs } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
13
|
-
import { CellFocusMode, EXPAND_CELL_INPUT_COMMAND_ID, EXPAND_CELL_OUTPUT_COMMAND_ID } from '@codingame/monaco-vscode-
|
|
14
|
-
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-
|
|
13
|
+
import { CellFocusMode, EXPAND_CELL_INPUT_COMMAND_ID, EXPAND_CELL_OUTPUT_COMMAND_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
14
|
+
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-771c2e6d-0284-5ac1-be73-7176085eedc5-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
15
15
|
import { moveUpIcon, moveDownIcon, splitCellIcon } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
16
16
|
import { CellEditType, CellKind, NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
17
17
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
@@ -26,7 +26,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
26
26
|
constructor() {
|
|
27
27
|
super({
|
|
28
28
|
id: MOVE_CELL_UP_COMMAND_ID,
|
|
29
|
-
title: ( localize2(
|
|
29
|
+
title: ( localize2(7440, "Move Cell Up")),
|
|
30
30
|
icon: moveUpIcon,
|
|
31
31
|
keybinding: {
|
|
32
32
|
primary: KeyMod.Alt | KeyCode.UpArrow,
|
|
@@ -49,7 +49,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
49
49
|
constructor() {
|
|
50
50
|
super({
|
|
51
51
|
id: MOVE_CELL_DOWN_COMMAND_ID,
|
|
52
|
-
title: ( localize2(
|
|
52
|
+
title: ( localize2(7441, "Move Cell Down")),
|
|
53
53
|
icon: moveDownIcon,
|
|
54
54
|
keybinding: {
|
|
55
55
|
primary: KeyMod.Alt | KeyCode.DownArrow,
|
|
@@ -72,7 +72,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
72
72
|
constructor() {
|
|
73
73
|
super({
|
|
74
74
|
id: COPY_CELL_UP_COMMAND_ID,
|
|
75
|
-
title: ( localize2(
|
|
75
|
+
title: ( localize2(7442, "Copy Cell Up")),
|
|
76
76
|
keybinding: {
|
|
77
77
|
primary: KeyMod.Alt | KeyMod.Shift | KeyCode.UpArrow,
|
|
78
78
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( InputFocusedContext.toNegated()))),
|
|
@@ -88,7 +88,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
88
88
|
constructor() {
|
|
89
89
|
super({
|
|
90
90
|
id: COPY_CELL_DOWN_COMMAND_ID,
|
|
91
|
-
title: ( localize2(
|
|
91
|
+
title: ( localize2(7443, "Copy Cell Down")),
|
|
92
92
|
keybinding: {
|
|
93
93
|
primary: KeyMod.Alt | KeyMod.Shift | KeyCode.DownArrow,
|
|
94
94
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( InputFocusedContext.toNegated()))),
|
|
@@ -114,7 +114,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
114
114
|
constructor() {
|
|
115
115
|
super({
|
|
116
116
|
id: SPLIT_CELL_COMMAND_ID,
|
|
117
|
-
title: ( localize2(
|
|
117
|
+
title: ( localize2(7444, "Split Cell")),
|
|
118
118
|
menu: {
|
|
119
119
|
id: MenuId.NotebookCellTitle,
|
|
120
120
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, ( NOTEBOOK_CELL_INPUT_COLLAPSED.toNegated()))),
|
|
@@ -172,6 +172,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
172
172
|
})))
|
|
173
173
|
}))
|
|
174
174
|
], { quotableLabel: 'Split Notebook Cell' });
|
|
175
|
+
context.notebookEditor.cellAt(index + 1)?.updateEditState(cell.getEditState(), 'splitCell');
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
178
|
}
|
|
@@ -180,7 +181,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
180
181
|
constructor() {
|
|
181
182
|
super({
|
|
182
183
|
id: JOIN_CELL_ABOVE_COMMAND_ID,
|
|
183
|
-
title: ( localize2(
|
|
184
|
+
title: ( localize2(7445, "Join With Previous Cell")),
|
|
184
185
|
keybinding: {
|
|
185
186
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
186
187
|
primary: KeyMod.WinCtrl | KeyMod.Alt | KeyMod.Shift | KeyCode.KeyJ,
|
|
@@ -203,7 +204,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
203
204
|
constructor() {
|
|
204
205
|
super({
|
|
205
206
|
id: JOIN_CELL_BELOW_COMMAND_ID,
|
|
206
|
-
title: ( localize2(
|
|
207
|
+
title: ( localize2(7446, "Join With Next Cell")),
|
|
207
208
|
keybinding: {
|
|
208
209
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
209
210
|
primary: KeyMod.WinCtrl | KeyMod.Alt | KeyCode.KeyJ,
|
|
@@ -226,7 +227,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
226
227
|
constructor() {
|
|
227
228
|
super({
|
|
228
229
|
id: JOIN_SELECTED_CELLS_COMMAND_ID,
|
|
229
|
-
title: ( localize2(
|
|
230
|
+
title: ( localize2(7447, "Join Selected Cells")),
|
|
230
231
|
menu: {
|
|
231
232
|
id: MenuId.NotebookCellTitle,
|
|
232
233
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE)),
|
|
@@ -247,7 +248,7 @@ registerAction2(class ChangeCellToCodeAction extends NotebookMultiCellAction {
|
|
|
247
248
|
constructor() {
|
|
248
249
|
super({
|
|
249
250
|
id: CHANGE_CELL_TO_CODE_COMMAND_ID,
|
|
250
|
-
title: ( localize2(
|
|
251
|
+
title: ( localize2(7448, "Change Cell to Code")),
|
|
251
252
|
keybinding: {
|
|
252
253
|
when: ( ContextKeyExpr.and(
|
|
253
254
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -278,7 +279,7 @@ registerAction2(class ChangeCellToMarkdownAction extends NotebookMultiCellAction
|
|
|
278
279
|
constructor() {
|
|
279
280
|
super({
|
|
280
281
|
id: CHANGE_CELL_TO_MARKDOWN_COMMAND_ID,
|
|
281
|
-
title: ( localize2(
|
|
282
|
+
title: ( localize2(7449, "Change Cell to Markdown")),
|
|
282
283
|
keybinding: {
|
|
283
284
|
when: ( ContextKeyExpr.and(
|
|
284
285
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -317,7 +318,7 @@ registerAction2(class CollapseCellInputAction extends NotebookMultiCellAction {
|
|
|
317
318
|
constructor() {
|
|
318
319
|
super({
|
|
319
320
|
id: COLLAPSE_CELL_INPUT_COMMAND_ID,
|
|
320
|
-
title: ( localize2(
|
|
321
|
+
title: ( localize2(7450, "Collapse Cell Input")),
|
|
321
322
|
keybinding: {
|
|
322
323
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( NOTEBOOK_CELL_INPUT_COLLAPSED.toNegated()), ( InputFocusedContext.toNegated()))),
|
|
323
324
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyC),
|
|
@@ -341,7 +342,7 @@ registerAction2(class ExpandCellInputAction extends NotebookMultiCellAction {
|
|
|
341
342
|
constructor() {
|
|
342
343
|
super({
|
|
343
344
|
id: EXPAND_CELL_INPUT_COMMAND_ID,
|
|
344
|
-
title: ( localize2(
|
|
345
|
+
title: ( localize2(7451, "Expand Cell Input")),
|
|
345
346
|
keybinding: {
|
|
346
347
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_INPUT_COLLAPSED)),
|
|
347
348
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyMod.CtrlCmd | KeyCode.KeyC),
|
|
@@ -365,7 +366,7 @@ registerAction2(class CollapseCellOutputAction extends NotebookMultiCellAction {
|
|
|
365
366
|
constructor() {
|
|
366
367
|
super({
|
|
367
368
|
id: COLLAPSE_CELL_OUTPUT_COMMAND_ID,
|
|
368
|
-
title: ( localize2(
|
|
369
|
+
title: ( localize2(7452, "Collapse Cell Output")),
|
|
369
370
|
keybinding: {
|
|
370
371
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( NOTEBOOK_CELL_OUTPUT_COLLAPSED.toNegated()), ( InputFocusedContext.toNegated()), NOTEBOOK_CELL_HAS_OUTPUTS)),
|
|
371
372
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyT),
|
|
@@ -386,7 +387,7 @@ registerAction2(class ExpandCellOuputAction extends NotebookMultiCellAction {
|
|
|
386
387
|
constructor() {
|
|
387
388
|
super({
|
|
388
389
|
id: EXPAND_CELL_OUTPUT_COMMAND_ID,
|
|
389
|
-
title: ( localize2(
|
|
390
|
+
title: ( localize2(7453, "Expand Cell Output")),
|
|
390
391
|
keybinding: {
|
|
391
392
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED)),
|
|
392
393
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyT),
|
|
@@ -408,9 +409,9 @@ registerAction2(class extends NotebookMultiCellAction {
|
|
|
408
409
|
super({
|
|
409
410
|
id: TOGGLE_CELL_OUTPUTS_COMMAND_ID,
|
|
410
411
|
precondition: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
411
|
-
title: ( localize2(
|
|
412
|
+
title: ( localize2(7454, "Toggle Outputs")),
|
|
412
413
|
metadata: {
|
|
413
|
-
description: ( localize(
|
|
414
|
+
description: ( localize(7454, "Toggle Outputs")),
|
|
414
415
|
args: cellExecutionArgs
|
|
415
416
|
}
|
|
416
417
|
});
|
|
@@ -435,7 +436,7 @@ registerAction2(class CollapseAllCellInputsAction extends NotebookMultiCellActio
|
|
|
435
436
|
constructor() {
|
|
436
437
|
super({
|
|
437
438
|
id: COLLAPSE_ALL_CELL_INPUTS_COMMAND_ID,
|
|
438
|
-
title: ( localize2(
|
|
439
|
+
title: ( localize2(7455, "Collapse All Cell Inputs")),
|
|
439
440
|
f1: true,
|
|
440
441
|
});
|
|
441
442
|
}
|
|
@@ -447,7 +448,7 @@ registerAction2(class ExpandAllCellInputsAction extends NotebookMultiCellAction
|
|
|
447
448
|
constructor() {
|
|
448
449
|
super({
|
|
449
450
|
id: EXPAND_ALL_CELL_INPUTS_COMMAND_ID,
|
|
450
|
-
title: ( localize2(
|
|
451
|
+
title: ( localize2(7456, "Expand All Cell Inputs")),
|
|
451
452
|
f1: true
|
|
452
453
|
});
|
|
453
454
|
}
|
|
@@ -459,7 +460,7 @@ registerAction2(class CollapseAllCellOutputsAction extends NotebookMultiCellActi
|
|
|
459
460
|
constructor() {
|
|
460
461
|
super({
|
|
461
462
|
id: COLLAPSE_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
462
|
-
title: ( localize2(
|
|
463
|
+
title: ( localize2(7457, "Collapse All Cell Outputs")),
|
|
463
464
|
f1: true,
|
|
464
465
|
});
|
|
465
466
|
}
|
|
@@ -471,7 +472,7 @@ registerAction2(class ExpandAllCellOutputsAction extends NotebookMultiCellAction
|
|
|
471
472
|
constructor() {
|
|
472
473
|
super({
|
|
473
474
|
id: EXPAND_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
474
|
-
title: ( localize2(
|
|
475
|
+
title: ( localize2(7458, "Expand All Cell Outputs")),
|
|
475
476
|
f1: true
|
|
476
477
|
});
|
|
477
478
|
}
|
|
@@ -483,7 +484,7 @@ registerAction2(class ToggleCellOutputScrolling extends NotebookMultiCellAction
|
|
|
483
484
|
constructor() {
|
|
484
485
|
super({
|
|
485
486
|
id: TOGGLE_CELL_OUTPUT_SCROLLING,
|
|
486
|
-
title: ( localize2(
|
|
487
|
+
title: ( localize2(7459, "Toggle Scroll Cell Output")),
|
|
487
488
|
keybinding: {
|
|
488
489
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated()), NOTEBOOK_CELL_HAS_OUTPUTS)),
|
|
489
490
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyY),
|
|
@@ -2,7 +2,7 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
2
2
|
import { IMarkerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers.service";
|
|
3
3
|
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
4
4
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
|
-
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-
|
|
5
|
+
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
6
6
|
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
|
|
7
7
|
export declare class CellDiagnostics extends Disposable implements INotebookEditorContribution {
|
|
8
8
|
private readonly notebookEditor;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { IMarkerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers.service';
|
|
5
|
-
import { NotebookExecutionType } from '@codingame/monaco-vscode-
|
|
5
|
+
import { NotebookExecutionType } from '@codingame/monaco-vscode-af5ccfda-af82-504b-b365-92b4e654e5c5-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
6
6
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
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
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
9
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
10
10
|
import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
|
|
11
11
|
import { CodeCellViewModel } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
12
12
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
@@ -9,9 +9,9 @@ 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-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
11
11
|
import { CodeCellViewModel } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-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-
|
|
12
|
+
import { NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, NOTEBOOK_CELL_EDITOR_FOCUSED } from '@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
13
13
|
import { InlineChatController } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
14
|
-
import { showChatView } from '@codingame/monaco-vscode-
|
|
14
|
+
import { showChatView } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
15
15
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
16
16
|
|
|
17
17
|
const OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID = 'notebook.cell.openFailureActions';
|
|
@@ -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(
|
|
24
|
+
title: ( localize2(7460, "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(
|
|
48
|
+
controller?.manualTriggerAtCurrentPosition(( localize(7461, "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(
|
|
58
|
+
title: ( localize2(7462, "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(
|
|
90
|
+
title: ( localize2(7463, "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
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
-
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-
|
|
3
|
+
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
4
|
export declare class DiagnosticCellStatusBarContrib extends Disposable implements INotebookEditorContribution {
|
|
5
5
|
static id: string;
|
|
6
6
|
constructor(notebookEditor: INotebookEditor, instantiationService: IInstantiationService);
|
|
@@ -12,7 +12,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
12
12
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
13
13
|
import { OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID } from './cellDiagnosticsActions.js';
|
|
14
14
|
import { NotebookStatusBarController } from '@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController';
|
|
15
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
15
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
16
16
|
import { CodeCellViewModel } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
17
17
|
import { CellStatusbarAlignment } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
18
18
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
@@ -45,7 +45,7 @@ let DiagnosticCellStatusBarItem = class DiagnosticCellStatusBarItem extends Disp
|
|
|
45
45
|
let item;
|
|
46
46
|
if (error?.location && !Iterable.isEmpty(this.chatAgentService.getAgents())) {
|
|
47
47
|
const keybinding = this.keybindingService.lookupKeybinding(OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID)?.getLabel();
|
|
48
|
-
const tooltip = ( localize(
|
|
48
|
+
const tooltip = ( localize(7464, "Quick Actions {0}", `(${keybinding})`));
|
|
49
49
|
item = {
|
|
50
50
|
text: `$(sparkle)`,
|
|
51
51
|
tooltip,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-
|
|
2
|
+
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
3
3
|
import { INotebookCellStatusBarService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service";
|
|
4
4
|
export declare class ContributedStatusBarItemController extends Disposable implements INotebookEditorContribution {
|
|
5
5
|
private readonly _notebookEditor;
|
|
@@ -4,7 +4,7 @@ import { Throttler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/as
|
|
|
4
4
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
5
5
|
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import { NotebookVisibleCellObserver } from '@codingame/monaco-vscode-1ae7d696-d960-5ac6-97a3-9fe7c8c3a793-common/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver';
|
|
7
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
7
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
8
8
|
import { INotebookCellStatusBarService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service';
|
|
9
9
|
|
|
10
10
|
let ContributedStatusBarItemController = class ContributedStatusBarItemController extends Disposable {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js
CHANGED
|
@@ -9,7 +9,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
9
9
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
10
10
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
11
11
|
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
12
|
-
import { CHANGE_CELL_LANGUAGE, DETECT_CELL_LANGUAGE } from '@codingame/monaco-vscode-
|
|
12
|
+
import { CHANGE_CELL_LANGUAGE, DETECT_CELL_LANGUAGE } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
13
13
|
import { INotebookCellStatusBarService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service';
|
|
14
14
|
import { CellKind, CellStatusbarAlignment } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
15
15
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
@@ -41,7 +41,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
43
|
const searchTooltip = ( localize(
|
|
44
|
-
|
|
44
|
+
7472,
|
|
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(
|
|
60
|
+
tooltip: ( localize(7473, "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(
|
|
124
|
+
let tooltip = ( localize(7474, "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) {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Disposable, DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IChatEditingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService.service";
|
|
3
|
+
import { NotebookTextModel } from "../../../common/model/notebookTextModel.js";
|
|
4
|
+
import { INotebookEditor } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
5
|
+
import { CellDiffInfo } from "@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel";
|
|
6
|
+
import { ICodeEditor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorBrowser";
|
|
7
|
+
import { IEditorWorkerService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/editorWorker";
|
|
8
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
9
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
10
|
+
import { INotebookOriginalCellModelFactory } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookOriginalCellModelFactory.service";
|
|
11
|
+
export declare class NotebookCellDiffDecorator extends DisposableStore {
|
|
12
|
+
readonly modifiedCell: NotebookCellTextModel;
|
|
13
|
+
readonly originalCell: NotebookCellTextModel;
|
|
14
|
+
private readonly _chatEditingService;
|
|
15
|
+
private readonly _editorWorkerService;
|
|
16
|
+
private readonly originalCellModelFactory;
|
|
17
|
+
private _viewZones;
|
|
18
|
+
private readonly throttledDecorator;
|
|
19
|
+
private diffForPreviouslyAppliedDecorators?;
|
|
20
|
+
private readonly perEditorDisposables;
|
|
21
|
+
constructor(notebookEditor: INotebookEditor, modifiedCell: NotebookCellTextModel, originalCell: NotebookCellTextModel, _chatEditingService: IChatEditingService, _editorWorkerService: IEditorWorkerService, originalCellModelFactory: INotebookOriginalCellModelFactory);
|
|
22
|
+
update(editor: ICodeEditor): void;
|
|
23
|
+
private _updateImpl;
|
|
24
|
+
private _originalModel?;
|
|
25
|
+
private getOrCreateOriginalModel;
|
|
26
|
+
private _updateWithDiff;
|
|
27
|
+
}
|
|
28
|
+
export declare class NotebookInsertedCellDecorator extends Disposable {
|
|
29
|
+
private readonly notebookEditor;
|
|
30
|
+
private readonly decorators;
|
|
31
|
+
constructor(notebookEditor: INotebookEditor);
|
|
32
|
+
apply(diffInfo: CellDiffInfo[]): void;
|
|
33
|
+
clear(): void;
|
|
34
|
+
}
|
|
35
|
+
export interface INotebookDeletedCellDecorator {
|
|
36
|
+
getTop(deletedIndex: number): number | undefined;
|
|
37
|
+
}
|
|
38
|
+
export declare class NotebookDeletedCellDecorator extends Disposable implements INotebookDeletedCellDecorator {
|
|
39
|
+
private readonly _notebookEditor;
|
|
40
|
+
private readonly languageService;
|
|
41
|
+
private readonly zoneRemover;
|
|
42
|
+
private readonly createdViewZones;
|
|
43
|
+
private readonly deletedCellInfos;
|
|
44
|
+
constructor(_notebookEditor: INotebookEditor, languageService: ILanguageService);
|
|
45
|
+
getTop(deletedIndex: number): number | undefined;
|
|
46
|
+
apply(diffInfo: CellDiffInfo[], original: NotebookTextModel): void;
|
|
47
|
+
clear(): void;
|
|
48
|
+
private _createWidget;
|
|
49
|
+
private _createWidgetImpl;
|
|
50
|
+
}
|
|
51
|
+
export declare class NotebookDeletedCellWidget extends Disposable {
|
|
52
|
+
private readonly _notebookEditor;
|
|
53
|
+
private readonly code;
|
|
54
|
+
private readonly language;
|
|
55
|
+
readonly originalIndex: number;
|
|
56
|
+
private readonly languageService;
|
|
57
|
+
private readonly container;
|
|
58
|
+
constructor(_notebookEditor: INotebookEditor, code: string, language: string, container: HTMLElement, originalIndex: number, languageService: ILanguageService);
|
|
59
|
+
render(): Promise<number>;
|
|
60
|
+
}
|