@codingame/monaco-vscode-notebook-service-override 18.4.0 → 19.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.
- package/package.json +27 -29
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +26 -26
- 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/cellDiagnosticsActions.js +8 -8
- 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 +1 -1
- 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/statusBarProviders.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +16 -16
- 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 +1 -1
- 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 +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +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 +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +19 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +20 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +3 -3
- 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.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +14 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +10 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +13 -13
- 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.d.ts +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 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +31 -31
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +18 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +32 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +20 -20
- 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 +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +72 -72
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.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.d.ts +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 +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +24 -18
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +14 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +3 -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notebook-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - notebook service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,34 +15,32 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-3109a756-1f83-5d09-945b-9f0fcad928f0-common": "
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-4e719823-8b6e-554d-b01a-5670b53fbb19-common": "
|
|
25
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "
|
|
26
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
28
|
-
"@codingame/monaco-vscode-
|
|
29
|
-
"@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "
|
|
30
|
-
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "
|
|
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-bc8c28cd-7a80-54a9-af1a-e6b1e7a7f34a-common": "
|
|
38
|
-
"@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "
|
|
39
|
-
"@codingame/monaco-vscode-
|
|
40
|
-
"@codingame/monaco-vscode-
|
|
41
|
-
"@codingame/monaco-vscode-
|
|
42
|
-
"@codingame/monaco-vscode-
|
|
43
|
-
"@codingame/monaco-vscode-
|
|
44
|
-
"@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common": "18.4.0",
|
|
45
|
-
"@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common": "18.4.0",
|
|
18
|
+
"@codingame/monaco-vscode-0cd5242b-7b61-5f66-ac25-ffa40baf8e8f-common": "19.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "19.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-23aade48-f094-5c08-9555-97fc9cca96c9-common": "19.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common": "19.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-3109a756-1f83-5d09-945b-9f0fcad928f0-common": "19.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common": "19.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-4e719823-8b6e-554d-b01a-5670b53fbb19-common": "19.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "19.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "19.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common": "19.0.0",
|
|
28
|
+
"@codingame/monaco-vscode-86d65fc6-30f9-5dca-9501-e249de688591-common": "19.0.0",
|
|
29
|
+
"@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common": "19.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "19.0.0",
|
|
31
|
+
"@codingame/monaco-vscode-9911aec2-e4dd-5483-8369-9d695cc70d8a-common": "19.0.0",
|
|
32
|
+
"@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common": "19.0.0",
|
|
33
|
+
"@codingame/monaco-vscode-9ed6fe06-a052-57c2-a234-5d9b94d2e7e0-common": "19.0.0",
|
|
34
|
+
"@codingame/monaco-vscode-9ee79c1a-3f03-568b-8eac-b02513a98b68-common": "19.0.0",
|
|
35
|
+
"@codingame/monaco-vscode-api": "19.0.0",
|
|
36
|
+
"@codingame/monaco-vscode-b99aef83-0d60-5e8c-a62e-9908b6256f35-common": "19.0.0",
|
|
37
|
+
"@codingame/monaco-vscode-bc8c28cd-7a80-54a9-af1a-e6b1e7a7f34a-common": "19.0.0",
|
|
38
|
+
"@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common": "19.0.0",
|
|
39
|
+
"@codingame/monaco-vscode-ca445022-b812-53ca-a041-e46c7e0b13de-common": "19.0.0",
|
|
40
|
+
"@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common": "19.0.0",
|
|
41
|
+
"@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common": "19.0.0",
|
|
42
|
+
"@codingame/monaco-vscode-f338ac19-278c-5fe1-bec8-b588de04a788-common": "19.0.0",
|
|
43
|
+
"@codingame/monaco-vscode-fc28fb90-97de-5e74-89a9-4cfe44128227-common": "19.0.0",
|
|
46
44
|
"dompurify": "3.2.6",
|
|
47
45
|
"marked": "14.0.0"
|
|
48
46
|
},
|
|
@@ -166,8 +166,8 @@ let EmptyTextEditorHintContentWidget = class EmptyTextEditorHintContentWidget ex
|
|
|
166
166
|
getActions: () => {
|
|
167
167
|
return [{
|
|
168
168
|
id: 'workench.action.disableEmptyEditorHint',
|
|
169
|
-
label: ( localize(
|
|
170
|
-
tooltip: ( localize(
|
|
169
|
+
label: ( localize(5418, "Disable Empty Editor Hint")),
|
|
170
|
+
tooltip: ( localize(5418, "Disable Empty Editor Hint")),
|
|
171
171
|
enabled: true,
|
|
172
172
|
class: undefined,
|
|
173
173
|
run: () => {
|
|
@@ -241,13 +241,13 @@ let EmptyTextEditorHintContentWidget = class EmptyTextEditorHintContentWidget ex
|
|
|
241
241
|
const keybindingsLookup = hasInlineChatProvider ? [askSomethingCommandId, ChangeLanguageAction.ID, ApplyFileSnippetAction.Id] : [ChangeLanguageAction.ID, ApplyFileSnippetAction.Id, 'welcome.showNewFileEntries'];
|
|
242
242
|
const keybindingLabels = ( keybindingsLookup.map(id => this.keybindingService.lookupKeybinding(id)?.getLabel()));
|
|
243
243
|
const hintMsg = (hasInlineChatProvider ? ( localize(
|
|
244
|
-
|
|
244
|
+
5419,
|
|
245
245
|
'[[Open chat]] ({0}), or [[select a language]] ({1}), or [[fill with template]] ({2}) to get started.\nStart typing to dismiss or [[don\'t show]] this again.',
|
|
246
246
|
keybindingLabels.at(0) ?? '',
|
|
247
247
|
keybindingLabels.at(1) ?? '',
|
|
248
248
|
keybindingLabels.at(2) ?? ''
|
|
249
249
|
)) : ( localize(
|
|
250
|
-
|
|
250
|
+
5420,
|
|
251
251
|
'[[Select a language]] ({0}), or [[fill with template]] ({1}), or [[open a different editor]] ({2}) to get started.\nStart typing to dismiss or [[don\'t show]] this again.',
|
|
252
252
|
keybindingLabels.at(0) ?? '',
|
|
253
253
|
keybindingLabels.at(1) ?? '',
|
|
@@ -260,12 +260,12 @@ let EmptyTextEditorHintContentWidget = class EmptyTextEditorHintContentWidget ex
|
|
|
260
260
|
hintElement.style.fontStyle = 'italic';
|
|
261
261
|
const ariaLabel = hasInlineChatProvider ?
|
|
262
262
|
( localize(
|
|
263
|
-
|
|
263
|
+
5421,
|
|
264
264
|
'Execute {0} to ask a question, execute {1} to select a language, or execute {2} to fill with template and get started. Start typing to dismiss.',
|
|
265
265
|
...keybindingLabels
|
|
266
266
|
)) :
|
|
267
267
|
( localize(
|
|
268
|
-
|
|
268
|
+
5422,
|
|
269
269
|
'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.',
|
|
270
270
|
...keybindingLabels
|
|
271
271
|
));
|
|
@@ -282,7 +282,7 @@ let EmptyTextEditorHintContentWidget = class EmptyTextEditorHintContentWidget ex
|
|
|
282
282
|
const { hintElement, ariaLabel } = this.getHint();
|
|
283
283
|
this.domNode.append(hintElement);
|
|
284
284
|
this.ariaLabel = ariaLabel.concat(( localize(
|
|
285
|
-
|
|
285
|
+
5423,
|
|
286
286
|
' Toggle {0} in settings to disable this hint.',
|
|
287
287
|
AccessibilityVerbositySettingId.EmptyEditorHint
|
|
288
288
|
)));
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js
CHANGED
|
@@ -8,12 +8,12 @@ import { registerAction2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
8
8
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
9
|
import { InputFocusedContext, InputFocusedContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
10
10
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
11
|
-
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-
|
|
11
|
+
import { ResourceNotebookCellEdit } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
12
12
|
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';
|
|
13
|
-
import { NotebookCellAction, CellOverflowToolbarGroups, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, NotebookMultiCellAction, parseMultiCellExecutionArgs, cellExecutionArgs } from '@codingame/monaco-vscode-
|
|
14
|
-
import { CellFocusMode, EXPAND_CELL_INPUT_COMMAND_ID, EXPAND_CELL_OUTPUT_COMMAND_ID } from '@codingame/monaco-vscode-
|
|
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-
|
|
16
|
-
import { moveUpIcon, moveDownIcon, splitCellIcon } from '@codingame/monaco-vscode-
|
|
13
|
+
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';
|
|
14
|
+
import { CellFocusMode, EXPAND_CELL_INPUT_COMMAND_ID, EXPAND_CELL_OUTPUT_COMMAND_ID } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-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-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
16
|
+
import { moveUpIcon, moveDownIcon, splitCellIcon } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-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';
|
|
19
19
|
import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
|
|
@@ -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(
|
|
30
|
+
title: ( localize2(8362, "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(
|
|
53
|
+
title: ( localize2(8363, "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(
|
|
76
|
+
title: ( localize2(8364, "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(
|
|
92
|
+
title: ( localize2(8365, "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(
|
|
118
|
+
title: ( localize2(8366, "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(
|
|
185
|
+
title: ( localize2(8367, "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(
|
|
208
|
+
title: ( localize2(8368, "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(
|
|
231
|
+
title: ( localize2(8369, "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(
|
|
252
|
+
title: ( localize2(8370, "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(
|
|
283
|
+
title: ( localize2(8371, "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(
|
|
322
|
+
title: ( localize2(8372, "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(
|
|
346
|
+
title: ( localize2(8373, "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(
|
|
370
|
+
title: ( localize2(8374, "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(
|
|
391
|
+
title: ( localize2(8375, "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(
|
|
413
|
+
title: ( localize2(8376, "Toggle Outputs")),
|
|
414
414
|
metadata: {
|
|
415
|
-
description: ( localize(
|
|
415
|
+
description: ( localize(8376, "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(
|
|
440
|
+
title: ( localize2(8377, "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(
|
|
452
|
+
title: ( localize2(8378, "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(
|
|
464
|
+
title: ( localize2(8379, "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(
|
|
476
|
+
title: ( localize2(8380, "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(
|
|
488
|
+
title: ( localize2(8381, "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),
|
|
@@ -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-271a23cd-c7d7-5761-ae35-a923a42987b8-common/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;
|
|
@@ -7,11 +7,11 @@ import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls'
|
|
|
7
7
|
import { registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
8
8
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
9
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
10
|
-
import { NotebookCellAction, findTargetCellEditor } from '@codingame/monaco-vscode-
|
|
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-
|
|
13
|
-
import { InlineChatController } from '@codingame/monaco-vscode-
|
|
14
|
-
import { showChatView } from '@codingame/monaco-vscode-
|
|
12
|
+
import { NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, NOTEBOOK_CELL_EDITOR_FOCUSED } from '@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
13
|
+
import { InlineChatController } from '@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
14
|
+
import { showChatView } from '@codingame/monaco-vscode-9911aec2-e4dd-5483-8369-9d695cc70d8a-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';
|
|
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(8382, "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(8383, "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(8384, "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(8385, "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-271a23cd-c7d7-5761-ae35-a923a42987b8-common/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);
|
|
@@ -45,7 +45,7 @@ let DiagnosticCellStatusBarItem = class DiagnosticCellStatusBarItem extends Disp
|
|
|
45
45
|
let item;
|
|
46
46
|
if (error?.location && this.hasNotebookAgent()) {
|
|
47
47
|
const keybinding = this.keybindingService.lookupKeybinding(OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID)?.getLabel();
|
|
48
|
-
const tooltip = ( localize(
|
|
48
|
+
const tooltip = ( localize(8386, "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-271a23cd-c7d7-5761-ae35-a923a42987b8-common/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;
|
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-271a23cd-c7d7-5761-ae35-a923a42987b8-common/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
|
+
8394,
|
|
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(8395, "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(8396, "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) {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
3
|
-
import { ICellViewModel, INotebookEditor } from "@codingame/monaco-vscode-
|
|
3
|
+
import { ICellViewModel, INotebookEditor } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
4
|
import { NotebookCellTextModel } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
5
5
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
6
|
export declare function runPasteCells(editor: INotebookEditor, activeCell: ICellViewModel | undefined, pasteCells: {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js
CHANGED
|
@@ -4,8 +4,8 @@ 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-
|
|
8
|
-
import { getNotebookEditorFromEditorPane, expandCellRangesWithHiddenCells, cellRangeToViewCells } from '@codingame/monaco-vscode-
|
|
7
|
+
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_OUTPUT_FOCUSED } from '@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
8
|
+
import { getNotebookEditorFromEditorPane, expandCellRangesWithHiddenCells, cellRangeToViewCells } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-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';
|
|
11
11
|
import { cloneNotebookCellTextModel } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
|
|
@@ -13,7 +13,7 @@ import { SelectionStateType, CellEditType } from '@codingame/monaco-vscode-api/v
|
|
|
13
13
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
14
14
|
import { isNative } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
15
15
|
import { registerAction2, MenuId, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
16
|
-
import { NotebookCellAction, CellOverflowToolbarGroups, NotebookAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, NOTEBOOK_OUTPUT_WEBVIEW_ACTION_WEIGHT } from '@codingame/monaco-vscode-
|
|
16
|
+
import { NotebookCellAction, CellOverflowToolbarGroups, NotebookAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, NOTEBOOK_OUTPUT_WEBVIEW_ACTION_WEIGHT } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
17
17
|
import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
18
18
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
19
19
|
import { InputFocusedContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
@@ -23,7 +23,7 @@ import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/acti
|
|
|
23
23
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
24
24
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
25
25
|
import { showWindowLogActionId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/log/common/logConstants';
|
|
26
|
-
import { getWindow, getActiveElement, isHTMLElement, isEditableElement
|
|
26
|
+
import { getWindow, getActiveElement, isHTMLElement, isEditableElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
27
27
|
|
|
28
28
|
let _logging = false;
|
|
29
29
|
function toggleLogging() {
|
|
@@ -299,7 +299,7 @@ let NotebookClipboardContribution = class NotebookClipboardContribution extends
|
|
|
299
299
|
_log(loggerService, '[NotebookEditor] no active notebook editor, bypass');
|
|
300
300
|
return false;
|
|
301
301
|
}
|
|
302
|
-
if (!
|
|
302
|
+
if (!editor.hasEditorFocus()) {
|
|
303
303
|
_log(loggerService, '[NotebookEditor] focus is outside of the notebook editor, bypass');
|
|
304
304
|
return false;
|
|
305
305
|
}
|
|
@@ -315,15 +315,15 @@ let NotebookClipboardContribution = class NotebookClipboardContribution extends
|
|
|
315
315
|
if (activeElement && isEditableElement(activeElement)) {
|
|
316
316
|
return false;
|
|
317
317
|
}
|
|
318
|
+
const { editor, activeCell } = this._getContext();
|
|
319
|
+
if (!editor || !editor.hasEditorFocus() || this._focusInsideEmebedMonaco(editor)) {
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
318
322
|
const notebookService = accessor.get(INotebookService);
|
|
319
323
|
const pasteCells = notebookService.getToCopy();
|
|
320
324
|
if (!pasteCells) {
|
|
321
325
|
return false;
|
|
322
326
|
}
|
|
323
|
-
const { editor, activeCell } = this._getContext();
|
|
324
|
-
if (!editor) {
|
|
325
|
-
return false;
|
|
326
|
-
}
|
|
327
327
|
return runPasteCells(editor, activeCell, pasteCells);
|
|
328
328
|
}
|
|
329
329
|
runCutAction(accessor) {
|
|
@@ -332,7 +332,7 @@ let NotebookClipboardContribution = class NotebookClipboardContribution extends
|
|
|
332
332
|
return false;
|
|
333
333
|
}
|
|
334
334
|
const { editor } = this._getContext();
|
|
335
|
-
if (!editor) {
|
|
335
|
+
if (!editor || !editor.hasEditorFocus() || this._focusInsideEmebedMonaco(editor)) {
|
|
336
336
|
return false;
|
|
337
337
|
}
|
|
338
338
|
return runCutCells(accessor, editor, undefined);
|
|
@@ -350,7 +350,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
350
350
|
constructor() {
|
|
351
351
|
super({
|
|
352
352
|
id: COPY_CELL_COMMAND_ID,
|
|
353
|
-
title: ( localize(
|
|
353
|
+
title: ( localize(8398, "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(
|
|
376
|
+
title: ( localize(8399, "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(
|
|
399
|
+
title: ( localize(8400, "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(
|
|
431
|
+
title: ( localize(8401, "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(
|
|
475
|
+
title: ( localize2(8402, '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(
|
|
492
|
+
title: ( localize(8403, "Select All")),
|
|
493
493
|
keybinding: {
|
|
494
494
|
primary: KeyMod.CtrlCmd | KeyCode.KeyA,
|
|
495
495
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED)),
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js
CHANGED
|
@@ -7,7 +7,7 @@ import { isEqual } from '@codingame/monaco-vscode-api/vscode/vs/base/common/reso
|
|
|
7
7
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
8
8
|
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
9
9
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
10
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
10
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
11
11
|
import { NotebookCellsChangeType, CellUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
12
12
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
13
13
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
3
|
import { IDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
4
|
-
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-
|
|
4
|
+
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
5
5
|
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
6
6
|
export declare class PausedCellDecorationContribution extends Disposable implements INotebookEditorContribution {
|
|
7
7
|
private readonly _notebookEditor;
|