@codingame/monaco-vscode-notebook-service-override 37.0.0 → 37.2.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 +5 -0
- package/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.d.ts +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +210 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.d.ts +24 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +138 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.d.ts +29 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +194 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.d.ts +27 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +149 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.d.ts +49 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +372 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.d.ts +10 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +26 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.d.ts +9 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +43 -0
- 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 +23 -23
- 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 +3 -3
- 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 +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 +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +3 -3
- 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 +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +5 -5
- 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 +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +1 -1
- 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 +4 -4
- 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 +11 -11
- 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 +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
- 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 +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +64 -64
- 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 +31 -31
- 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 +9 -9
- 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 +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 +1 -1
- 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 +2 -2
- 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 +3 -3
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +1 -1
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.d.ts +87 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +352 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +14 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
|
@@ -13,9 +13,9 @@ import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
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
15
|
import { NotebookFindContrib } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
|
|
16
|
-
import { NotebookMultiCellAction } from '@codingame/monaco-vscode-
|
|
16
|
+
import { NotebookMultiCellAction } from '@codingame/monaco-vscode-katex-common/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-katex-common/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';
|
|
@@ -27,7 +27,7 @@ registerAction2(class extends Action2 {
|
|
|
27
27
|
constructor() {
|
|
28
28
|
super({
|
|
29
29
|
id: "notebook.hideFind",
|
|
30
|
-
title: ( localize2(
|
|
30
|
+
title: ( localize2(14388, "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(14389, "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(14390, "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(14391, "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-katex-common/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(14412, "Format Notebook")),
|
|
38
38
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
39
39
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE)),
|
|
40
40
|
keybinding: {
|
|
@@ -99,7 +99,7 @@ registerAction2(class extends Action2 {
|
|
|
99
99
|
return [];
|
|
100
100
|
})));
|
|
101
101
|
await bulkEditService.apply( allCellEdits.flat(), {
|
|
102
|
-
label: ( localize(
|
|
102
|
+
label: ( localize(14413, "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(14414, "Format Cell")),
|
|
116
116
|
precondition: ( ContextKeyExpr.and(
|
|
117
117
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
118
118
|
NOTEBOOK_EDITOR_EDITABLE,
|
|
@@ -204,7 +204,7 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
|
|
|
204
204
|
return [];
|
|
205
205
|
})));
|
|
206
206
|
await this.bulkEditService.apply( allCellEdits.flat(), {
|
|
207
|
-
label: ( localize(
|
|
207
|
+
label: ( localize(14415, "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(14416, "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-katex-common/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(14417, "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-katex-common/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';
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js
CHANGED
|
@@ -33,12 +33,12 @@ import { IUndoRedoService } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
33
33
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
34
34
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
35
35
|
import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
36
|
-
import { NotebookAction } from '@codingame/monaco-vscode-
|
|
36
|
+
import { NotebookAction } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
37
37
|
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
38
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
39
|
-
import { CellEditorOptions } from '@codingame/monaco-vscode-
|
|
38
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
39
|
+
import { CellEditorOptions } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions';
|
|
40
40
|
import { NotebookFindContrib } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
|
|
41
|
-
import { NotebookCellTextModel } from '@codingame/monaco-vscode-
|
|
41
|
+
import { NotebookCellTextModel } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
|
|
42
42
|
|
|
43
43
|
const NOTEBOOK_ADD_FIND_MATCH_TO_SELECTION_ID = "notebook.addFindMatchToSelection";
|
|
44
44
|
const NOTEBOOK_SELECT_ALL_FIND_MATCHES_ID = "notebook.selectAllFindMatches";
|
|
@@ -820,7 +820,7 @@ class NotebookSelectAllFindMatches extends NotebookAction {
|
|
|
820
820
|
constructor() {
|
|
821
821
|
super({
|
|
822
822
|
id: NOTEBOOK_SELECT_ALL_FIND_MATCHES_ID,
|
|
823
|
-
title: ( localize(
|
|
823
|
+
title: ( localize(14418, "Select All Occurrences of Find Match")),
|
|
824
824
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)))),
|
|
825
825
|
keybinding: {
|
|
826
826
|
when: ( ContextKeyExpr.or(( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)), ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED)))),
|
|
@@ -852,7 +852,7 @@ class NotebookAddMatchToMultiSelectionAction extends NotebookAction {
|
|
|
852
852
|
constructor() {
|
|
853
853
|
super({
|
|
854
854
|
id: NOTEBOOK_ADD_FIND_MATCH_TO_SELECTION_ID,
|
|
855
|
-
title: ( localize(
|
|
855
|
+
title: ( localize(14419, "Add Selection to Next Find Match")),
|
|
856
856
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)),
|
|
857
857
|
keybinding: {
|
|
858
858
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_EDITOR_FOCUSED)),
|
|
@@ -878,7 +878,7 @@ class NotebookExitMultiSelectionAction extends NotebookAction {
|
|
|
878
878
|
constructor() {
|
|
879
879
|
super({
|
|
880
880
|
id: "noteMultiCursor.exit",
|
|
881
|
-
title: ( localize(
|
|
881
|
+
title: ( localize(14420, "Exit Multi Cursor Mode")),
|
|
882
882
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor)),
|
|
883
883
|
keybinding: {
|
|
884
884
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor)),
|
|
@@ -901,7 +901,7 @@ class NotebookDeleteLeftMultiSelectionAction extends NotebookAction {
|
|
|
901
901
|
constructor() {
|
|
902
902
|
super({
|
|
903
903
|
id: "noteMultiCursor.deleteLeft",
|
|
904
|
-
title: ( localize(
|
|
904
|
+
title: ( localize(14421, "Delete Left")),
|
|
905
905
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
|
|
906
906
|
keybinding: {
|
|
907
907
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
|
|
@@ -924,7 +924,7 @@ class NotebookDeleteRightMultiSelectionAction extends NotebookAction {
|
|
|
924
924
|
constructor() {
|
|
925
925
|
super({
|
|
926
926
|
id: "noteMultiCursor.deleteRight",
|
|
927
|
-
title: ( localize(
|
|
927
|
+
title: ( localize(14422, "Delete Right")),
|
|
928
928
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
|
|
929
929
|
keybinding: {
|
|
930
930
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("config.notebook.multiCursor.enabled", true)), NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_MULTI_CURSOR_CONTEXT.IsNotebookMultiCursor, ( ContextKeyExpr.or(( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Selecting)), ( NOTEBOOK_MULTI_CURSOR_CONTEXT.NotebookMultiSelectCursorState.isEqualTo(NotebookMultiCursorState.Editing)))))),
|
|
@@ -5,7 +5,7 @@ import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode
|
|
|
5
5
|
import { Selection, SelectionDirection } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/selection';
|
|
6
6
|
import { CursorChangeReason } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/cursorEvents';
|
|
7
7
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
8
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
8
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
9
9
|
|
|
10
10
|
let NotebookSelectionHighlighter = class NotebookSelectionHighlighter extends Disposable {
|
|
11
11
|
static {
|
|
@@ -12,7 +12,7 @@ import { InputFocusedContextKey, IsWindowsContext } from '@codingame/monaco-vsco
|
|
|
12
12
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
13
13
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
14
14
|
import { InlineChatController } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
15
|
-
import { NotebookCellAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, findTargetCellEditor, NotebookAction } from '@codingame/monaco-vscode-
|
|
15
|
+
import { NotebookCellAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, findTargetCellEditor, NotebookAction } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
16
16
|
import { CellEditState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
17
17
|
import { NOTEBOOK_EDITOR_CURSOR_BOUNDARY, NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY, CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
18
18
|
import { NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CURSOR_NAVIGATION_MODE, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_OR_COMPOSITE_IS_ACTIVE_EDITOR, IS_COMPOSITE_NOTEBOOK, NOTEBOOK_CELL_HAS_OUTPUTS } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
@@ -33,7 +33,7 @@ registerAction2(class extends Action2 {
|
|
|
33
33
|
super({
|
|
34
34
|
id: "notebook.cell.nullAction",
|
|
35
35
|
title: ( localize(
|
|
36
|
-
|
|
36
|
+
14423,
|
|
37
37
|
"Keypresses that should be handled by the focused element in the cell output."
|
|
38
38
|
)),
|
|
39
39
|
keybinding: [{
|
|
@@ -56,7 +56,7 @@ registerAction2(class FocusNextCellAction extends NotebookCellAction {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super({
|
|
58
58
|
id: NOTEBOOK_FOCUS_NEXT_EDITOR,
|
|
59
|
-
title: ( localize(
|
|
59
|
+
title: ( localize(14424, "Focus Next Cell Editor")),
|
|
60
60
|
keybinding: [{
|
|
61
61
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()), ( ContextKeyExpr.equals("config.notebook.navigation.allowNavigateToSurroundingCells", true)), ( ContextKeyExpr.and(( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo("top")), ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo("none")), ( ContextKeyExpr.or(( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo("end")), ( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo("both")))))), ( EditorContextKeys.isEmbeddedDiffEditor.negate()))),
|
|
62
62
|
primary: KeyCode.DownArrow,
|
|
@@ -110,7 +110,7 @@ registerAction2(class FocusPreviousCellAction extends NotebookCellAction {
|
|
|
110
110
|
constructor() {
|
|
111
111
|
super({
|
|
112
112
|
id: NOTEBOOK_FOCUS_PREVIOUS_EDITOR,
|
|
113
|
-
title: ( localize(
|
|
113
|
+
title: ( localize(14425, "Focus Previous Cell Editor")),
|
|
114
114
|
keybinding: [{
|
|
115
115
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()), ( ContextKeyExpr.equals("config.notebook.navigation.allowNavigateToSurroundingCells", true)), ( ContextKeyExpr.and(( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo("bottom")), ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo("none")), ( ContextKeyExpr.or(( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo("start")), ( NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY.isEqualTo("both")))))), ( EditorContextKeys.isEmbeddedDiffEditor.negate()))),
|
|
116
116
|
primary: KeyCode.UpArrow,
|
|
@@ -155,7 +155,7 @@ registerAction2(class extends NotebookAction {
|
|
|
155
155
|
constructor() {
|
|
156
156
|
super({
|
|
157
157
|
id: NOTEBOOK_FOCUS_TOP,
|
|
158
|
-
title: ( localize(
|
|
158
|
+
title: ( localize(14426, "Focus First Cell")),
|
|
159
159
|
keybinding: [{
|
|
160
160
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
161
161
|
primary: KeyMod.CtrlCmd | KeyCode.Home,
|
|
@@ -182,7 +182,7 @@ registerAction2(class extends NotebookAction {
|
|
|
182
182
|
constructor() {
|
|
183
183
|
super({
|
|
184
184
|
id: NOTEBOOK_FOCUS_BOTTOM,
|
|
185
|
-
title: ( localize(
|
|
185
|
+
title: ( localize(14427, "Focus Last Cell")),
|
|
186
186
|
keybinding: [{
|
|
187
187
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
188
188
|
primary: KeyMod.CtrlCmd | KeyCode.End,
|
|
@@ -214,7 +214,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
214
214
|
constructor() {
|
|
215
215
|
super({
|
|
216
216
|
id: FOCUS_IN_OUTPUT_COMMAND_ID,
|
|
217
|
-
title: ( localize2(
|
|
217
|
+
title: ( localize2(14428, "Focus In Active Cell Output")),
|
|
218
218
|
f1: true,
|
|
219
219
|
keybinding: [{
|
|
220
220
|
when: ( ContextKeyExpr.and(( IS_COMPOSITE_NOTEBOOK.negate()), IsWindowsContext, NOTEBOOK_CELL_HAS_OUTPUTS)),
|
|
@@ -240,7 +240,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
240
240
|
constructor() {
|
|
241
241
|
super({
|
|
242
242
|
id: FOCUS_OUT_OUTPUT_COMMAND_ID,
|
|
243
|
-
title: ( localize(
|
|
243
|
+
title: ( localize(14429, "Focus Out Active Cell Output")),
|
|
244
244
|
keybinding: {
|
|
245
245
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.UpArrow,
|
|
246
246
|
mac: {
|
|
@@ -261,7 +261,7 @@ registerAction2(class CenterActiveCellAction extends NotebookCellAction {
|
|
|
261
261
|
constructor() {
|
|
262
262
|
super({
|
|
263
263
|
id: CENTER_ACTIVE_CELL,
|
|
264
|
-
title: ( localize(
|
|
264
|
+
title: ( localize(14430, "Center Active Cell")),
|
|
265
265
|
keybinding: {
|
|
266
266
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
267
267
|
primary: KeyMod.CtrlCmd | KeyCode.KeyL,
|
|
@@ -280,7 +280,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
280
280
|
constructor() {
|
|
281
281
|
super({
|
|
282
282
|
id: NOTEBOOK_CURSOR_PAGEUP_COMMAND_ID,
|
|
283
|
-
title: ( localize(
|
|
283
|
+
title: ( localize(14431, "Cell Cursor Page Up")),
|
|
284
284
|
keybinding: [{
|
|
285
285
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus)),
|
|
286
286
|
primary: KeyCode.PageUp,
|
|
@@ -298,7 +298,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
298
298
|
constructor() {
|
|
299
299
|
super({
|
|
300
300
|
id: NOTEBOOK_CURSOR_PAGEUP_SELECT_COMMAND_ID,
|
|
301
|
-
title: ( localize(
|
|
301
|
+
title: ( localize(14432, "Cell Cursor Page Up Select")),
|
|
302
302
|
keybinding: [{
|
|
303
303
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_OUTPUT_FOCUSED.negate()))),
|
|
304
304
|
primary: KeyMod.Shift | KeyCode.PageUp,
|
|
@@ -316,7 +316,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
316
316
|
constructor() {
|
|
317
317
|
super({
|
|
318
318
|
id: NOTEBOOK_CURSOR_PAGEDOWN_COMMAND_ID,
|
|
319
|
-
title: ( localize(
|
|
319
|
+
title: ( localize(14433, "Cell Cursor Page Down")),
|
|
320
320
|
keybinding: [{
|
|
321
321
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus)),
|
|
322
322
|
primary: KeyCode.PageDown,
|
|
@@ -334,7 +334,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
334
334
|
constructor() {
|
|
335
335
|
super({
|
|
336
336
|
id: NOTEBOOK_CURSOR_PAGEDOWN_SELECT_COMMAND_ID,
|
|
337
|
-
title: ( localize(
|
|
337
|
+
title: ( localize(14434, "Cell Cursor Page Down Select")),
|
|
338
338
|
keybinding: [{
|
|
339
339
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_OUTPUT_FOCUSED.negate()))),
|
|
340
340
|
primary: KeyMod.Shift | KeyCode.PageDown,
|
|
@@ -363,7 +363,7 @@ function getPageSize(context) {
|
|
|
363
363
|
type: "boolean",
|
|
364
364
|
default: true,
|
|
365
365
|
markdownDescription: ( localize(
|
|
366
|
-
|
|
366
|
+
14435,
|
|
367
367
|
"When enabled cursor can navigate to the next/previous cell when the current cursor in the cell editor is at the first/last line."
|
|
368
368
|
))
|
|
369
369
|
}
|
|
@@ -18,11 +18,11 @@ import { createInlineValueDecoration } from '@codingame/monaco-vscode-api/vscode
|
|
|
18
18
|
import { State } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug';
|
|
19
19
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
20
20
|
import { NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
21
|
-
import { NotebookExecutionType } from '@codingame/monaco-vscode-
|
|
21
|
+
import { NotebookExecutionType } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
22
22
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
23
23
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
24
|
-
import { NotebookAction } from '@codingame/monaco-vscode-
|
|
25
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
24
|
+
import { NotebookAction } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
25
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
26
26
|
|
|
27
27
|
var NotebookInlineVariablesController_1;
|
|
28
28
|
class InlineSegment {
|
|
@@ -511,7 +511,7 @@ registerAction2(class ClearNotebookInlineValues extends NotebookAction {
|
|
|
511
511
|
constructor() {
|
|
512
512
|
super({
|
|
513
513
|
id: "notebook.clearAllInlineValues",
|
|
514
|
-
title: ( localize(
|
|
514
|
+
title: ( localize(14436, "Clear All Inline Values"))
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
runWithContext(accessor, context) {
|
|
@@ -12,7 +12,7 @@ import { VIEWLET_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/con
|
|
|
12
12
|
import { NOTEBOOK_VARIABLE_VIEW_ENABLED } from './notebookVariableContextKeys.js';
|
|
13
13
|
import { NotebookVariablesView } from './notebookVariablesView.js';
|
|
14
14
|
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
15
|
-
import { variablesViewIcon } from '@codingame/monaco-vscode-
|
|
15
|
+
import { variablesViewIcon } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
16
16
|
import { NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
17
17
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
18
18
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
@@ -71,7 +71,7 @@ let NotebookVariables = class NotebookVariables extends Disposable {
|
|
|
71
71
|
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
72
72
|
const viewDescriptor = {
|
|
73
73
|
id: "workbench.notebook.variables",
|
|
74
|
-
name: ( localize2(
|
|
74
|
+
name: ( localize2(14439, "Notebook Variables")),
|
|
75
75
|
containerIcon: variablesViewIcon,
|
|
76
76
|
ctorDescriptor: ( new SyncDescriptor(NotebookVariablesView)),
|
|
77
77
|
order: 50,
|
|
@@ -79,7 +79,7 @@ class NotebookVariableDataSource {
|
|
|
79
79
|
notebook: parent.notebook,
|
|
80
80
|
id: parent.id + `${last + 1}`,
|
|
81
81
|
extHostId: parent.extHostId,
|
|
82
|
-
name: ( localize(
|
|
82
|
+
name: ( localize(14440, "Display limit reached")),
|
|
83
83
|
value: "",
|
|
84
84
|
indexedChildrenCount: 0,
|
|
85
85
|
hasNamedChildren: false
|
|
@@ -12,8 +12,8 @@ import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/com
|
|
|
12
12
|
var NotebookVariableRenderer_1;
|
|
13
13
|
const $ = $$1;
|
|
14
14
|
const MAX_VALUE_RENDER_LENGTH_IN_VIEWLET = 1024;
|
|
15
|
-
const NOTEBOOK_TITLE = ( localize2(
|
|
16
|
-
const REPL_TITLE = ( localize2(
|
|
15
|
+
const NOTEBOOK_TITLE = ( localize2(14441, "Notebook Variables"));
|
|
16
|
+
const REPL_TITLE = ( localize2(14442, "REPL Variables"));
|
|
17
17
|
class NotebookVariablesDelegate {
|
|
18
18
|
getHeight(element) {
|
|
19
19
|
return 22;
|
|
@@ -76,7 +76,7 @@ class NotebookVariableAccessibilityProvider {
|
|
|
76
76
|
this._widgetAriaLabel.set(label, undefined);
|
|
77
77
|
}
|
|
78
78
|
getAriaLabel(element) {
|
|
79
|
-
return localize(
|
|
79
|
+
return localize(14443, "Variable {0}, value {1}", element.name, element.value);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
8
8
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
9
9
|
import { IEditorPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
10
10
|
import { CellFoldingState, INotebookEditorPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
11
|
-
import { NotebookEditor } from "@codingame/monaco-vscode-
|
|
11
|
+
import { NotebookEditor } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditor";
|
|
12
12
|
import { INotebookCellOutlineDataSource } from "../../viewModel/notebookOutlineDataSource.js";
|
|
13
13
|
import { CellKind } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
14
14
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
@@ -28,7 +28,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/sear
|
|
|
28
28
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
29
29
|
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
30
30
|
import { CellFoldingState, CellRevealType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
31
|
-
import { NotebookEditor } from '@codingame/monaco-vscode-
|
|
31
|
+
import { NotebookEditor } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditor';
|
|
32
32
|
import { CellKind, NotebookSetting, NotebookCellsChangeType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
33
33
|
import { SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
34
34
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -49,7 +49,7 @@ import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codi
|
|
|
49
49
|
import { NOTEBOOK_IS_ACTIVE_EDITOR } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
50
50
|
import { NotebookOutlineConstants } from '../../viewModel/notebookOutlineEntryFactory.js';
|
|
51
51
|
import { INotebookCellOutlineDataSourceFactory } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service';
|
|
52
|
-
import { NotebookExecutionType } from '@codingame/monaco-vscode-
|
|
52
|
+
import { NotebookExecutionType } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
53
53
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
54
54
|
import { ILanguageFeaturesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures.service';
|
|
55
55
|
import { safeIntl } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
|
|
@@ -775,33 +775,33 @@ const NotebookOutlineContext = {
|
|
|
775
775
|
type: "boolean",
|
|
776
776
|
default: true,
|
|
777
777
|
markdownDescription: ( localize(
|
|
778
|
-
|
|
778
|
+
14444,
|
|
779
779
|
"When enabled, notebook outline will show only markdown cells containing a header."
|
|
780
780
|
))
|
|
781
781
|
},
|
|
782
782
|
[NotebookSetting.outlineShowCodeCells]: {
|
|
783
783
|
type: "boolean",
|
|
784
784
|
default: false,
|
|
785
|
-
markdownDescription: ( localize(
|
|
785
|
+
markdownDescription: ( localize(14445, "When enabled, notebook outline shows code cells."))
|
|
786
786
|
},
|
|
787
787
|
[NotebookSetting.outlineShowCodeCellSymbols]: {
|
|
788
788
|
type: "boolean",
|
|
789
789
|
default: true,
|
|
790
790
|
markdownDescription: ( localize(
|
|
791
|
-
|
|
791
|
+
14446,
|
|
792
792
|
"When enabled, notebook outline shows code cell symbols. Relies on `#notebook.outline.showCodeCells#` being enabled."
|
|
793
793
|
))
|
|
794
794
|
},
|
|
795
795
|
[NotebookSetting.breadcrumbsShowCodeCells]: {
|
|
796
796
|
type: "boolean",
|
|
797
797
|
default: true,
|
|
798
|
-
markdownDescription: ( localize(
|
|
798
|
+
markdownDescription: ( localize(14447, "When enabled, notebook breadcrumbs contain code cells."))
|
|
799
799
|
},
|
|
800
800
|
[NotebookSetting.gotoSymbolsAllSymbols]: {
|
|
801
801
|
type: "boolean",
|
|
802
802
|
default: true,
|
|
803
803
|
markdownDescription: ( localize(
|
|
804
|
-
|
|
804
|
+
14448,
|
|
805
805
|
"When enabled, the Go to Symbol Quick Pick will display full code symbols from the notebook, as well as Markdown headers."
|
|
806
806
|
))
|
|
807
807
|
}
|
|
@@ -809,7 +809,7 @@ const NotebookOutlineContext = {
|
|
|
809
809
|
});
|
|
810
810
|
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
811
811
|
submenu: MenuId.NotebookOutlineFilter,
|
|
812
|
-
title: ( localize(
|
|
812
|
+
title: ( localize(14449, "Filter Entries")),
|
|
813
813
|
icon: Codicon.filter,
|
|
814
814
|
group: "navigation",
|
|
815
815
|
order: -1,
|
|
@@ -819,7 +819,7 @@ registerAction2(class ToggleShowMarkdownHeadersOnly extends Action2 {
|
|
|
819
819
|
constructor() {
|
|
820
820
|
super({
|
|
821
821
|
id: "notebook.outline.toggleShowMarkdownHeadersOnly",
|
|
822
|
-
title: ( localize(
|
|
822
|
+
title: ( localize(14450, "Markdown Headers Only")),
|
|
823
823
|
f1: false,
|
|
824
824
|
toggled: {
|
|
825
825
|
condition: ( ContextKeyExpr.equals("config.notebook.outline.showMarkdownHeadersOnly", true))
|
|
@@ -840,7 +840,7 @@ registerAction2(class ToggleCodeCellEntries extends Action2 {
|
|
|
840
840
|
constructor() {
|
|
841
841
|
super({
|
|
842
842
|
id: "notebook.outline.toggleCodeCells",
|
|
843
|
-
title: ( localize(
|
|
843
|
+
title: ( localize(14451, "Code Cells")),
|
|
844
844
|
f1: false,
|
|
845
845
|
toggled: {
|
|
846
846
|
condition: ( ContextKeyExpr.equals("config.notebook.outline.showCodeCells", true))
|
|
@@ -862,7 +862,7 @@ registerAction2(class ToggleCodeCellSymbolEntries extends Action2 {
|
|
|
862
862
|
constructor() {
|
|
863
863
|
super({
|
|
864
864
|
id: "notebook.outline.toggleCodeCellSymbols",
|
|
865
|
-
title: ( localize(
|
|
865
|
+
title: ( localize(14452, "Code Cell Symbols")),
|
|
866
866
|
f1: false,
|
|
867
867
|
toggled: {
|
|
868
868
|
condition: ( ContextKeyExpr.equals("config.notebook.outline.showCodeCellSymbols", true))
|