@codingame/monaco-vscode-notebook-service-override 37.2.0 → 37.3.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/index.js +2 -2
- package/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +6 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +9 -9
- 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.js +3 -3
- 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.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +3 -3
- 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 +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +10 -10
- 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 +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +1 -1
- 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.js +36 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -1
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +16 -16
- 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 +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +11 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +40 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +33 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +73 -73
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +35 -35
- 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 +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +2 -2
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +9 -6
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +15 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +2 -2
- 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 +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +44 -18
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +14 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +5 -5
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js
CHANGED
|
@@ -39,7 +39,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
39
39
|
displayLanguage = this._languageService.getLanguageName(displayLanguage) ?? displayLanguage;
|
|
40
40
|
} else {
|
|
41
41
|
const searchTooltip = ( localize(
|
|
42
|
-
|
|
42
|
+
16508,
|
|
43
43
|
"Unknown cell language. Click to search for '{0}' extensions",
|
|
44
44
|
cell.language
|
|
45
45
|
));
|
|
@@ -59,7 +59,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
59
59
|
statusBarItems.push({
|
|
60
60
|
text: displayLanguage,
|
|
61
61
|
command: CHANGE_CELL_LANGUAGE,
|
|
62
|
-
tooltip: ( localize(
|
|
62
|
+
tooltip: ( localize(16509, "Select Cell Language Mode")),
|
|
63
63
|
alignment: CellStatusbarAlignment.Right,
|
|
64
64
|
priority: -Number.MAX_SAFE_INTEGER
|
|
65
65
|
});
|
|
@@ -125,7 +125,7 @@ let CellStatusBarLanguageDetectionProvider = class CellStatusBarLanguageDetectio
|
|
|
125
125
|
const items = [];
|
|
126
126
|
if (cached.guess && currentLanguageId !== cached.guess) {
|
|
127
127
|
const detectedName = this._languageService.getLanguageName(cached.guess) || cached.guess;
|
|
128
|
-
const tooltip = this._keybindingService.appendKeybinding(( localize(
|
|
128
|
+
const tooltip = this._keybindingService.appendKeybinding(( localize(16510, "Accept Detected Language: {0}", detectedName)), DETECT_CELL_LANGUAGE);
|
|
129
129
|
items.push({
|
|
130
130
|
text: "$(lightbulb-autofix)",
|
|
131
131
|
command: DETECT_CELL_LANGUAGE,
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
import { ICellViewModel, INotebookEditor } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
4
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-api/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: {
|
|
7
7
|
items: NotebookCellTextModel[];
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js
CHANGED
|
@@ -8,12 +8,12 @@ import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITAB
|
|
|
8
8
|
import { getNotebookEditorFromEditorPane, expandCellRangesWithHiddenCells, cellRangeToViewCells } from '@codingame/monaco-vscode-api/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
|
-
import { cloneNotebookCellTextModel } from '@codingame/monaco-vscode-
|
|
11
|
+
import { cloneNotebookCellTextModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
|
|
12
12
|
import { SelectionStateType, CellEditType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
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-api/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';
|
|
@@ -125,7 +125,7 @@ function runPasteCells(editor, activeCell, pasteCells) {
|
|
|
125
125
|
editType: CellEditType.Replace,
|
|
126
126
|
index: newFocusIndex,
|
|
127
127
|
count: 0,
|
|
128
|
-
cells:
|
|
128
|
+
cells: pasteCells.items.map(cell => cloneNotebookCellTextModel(cell))
|
|
129
129
|
}], true, originalState, () => ({
|
|
130
130
|
kind: SelectionStateType.Index,
|
|
131
131
|
focus: {
|
|
@@ -145,7 +145,7 @@ function runPasteCells(editor, activeCell, pasteCells) {
|
|
|
145
145
|
editType: CellEditType.Replace,
|
|
146
146
|
index: 0,
|
|
147
147
|
count: 0,
|
|
148
|
-
cells:
|
|
148
|
+
cells: pasteCells.items.map(cell => cloneNotebookCellTextModel(cell))
|
|
149
149
|
}], true, originalState, () => ({
|
|
150
150
|
kind: SelectionStateType.Index,
|
|
151
151
|
focus: {
|
|
@@ -187,8 +187,8 @@ function runCopyCells(accessor, editor, targetCell) {
|
|
|
187
187
|
if (!selectedCells.length) {
|
|
188
188
|
return false;
|
|
189
189
|
}
|
|
190
|
-
clipboardService.writeText(
|
|
191
|
-
notebookService.setToCopy(
|
|
190
|
+
clipboardService.writeText(selectedCells.map(cell => cell.getText()).join("\n"));
|
|
191
|
+
notebookService.setToCopy(selectedCells.map(cell => cell.model), true);
|
|
192
192
|
return true;
|
|
193
193
|
}
|
|
194
194
|
function runCutCells(accessor, editor, targetCell) {
|
|
@@ -211,10 +211,10 @@ function runCutCells(accessor, editor, targetCell) {
|
|
|
211
211
|
start: focus.start - 1,
|
|
212
212
|
end: focus.end - 1
|
|
213
213
|
};
|
|
214
|
-
const newSelections =
|
|
214
|
+
const newSelections = selections.map(selection => (selection.end <= targetCellIndex ? selection : {
|
|
215
215
|
start: selection.start - 1,
|
|
216
216
|
end: selection.end - 1
|
|
217
|
-
}))
|
|
217
|
+
}));
|
|
218
218
|
textModel.applyEdits([{
|
|
219
219
|
editType: CellEditType.Replace,
|
|
220
220
|
index: targetCellIndex,
|
|
@@ -242,10 +242,10 @@ function runCutCells(accessor, editor, targetCell) {
|
|
|
242
242
|
start: focus.start - 1,
|
|
243
243
|
end: focus.end - 1
|
|
244
244
|
} : focus;
|
|
245
|
-
const newSelections =
|
|
245
|
+
const newSelections = selections.map(selection => (selection.end <= focus.start ? selection : {
|
|
246
246
|
start: selection.start - 1,
|
|
247
247
|
end: selection.end - 1
|
|
248
|
-
}))
|
|
248
|
+
}));
|
|
249
249
|
textModel.applyEdits([{
|
|
250
250
|
editType: CellEditType.Replace,
|
|
251
251
|
index: focus.start,
|
|
@@ -268,13 +268,13 @@ function runCutCells(accessor, editor, targetCell) {
|
|
|
268
268
|
if (!selectedCells.length) {
|
|
269
269
|
return false;
|
|
270
270
|
}
|
|
271
|
-
clipboardService.writeText(
|
|
272
|
-
const edits =
|
|
271
|
+
clipboardService.writeText(selectedCells.map(cell => cell.getText()).join("\n"));
|
|
272
|
+
const edits = selectionRanges.map(range => ({
|
|
273
273
|
editType: CellEditType.Replace,
|
|
274
274
|
index: range.start,
|
|
275
275
|
count: range.end - range.start,
|
|
276
276
|
cells: []
|
|
277
|
-
}))
|
|
277
|
+
}));
|
|
278
278
|
const firstSelectIndex = selectionRanges[0].start;
|
|
279
279
|
const newFocusedCellIndex = firstSelectIndex < textModel.cells.length - 1 ? firstSelectIndex : Math.max(textModel.cells.length - 2, 0);
|
|
280
280
|
textModel.applyEdits(edits, true, {
|
|
@@ -294,7 +294,7 @@ function runCutCells(accessor, editor, targetCell) {
|
|
|
294
294
|
}]
|
|
295
295
|
};
|
|
296
296
|
}, undefined, true);
|
|
297
|
-
notebookService.setToCopy(
|
|
297
|
+
notebookService.setToCopy(selectedCells.map(cell => cell.model), false);
|
|
298
298
|
return true;
|
|
299
299
|
}
|
|
300
300
|
let NotebookClipboardContribution = class NotebookClipboardContribution extends Disposable {
|
|
@@ -431,7 +431,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
431
431
|
constructor() {
|
|
432
432
|
super({
|
|
433
433
|
id: COPY_CELL_COMMAND_ID,
|
|
434
|
-
title: ( localize(
|
|
434
|
+
title: ( localize(16512, "Copy Cell")),
|
|
435
435
|
menu: {
|
|
436
436
|
id: MenuId.NotebookCellTitle,
|
|
437
437
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -457,7 +457,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
457
457
|
constructor() {
|
|
458
458
|
super({
|
|
459
459
|
id: CUT_CELL_COMMAND_ID,
|
|
460
|
-
title: ( localize(
|
|
460
|
+
title: ( localize(16513, "Cut Cell")),
|
|
461
461
|
menu: {
|
|
462
462
|
id: MenuId.NotebookCellTitle,
|
|
463
463
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE)),
|
|
@@ -483,7 +483,7 @@ registerAction2(class extends NotebookAction {
|
|
|
483
483
|
constructor() {
|
|
484
484
|
super({
|
|
485
485
|
id: PASTE_CELL_COMMAND_ID,
|
|
486
|
-
title: ( localize(
|
|
486
|
+
title: ( localize(16514, "Paste Cell")),
|
|
487
487
|
menu: {
|
|
488
488
|
id: MenuId.NotebookCellTitle,
|
|
489
489
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE)),
|
|
@@ -521,7 +521,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
521
521
|
constructor() {
|
|
522
522
|
super({
|
|
523
523
|
id: PASTE_CELL_ABOVE_COMMAND_ID,
|
|
524
|
-
title: ( localize(
|
|
524
|
+
title: ( localize(16515, "Paste Cell Above")),
|
|
525
525
|
keybinding: {
|
|
526
526
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
527
527
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyV,
|
|
@@ -551,7 +551,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
551
551
|
editType: CellEditType.Replace,
|
|
552
552
|
index: currCellIndex,
|
|
553
553
|
count: 0,
|
|
554
|
-
cells:
|
|
554
|
+
cells: pasteCells.items.map(cell => cloneNotebookCellTextModel(cell))
|
|
555
555
|
}], true, originalState, () => ({
|
|
556
556
|
kind: SelectionStateType.Index,
|
|
557
557
|
focus: {
|
|
@@ -569,7 +569,7 @@ registerAction2(class extends Action2 {
|
|
|
569
569
|
constructor() {
|
|
570
570
|
super({
|
|
571
571
|
id: "workbench.action.toggleNotebookClipboardLog",
|
|
572
|
-
title: ( localize2(
|
|
572
|
+
title: ( localize2(16516, "Toggle Notebook Clipboard Troubleshooting")),
|
|
573
573
|
category: Categories.Developer,
|
|
574
574
|
f1: true
|
|
575
575
|
});
|
|
@@ -586,7 +586,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
586
586
|
constructor() {
|
|
587
587
|
super({
|
|
588
588
|
id: "notebook.cell.output.selectAll",
|
|
589
|
-
title: ( localize(
|
|
589
|
+
title: ( localize(16517, "Select All")),
|
|
590
590
|
keybinding: {
|
|
591
591
|
primary: KeyMod.CtrlCmd | KeyCode.KeyA,
|
|
592
592
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED)),
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js
CHANGED
|
@@ -8,10 +8,10 @@ import { debugIconBreakpointForeground } from '@codingame/monaco-vscode-api/vsco
|
|
|
8
8
|
import { topStackFrameColor, focusedStackFrameColor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
|
|
9
9
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
10
10
|
import { NotebookOverviewRulerLane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
11
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
12
|
-
import { runningCellRulerDecorationColor } from '@codingame/monaco-vscode-
|
|
11
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
12
|
+
import { runningCellRulerDecorationColor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
13
13
|
import { CellUri, NotebookCellExecutionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
14
|
-
import { NotebookExecutionType } from '@codingame/monaco-vscode-
|
|
14
|
+
import { NotebookExecutionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
15
15
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
16
16
|
|
|
17
17
|
let PausedCellDecorationContribution = class PausedCellDecorationContribution extends Disposable {
|
|
@@ -77,11 +77,11 @@ let PausedCellDecorationContribution = class PausedCellDecorationContribution ex
|
|
|
77
77
|
}
|
|
78
78
|
this.setTopFrameDecoration(topFrameCellsAndRanges);
|
|
79
79
|
this.setFocusedFrameDecoration(focusedFrameCellAndRange);
|
|
80
|
-
const exeHandles = exes ?
|
|
80
|
+
const exeHandles = exes ? Array.from(exes.entries()).filter(([_, exe]) => exe.state === NotebookCellExecutionState.Executing).map(([handle]) => handle) : [];
|
|
81
81
|
this.setExecutingCellDecorations(exeHandles);
|
|
82
82
|
}
|
|
83
83
|
setTopFrameDecoration(handlesAndRanges) {
|
|
84
|
-
const newDecorations =
|
|
84
|
+
const newDecorations = handlesAndRanges.map((
|
|
85
85
|
{
|
|
86
86
|
handle,
|
|
87
87
|
range
|
|
@@ -99,7 +99,7 @@ let PausedCellDecorationContribution = class PausedCellDecorationContribution ex
|
|
|
99
99
|
handle,
|
|
100
100
|
options
|
|
101
101
|
};
|
|
102
|
-
})
|
|
102
|
+
});
|
|
103
103
|
this._currentTopDecorations = this._notebookEditor.deltaCellDecorations(this._currentTopDecorations, newDecorations);
|
|
104
104
|
}
|
|
105
105
|
setFocusedFrameDecoration(focusedFrameCellAndRange) {
|
|
@@ -121,7 +121,7 @@ let PausedCellDecorationContribution = class PausedCellDecorationContribution ex
|
|
|
121
121
|
this._currentOtherDecorations = this._notebookEditor.deltaCellDecorations(this._currentOtherDecorations, newDecorations);
|
|
122
122
|
}
|
|
123
123
|
setExecutingCellDecorations(handles) {
|
|
124
|
-
const newDecorations =
|
|
124
|
+
const newDecorations = handles.map(handle => {
|
|
125
125
|
const options = {
|
|
126
126
|
overviewRuler: {
|
|
127
127
|
color: runningCellRulerDecorationColor,
|
|
@@ -134,7 +134,7 @@ let PausedCellDecorationContribution = class PausedCellDecorationContribution ex
|
|
|
134
134
|
handle,
|
|
135
135
|
options
|
|
136
136
|
};
|
|
137
|
-
})
|
|
137
|
+
});
|
|
138
138
|
this._executingCellDecorations = this._notebookEditor.deltaCellDecorations(this._executingCellDecorations, newDecorations);
|
|
139
139
|
}
|
|
140
140
|
};
|
|
@@ -159,7 +159,7 @@ let NotebookBreakpointDecorations = class NotebookBreakpointDecorations extends
|
|
|
159
159
|
}
|
|
160
160
|
updateDecorations() {
|
|
161
161
|
const enabled = this._configService.getValue("debug.showBreakpointsInOverviewRuler");
|
|
162
|
-
const newDecorations = enabled ?
|
|
162
|
+
const newDecorations = enabled ? this._debugService.getModel().getBreakpoints().map(breakpoint => {
|
|
163
163
|
const parsed = CellUri.parse(breakpoint.uri);
|
|
164
164
|
if (!parsed || ( parsed.notebook.toString()) !== ( this._notebookEditor.textModel.uri.toString())) {
|
|
165
165
|
return null;
|
|
@@ -176,7 +176,7 @@ let NotebookBreakpointDecorations = class NotebookBreakpointDecorations extends
|
|
|
176
176
|
handle: parsed.handle,
|
|
177
177
|
options
|
|
178
178
|
};
|
|
179
|
-
})
|
|
179
|
+
}).filter(x => !!x) : [];
|
|
180
180
|
this._currentDecorations = this._notebookEditor.deltaCellDecorations(this._currentDecorations, newDecorations);
|
|
181
181
|
}
|
|
182
182
|
};
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js
CHANGED
|
@@ -9,7 +9,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
9
9
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
10
10
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
11
11
|
import { CENTER_ACTIVE_CELL } from '../navigation/arrow.js';
|
|
12
|
-
import { SELECT_KERNEL_ID } from '@codingame/monaco-vscode-
|
|
12
|
+
import { SELECT_KERNEL_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
13
13
|
import { SELECT_NOTEBOOK_INDENTATION_ID } from '../../controller/editActions.js';
|
|
14
14
|
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
15
15
|
import { NotebookCellsChangeType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
@@ -125,18 +125,18 @@ let KernelStatus = class KernelStatus extends Disposable {
|
|
|
125
125
|
}
|
|
126
126
|
const tooltip = kernel.description ?? kernel.detail ?? kernel.label;
|
|
127
127
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
128
|
-
name: ( localize(
|
|
128
|
+
name: ( localize(16518, "Notebook Kernel Info")),
|
|
129
129
|
text: `$(notebook-kernel-select) ${kernel.label}`,
|
|
130
130
|
ariaLabel: kernel.label,
|
|
131
|
-
tooltip: isSuggested ? ( localize(
|
|
131
|
+
tooltip: isSuggested ? ( localize(16519, "{0} (suggestion)", tooltip)) : tooltip,
|
|
132
132
|
command: SELECT_KERNEL_ID
|
|
133
133
|
}, SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10));
|
|
134
134
|
this._kernelInfoElement.add(kernel.onDidChange(() => this._showKernelStatus(notebook)));
|
|
135
135
|
} else {
|
|
136
136
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
137
|
-
name: ( localize(
|
|
138
|
-
text: ( localize(
|
|
139
|
-
ariaLabel: ( localize(
|
|
137
|
+
name: ( localize(16520, "Notebook Kernel Selection")),
|
|
138
|
+
text: ( localize(16521, "Select Kernel")),
|
|
139
|
+
ariaLabel: ( localize(16521, "Select Kernel")),
|
|
140
140
|
command: SELECT_KERNEL_ID,
|
|
141
141
|
kind: "prominent"
|
|
142
142
|
}, SELECT_KERNEL_ID, StatusbarAlignment.RIGHT, 10));
|
|
@@ -176,7 +176,7 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
178
|
const entry = {
|
|
179
|
-
name: ( localize(
|
|
179
|
+
name: ( localize(16522, "Notebook Editor Selections")),
|
|
180
180
|
text: newText,
|
|
181
181
|
ariaLabel: newText,
|
|
182
182
|
command: CENTER_ACTIVE_CELL
|
|
@@ -198,7 +198,7 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
198
198
|
const idxFocused = editor.getCellIndex(activeCell) + 1;
|
|
199
199
|
const numSelected = editor.getSelections().reduce((prev, range) => prev + (range.end - range.start), 0);
|
|
200
200
|
const totalCells = editor.getLength();
|
|
201
|
-
return numSelected > 1 ? ( localize(
|
|
201
|
+
return numSelected > 1 ? ( localize(16523, "Cell {0} ({1} selected)", idxFocused, numSelected)) : ( localize(16524, "Cell {0} of {1}", idxFocused, totalCells));
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
ActiveCellStatus = ( __decorate([( __param(0, IEditorService)), ( __param(1, IStatusbarService))], ActiveCellStatus));
|
|
@@ -256,10 +256,10 @@ let NotebookIndentationStatus = class NotebookIndentationStatus extends Disposab
|
|
|
256
256
|
return;
|
|
257
257
|
}
|
|
258
258
|
const entry = {
|
|
259
|
-
name: ( localize(
|
|
259
|
+
name: ( localize(16525, "Notebook Indentation")),
|
|
260
260
|
text: newText,
|
|
261
261
|
ariaLabel: newText,
|
|
262
|
-
tooltip: ( localize(
|
|
262
|
+
tooltip: ( localize(16526, "Select Indentation")),
|
|
263
263
|
command: SELECT_NOTEBOOK_INDENTATION_ID
|
|
264
264
|
};
|
|
265
265
|
if (!this._accessor.value) {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { throttle } from '@codingame/monaco-vscode-api/vscode/vs/base/common/decorators';
|
|
4
4
|
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
5
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
6
6
|
import { NotebookCellExecutionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
7
7
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
8
8
|
import { IUserActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/userActivity/common/userActivityService.service';
|
|
@@ -12,22 +12,22 @@ import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
12
12
|
import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
13
13
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
14
14
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
15
|
-
import { NotebookFindContrib } from '@codingame/monaco-vscode-
|
|
16
|
-
import { NotebookMultiCellAction } from '@codingame/monaco-vscode-
|
|
15
|
+
import { NotebookFindContrib } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
|
|
16
|
+
import { NotebookMultiCellAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
17
17
|
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
18
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
18
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
19
19
|
import { NotebookFindScopeType, CellUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
20
20
|
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_IS_ACTIVE_EDITOR, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
21
21
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
22
22
|
import { CONTEXT_FIND_WIDGET_VISIBLE } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/find/browser/findModel';
|
|
23
23
|
|
|
24
|
-
registerCss(notebookFind);
|
|
24
|
+
registerCss(notebookFind, 1);
|
|
25
25
|
registerNotebookContribution(NotebookFindContrib.id, NotebookFindContrib);
|
|
26
26
|
registerAction2(class extends Action2 {
|
|
27
27
|
constructor() {
|
|
28
28
|
super({
|
|
29
29
|
id: "notebook.hideFind",
|
|
30
|
-
title: ( localize2(
|
|
30
|
+
title: ( localize2(16527, "Hide Find in Notebook")),
|
|
31
31
|
keybinding: {
|
|
32
32
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, CONTEXT_FIND_WIDGET_VISIBLE)),
|
|
33
33
|
primary: KeyCode.Escape,
|
|
@@ -50,7 +50,7 @@ registerAction2(class extends NotebookMultiCellAction {
|
|
|
50
50
|
constructor() {
|
|
51
51
|
super({
|
|
52
52
|
id: "notebook.find",
|
|
53
|
-
title: ( localize2(
|
|
53
|
+
title: ( localize2(16528, "Find in Notebook")),
|
|
54
54
|
keybinding: {
|
|
55
55
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.or(NOTEBOOK_IS_ACTIVE_EDITOR, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR)), ( EditorContextKeys.focus.toNegated()))),
|
|
56
56
|
primary: KeyCode.KeyF | KeyMod.CtrlCmd,
|
|
@@ -229,7 +229,7 @@ registerAction2(class extends Action2 {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: "notebook.findNext.fromWidget",
|
|
232
|
-
title: ( localize2(
|
|
232
|
+
title: ( localize2(16529, "Find Next")),
|
|
233
233
|
keybinding: {
|
|
234
234
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, CONTEXT_FIND_WIDGET_VISIBLE)),
|
|
235
235
|
primary: KeyCode.F3,
|
|
@@ -249,7 +249,7 @@ registerAction2(class extends Action2 {
|
|
|
249
249
|
constructor() {
|
|
250
250
|
super({
|
|
251
251
|
id: "notebook.findPrevious.fromWidget",
|
|
252
|
-
title: ( localize2(
|
|
252
|
+
title: ( localize2(16530, "Find Previous")),
|
|
253
253
|
keybinding: {
|
|
254
254
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, CONTEXT_FIND_WIDGET_VISIBLE)),
|
|
255
255
|
primary: KeyMod.Shift | KeyCode.F3,
|
|
@@ -17,7 +17,7 @@ import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
17
17
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
18
18
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
19
19
|
import { Progress } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress';
|
|
20
|
-
import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-
|
|
20
|
+
import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
21
21
|
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
22
22
|
import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
23
23
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -34,7 +34,7 @@ registerAction2(class extends Action2 {
|
|
|
34
34
|
constructor() {
|
|
35
35
|
super({
|
|
36
36
|
id: "notebook.format",
|
|
37
|
-
title: ( localize2(
|
|
37
|
+
title: ( localize2(16551, "Format Notebook")),
|
|
38
38
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
39
39
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE)),
|
|
40
40
|
keybinding: {
|
|
@@ -78,7 +78,7 @@ registerAction2(class extends Action2 {
|
|
|
78
78
|
const disposable = ( new DisposableStore());
|
|
79
79
|
try {
|
|
80
80
|
if (!formatApplied) {
|
|
81
|
-
const allCellEdits = await Promise.all(
|
|
81
|
+
const allCellEdits = await Promise.all(notebook.cells.map(async cell => {
|
|
82
82
|
const ref = await textModelService.createModelReference(cell.uri);
|
|
83
83
|
disposable.add(ref);
|
|
84
84
|
const model = ref.object.textEditorModel;
|
|
@@ -97,9 +97,9 @@ registerAction2(class extends Action2 {
|
|
|
97
97
|
return edits;
|
|
98
98
|
}
|
|
99
99
|
return [];
|
|
100
|
-
}))
|
|
100
|
+
}));
|
|
101
101
|
await bulkEditService.apply( allCellEdits.flat(), {
|
|
102
|
-
label: ( localize(
|
|
102
|
+
label: ( localize(16552, "Format Notebook")),
|
|
103
103
|
code: "undoredo.formatNotebook"
|
|
104
104
|
});
|
|
105
105
|
}
|
|
@@ -112,7 +112,7 @@ registerEditorAction(class FormatCellAction extends EditorAction {
|
|
|
112
112
|
constructor() {
|
|
113
113
|
super({
|
|
114
114
|
id: "notebook.formatCell",
|
|
115
|
-
label: ( localize2(
|
|
115
|
+
label: ( localize2(16553, "Format Cell")),
|
|
116
116
|
precondition: ( ContextKeyExpr.and(
|
|
117
117
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
118
118
|
NOTEBOOK_EDITOR_EDITABLE,
|
|
@@ -171,7 +171,7 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
|
|
|
171
171
|
}
|
|
172
172
|
const disposable = ( new DisposableStore());
|
|
173
173
|
try {
|
|
174
|
-
const allCellEdits = await Promise.all(
|
|
174
|
+
const allCellEdits = await Promise.all(executions.map(async cellExecution => {
|
|
175
175
|
const nbModel = this._notebookService.getNotebookTextModel(cellExecution.notebook);
|
|
176
176
|
if (!nbModel) {
|
|
177
177
|
return [];
|
|
@@ -198,13 +198,13 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
|
|
|
198
198
|
);
|
|
199
199
|
const edits = [];
|
|
200
200
|
if (formatEdits) {
|
|
201
|
-
edits.push(...
|
|
201
|
+
edits.push(...formatEdits.map(edit => ( new ResourceTextEdit(model.uri, edit, model.getVersionId()))));
|
|
202
202
|
return edits;
|
|
203
203
|
}
|
|
204
204
|
return [];
|
|
205
|
-
}))
|
|
205
|
+
}));
|
|
206
206
|
await this.bulkEditService.apply( allCellEdits.flat(), {
|
|
207
|
-
label: ( localize(
|
|
207
|
+
label: ( localize(16554, "Format Cells")),
|
|
208
208
|
code: "undoredo.notebooks.onWillExecuteFormat"
|
|
209
209
|
});
|
|
210
210
|
} finally {
|
|
@@ -69,7 +69,7 @@ registerAction2(class NotebookClearNotebookLayoutAction extends Action2 {
|
|
|
69
69
|
constructor() {
|
|
70
70
|
super({
|
|
71
71
|
id: "workbench.notebook.layout.gettingStarted",
|
|
72
|
-
title: ( localize2(
|
|
72
|
+
title: ( localize2(16555, "Reset notebook getting started")),
|
|
73
73
|
f1: true,
|
|
74
74
|
precondition: ( ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true)),
|
|
75
75
|
category: Categories.Developer
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
3
|
import { Action2, MenuId, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
4
4
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
5
|
-
import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-
|
|
5
|
+
import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
6
6
|
import { NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
7
7
|
|
|
8
8
|
const TOGGLE_CELL_TOOLBAR_POSITION = "notebook.toggleCellToolbarPosition";
|
|
@@ -10,7 +10,7 @@ class ToggleCellToolbarPositionAction extends Action2 {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super({
|
|
12
12
|
id: TOGGLE_CELL_TOOLBAR_POSITION,
|
|
13
|
-
title: ( localize2(
|
|
13
|
+
title: ( localize2(16556, "Toggle Cell Toolbar Position")),
|
|
14
14
|
menu: [{
|
|
15
15
|
id: MenuId.NotebookCellTitle,
|
|
16
16
|
group: "View",
|
|
@@ -9,7 +9,7 @@ import { IMarkerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
9
9
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
10
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
11
11
|
import { NotebookOverviewRulerLane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
12
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
12
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
13
13
|
import { throttle } from '@codingame/monaco-vscode-api/vscode/vs/base/common/decorators';
|
|
14
14
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colorUtils';
|
|
15
15
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/baseColors';
|