@codingame/monaco-vscode-notebook-service-override 16.1.1 → 17.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/index.js +2 -2
- package/package.json +26 -24
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.d.ts +7 -24
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +88 -166
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +10 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +9 -9
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +2 -2
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +10 -10
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.d.ts +4 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +11 -26
- 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/execute/executionEditorProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +7 -7
- 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 +4 -4
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +12 -12
- 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 +18 -18
- 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 +4 -4
- 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.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +34 -34
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +23 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +31 -31
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +30 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +28 -28
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +111 -84
- 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 +89 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +292 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +93 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +4 -4
- 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 +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 +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
|
@@ -10,15 +10,15 @@ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
10
10
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
11
|
import { EditorsOrder } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
12
12
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
13
|
-
import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-
|
|
14
|
-
import { insertCell } from '@codingame/monaco-vscode-
|
|
15
|
-
import { NotebookChatController } from '@codingame/monaco-vscode-
|
|
16
|
-
import { NotebookAction, getContextFromUri, getContextFromActiveEditor, NotebookMultiCellAction, cellExecutionArgs, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, parseMultiCellExecutionArgs, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, NotebookCellAction } from '@codingame/monaco-vscode-
|
|
17
|
-
import { CellEditState, EXECUTE_CELL_COMMAND_ID, ScrollToRevealBehavior, CellFocusMode } from '@codingame/monaco-vscode-
|
|
18
|
-
import { executeAllIcon, executeIcon, executeAboveIcon, executeBelowIcon, stopIcon, executingStateIcon, errorStateIcon } from '@codingame/monaco-vscode-
|
|
13
|
+
import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
14
|
+
import { insertCell } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
15
|
+
import { NotebookChatController } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController';
|
|
16
|
+
import { NotebookAction, getContextFromUri, getContextFromActiveEditor, NotebookMultiCellAction, cellExecutionArgs, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, parseMultiCellExecutionArgs, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, NotebookCellAction } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
17
|
+
import { CellEditState, EXECUTE_CELL_COMMAND_ID, ScrollToRevealBehavior, CellFocusMode } from '@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
18
|
+
import { executeAllIcon, executeIcon, executeAboveIcon, executeBelowIcon, stopIcon, executingStateIcon, errorStateIcon } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
19
19
|
import { CellKind, NotebookSetting, CellUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
20
|
-
import { NOTEBOOK_CELL_TYPE, NOTEBOOK_KERNEL_COUNT, NOTEBOOK_KERNEL_SOURCE_COUNT, NOTEBOOK_MISSING_KERNEL_EXTENSION, NOTEBOOK_CELL_EXECUTING, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_INTERRUPTIBLE_KERNEL, NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_EXECUTION_STATE, NOTEBOOK_HAS_RUNNING_CELL, NOTEBOOK_LAST_CELL_FAILED } from '@codingame/monaco-vscode-
|
|
21
|
-
import { NotebookEditorInput } from '@codingame/monaco-vscode-
|
|
20
|
+
import { NOTEBOOK_CELL_TYPE, NOTEBOOK_KERNEL_COUNT, NOTEBOOK_KERNEL_SOURCE_COUNT, NOTEBOOK_MISSING_KERNEL_EXTENSION, NOTEBOOK_CELL_EXECUTING, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_INTERRUPTIBLE_KERNEL, NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_EXECUTION_STATE, NOTEBOOK_HAS_RUNNING_CELL, NOTEBOOK_LAST_CELL_FAILED } from '@codingame/monaco-vscode-51fed910-d648-5620-9b80-9232cd79d116-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
21
|
+
import { NotebookEditorInput } from '@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
22
22
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
23
23
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
24
24
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -88,7 +88,7 @@ registerAction2(class RenderAllMarkdownCellsAction extends NotebookAction {
|
|
|
88
88
|
constructor() {
|
|
89
89
|
super({
|
|
90
90
|
id: RENDER_ALL_MARKDOWN_CELLS,
|
|
91
|
-
title: ( localize(
|
|
91
|
+
title: ( localize(8106, "Render All Markdown Cells")),
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
async runWithContext(accessor, context) {
|
|
@@ -99,10 +99,10 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
|
|
|
99
99
|
constructor() {
|
|
100
100
|
super({
|
|
101
101
|
id: EXECUTE_NOTEBOOK_COMMAND_ID,
|
|
102
|
-
title: ( localize(
|
|
102
|
+
title: ( localize(8107, "Run All")),
|
|
103
103
|
icon: executeAllIcon,
|
|
104
104
|
metadata: {
|
|
105
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(8107, "Run All")),
|
|
106
106
|
args: [
|
|
107
107
|
{
|
|
108
108
|
name: 'uri',
|
|
@@ -146,7 +146,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
146
146
|
super({
|
|
147
147
|
id: EXECUTE_CELL_COMMAND_ID,
|
|
148
148
|
precondition: executeThisCellCondition,
|
|
149
|
-
title: ( localize(
|
|
149
|
+
title: ( localize(8108, "Execute Cell")),
|
|
150
150
|
keybinding: {
|
|
151
151
|
when: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
152
152
|
primary: KeyMod.WinCtrl | KeyCode.Enter,
|
|
@@ -161,7 +161,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
161
161
|
group: 'inline'
|
|
162
162
|
},
|
|
163
163
|
metadata: {
|
|
164
|
-
description: ( localize(
|
|
164
|
+
description: ( localize(8108, "Execute Cell")),
|
|
165
165
|
args: cellExecutionArgs
|
|
166
166
|
},
|
|
167
167
|
icon: executeIcon
|
|
@@ -195,7 +195,7 @@ registerAction2(class ExecuteAboveCells extends NotebookMultiCellAction {
|
|
|
195
195
|
super({
|
|
196
196
|
id: EXECUTE_CELLS_ABOVE,
|
|
197
197
|
precondition: executeCondition,
|
|
198
|
-
title: ( localize(
|
|
198
|
+
title: ( localize(8109, "Execute Above Cells")),
|
|
199
199
|
menu: [
|
|
200
200
|
{
|
|
201
201
|
id: MenuId.NotebookCellExecute,
|
|
@@ -235,7 +235,7 @@ registerAction2(class ExecuteCellAndBelow extends NotebookMultiCellAction {
|
|
|
235
235
|
super({
|
|
236
236
|
id: EXECUTE_CELL_AND_BELOW,
|
|
237
237
|
precondition: executeCondition,
|
|
238
|
-
title: ( localize(
|
|
238
|
+
title: ( localize(8110, "Execute Cell and Below")),
|
|
239
239
|
menu: [
|
|
240
240
|
{
|
|
241
241
|
id: MenuId.NotebookCellExecute,
|
|
@@ -275,9 +275,9 @@ registerAction2(class ExecuteCellFocusContainer extends NotebookMultiCellAction
|
|
|
275
275
|
super({
|
|
276
276
|
id: EXECUTE_CELL_FOCUS_CONTAINER_COMMAND_ID,
|
|
277
277
|
precondition: executeThisCellCondition,
|
|
278
|
-
title: ( localize(
|
|
278
|
+
title: ( localize(8111, "Execute Cell and Focus Container")),
|
|
279
279
|
metadata: {
|
|
280
|
-
description: ( localize(
|
|
280
|
+
description: ( localize(8111, "Execute Cell and Focus Container")),
|
|
281
281
|
args: cellExecutionArgs
|
|
282
282
|
},
|
|
283
283
|
icon: executeIcon
|
|
@@ -306,7 +306,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
306
306
|
super({
|
|
307
307
|
id: CANCEL_CELL_COMMAND_ID,
|
|
308
308
|
precondition: cellCancelCondition,
|
|
309
|
-
title: ( localize(
|
|
309
|
+
title: ( localize(8112, "Stop Cell Execution")),
|
|
310
310
|
icon: stopIcon,
|
|
311
311
|
menu: {
|
|
312
312
|
id: MenuId.NotebookCellExecutePrimary,
|
|
@@ -314,7 +314,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
314
314
|
group: 'inline'
|
|
315
315
|
},
|
|
316
316
|
metadata: {
|
|
317
|
-
description: ( localize(
|
|
317
|
+
description: ( localize(8112, "Stop Cell Execution")),
|
|
318
318
|
args: [
|
|
319
319
|
{
|
|
320
320
|
name: 'options',
|
|
@@ -369,7 +369,7 @@ registerAction2(class ExecuteCellSelectBelow extends NotebookCellAction {
|
|
|
369
369
|
super({
|
|
370
370
|
id: EXECUTE_CELL_SELECT_BELOW,
|
|
371
371
|
precondition: ( ContextKeyExpr.or(executeThisCellCondition, ( NOTEBOOK_CELL_TYPE.isEqualTo('markup')))),
|
|
372
|
-
title: ( localize(
|
|
372
|
+
title: ( localize(8113, "Execute Notebook Cell and Select Below")),
|
|
373
373
|
keybinding: {
|
|
374
374
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( CTX_INLINE_CHAT_FOCUSED.negate()))),
|
|
375
375
|
primary: KeyMod.Shift | KeyCode.Enter,
|
|
@@ -429,7 +429,7 @@ registerAction2(class ExecuteCellInsertBelow extends NotebookCellAction {
|
|
|
429
429
|
super({
|
|
430
430
|
id: EXECUTE_CELL_INSERT_BELOW,
|
|
431
431
|
precondition: ( ContextKeyExpr.or(executeThisCellCondition, ( NOTEBOOK_CELL_TYPE.isEqualTo('markup')))),
|
|
432
|
-
title: ( localize(
|
|
432
|
+
title: ( localize(8114, "Execute Notebook Cell and Insert Below")),
|
|
433
433
|
keybinding: {
|
|
434
434
|
when: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
435
435
|
primary: KeyMod.Alt | KeyCode.Enter,
|
|
@@ -466,7 +466,7 @@ registerAction2(class CancelAllNotebook extends CancelNotebook {
|
|
|
466
466
|
constructor() {
|
|
467
467
|
super({
|
|
468
468
|
id: CANCEL_NOTEBOOK_COMMAND_ID,
|
|
469
|
-
title: ( localize2(
|
|
469
|
+
title: ( localize2(8115, "Stop Execution")),
|
|
470
470
|
icon: stopIcon,
|
|
471
471
|
menu: [
|
|
472
472
|
{
|
|
@@ -489,7 +489,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
489
489
|
constructor() {
|
|
490
490
|
super({
|
|
491
491
|
id: INTERRUPT_NOTEBOOK_COMMAND_ID,
|
|
492
|
-
title: ( localize2(
|
|
492
|
+
title: ( localize2(8116, "Interrupt")),
|
|
493
493
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL)),
|
|
494
494
|
icon: stopIcon,
|
|
495
495
|
menu: [
|
|
@@ -523,7 +523,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
523
523
|
}
|
|
524
524
|
});
|
|
525
525
|
MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
526
|
-
title: ( localize(
|
|
526
|
+
title: ( localize(8117, "Go To")),
|
|
527
527
|
submenu: MenuId.NotebookCellExecuteGoTo,
|
|
528
528
|
group: 'navigation/execute',
|
|
529
529
|
order: 20,
|
|
@@ -533,9 +533,9 @@ registerAction2(class RevealRunningCellAction extends NotebookAction {
|
|
|
533
533
|
constructor() {
|
|
534
534
|
super({
|
|
535
535
|
id: REVEAL_RUNNING_CELL,
|
|
536
|
-
title: ( localize(
|
|
537
|
-
tooltip: ( localize(
|
|
538
|
-
shortTitle: ( localize(
|
|
536
|
+
title: ( localize(8118, "Go to Running Cell")),
|
|
537
|
+
tooltip: ( localize(8118, "Go to Running Cell")),
|
|
538
|
+
shortTitle: ( localize(8118, "Go to Running Cell")),
|
|
539
539
|
precondition: NOTEBOOK_HAS_RUNNING_CELL,
|
|
540
540
|
menu: [
|
|
541
541
|
{
|
|
@@ -593,9 +593,9 @@ registerAction2(class RevealLastFailedCellAction extends NotebookAction {
|
|
|
593
593
|
constructor() {
|
|
594
594
|
super({
|
|
595
595
|
id: REVEAL_LAST_FAILED_CELL,
|
|
596
|
-
title: ( localize(
|
|
597
|
-
tooltip: ( localize(
|
|
598
|
-
shortTitle: ( localize(
|
|
596
|
+
title: ( localize(8119, "Go to Most Recently Failed Cell")),
|
|
597
|
+
tooltip: ( localize(8119, "Go to Most Recently Failed Cell")),
|
|
598
|
+
shortTitle: ( localize(8120, "Go to Most Recently Failed Cell")),
|
|
599
599
|
precondition: NOTEBOOK_LAST_CELL_FAILED,
|
|
600
600
|
menu: [
|
|
601
601
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IAction2Options } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
2
2
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
-
import { INotebookActionContext, NotebookAction } from "@codingame/monaco-vscode-
|
|
4
|
-
import { CellViewModel } from "@codingame/monaco-vscode-
|
|
3
|
+
import { INotebookActionContext, NotebookAction } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions";
|
|
4
|
+
import { CellViewModel } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl";
|
|
5
5
|
import { CellKind } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
6
6
|
export declare function insertNewCell(accessor: ServicesAccessor, context: INotebookActionContext, kind: CellKind, direction: "above" | "below", focusEditor: boolean): CellViewModel | null;
|
|
7
7
|
export declare abstract class InsertCellCommand extends NotebookAction {
|
|
@@ -7,11 +7,11 @@ import { registerAction2, MenuId, MenuRegistry } from '@codingame/monaco-vscode-
|
|
|
7
7
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
8
8
|
import { InputFocusedContext } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
9
9
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
10
|
-
import { insertCell } from '@codingame/monaco-vscode-
|
|
11
|
-
import { NotebookAction } from '@codingame/monaco-vscode-
|
|
12
|
-
import { NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_EDITOR_EDITABLE } from '@codingame/monaco-vscode-
|
|
10
|
+
import { insertCell } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
11
|
+
import { NotebookAction } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
12
|
+
import { NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_EDITOR_EDITABLE } from '@codingame/monaco-vscode-51fed910-d648-5620-9b80-9232cd79d116-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
13
13
|
import { CellKind, NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
14
|
-
import { CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION } from '@codingame/monaco-vscode-
|
|
14
|
+
import { CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
|
|
15
15
|
import { INotebookKernelHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
16
16
|
|
|
17
17
|
const INSERT_CODE_CELL_ABOVE_COMMAND_ID = 'notebook.cell.insertCodeCellAbove';
|
|
@@ -58,7 +58,7 @@ registerAction2(class InsertCodeCellAboveAction extends InsertCellCommand {
|
|
|
58
58
|
constructor() {
|
|
59
59
|
super({
|
|
60
60
|
id: INSERT_CODE_CELL_ABOVE_COMMAND_ID,
|
|
61
|
-
title: ( localize(
|
|
61
|
+
title: ( localize(8123, "Insert Code Cell Above")),
|
|
62
62
|
keybinding: {
|
|
63
63
|
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Enter,
|
|
64
64
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated()))),
|
|
@@ -75,7 +75,7 @@ registerAction2(class InsertCodeCellAboveAndFocusContainerAction extends InsertC
|
|
|
75
75
|
constructor() {
|
|
76
76
|
super({
|
|
77
77
|
id: INSERT_CODE_CELL_ABOVE_AND_FOCUS_CONTAINER_COMMAND_ID,
|
|
78
|
-
title: ( localize(
|
|
78
|
+
title: ( localize(8124, "Insert Code Cell Above and Focus Container"))
|
|
79
79
|
}, CellKind.Code, 'above', false);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
@@ -83,7 +83,7 @@ registerAction2(class InsertCodeCellBelowAction extends InsertCellCommand {
|
|
|
83
83
|
constructor() {
|
|
84
84
|
super({
|
|
85
85
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
86
|
-
title: ( localize(
|
|
86
|
+
title: ( localize(8125, "Insert Code Cell Below")),
|
|
87
87
|
keybinding: {
|
|
88
88
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
89
89
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated()), ( CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION.isEqualTo('')))),
|
|
@@ -100,7 +100,7 @@ registerAction2(class InsertCodeCellBelowAndFocusContainerAction extends InsertC
|
|
|
100
100
|
constructor() {
|
|
101
101
|
super({
|
|
102
102
|
id: INSERT_CODE_CELL_BELOW_AND_FOCUS_CONTAINER_COMMAND_ID,
|
|
103
|
-
title: ( localize(
|
|
103
|
+
title: ( localize(8126, "Insert Code Cell Below and Focus Container")),
|
|
104
104
|
}, CellKind.Code, 'below', false);
|
|
105
105
|
}
|
|
106
106
|
});
|
|
@@ -108,7 +108,7 @@ registerAction2(class InsertMarkdownCellAboveAction extends InsertCellCommand {
|
|
|
108
108
|
constructor() {
|
|
109
109
|
super({
|
|
110
110
|
id: INSERT_MARKDOWN_CELL_ABOVE_COMMAND_ID,
|
|
111
|
-
title: ( localize(
|
|
111
|
+
title: ( localize(8127, "Insert Markdown Cell Above")),
|
|
112
112
|
menu: {
|
|
113
113
|
id: MenuId.NotebookCellInsert,
|
|
114
114
|
order: 2
|
|
@@ -120,7 +120,7 @@ registerAction2(class InsertMarkdownCellBelowAction extends InsertCellCommand {
|
|
|
120
120
|
constructor() {
|
|
121
121
|
super({
|
|
122
122
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
123
|
-
title: ( localize(
|
|
123
|
+
title: ( localize(8128, "Insert Markdown Cell Below")),
|
|
124
124
|
menu: {
|
|
125
125
|
id: MenuId.NotebookCellInsert,
|
|
126
126
|
order: 3
|
|
@@ -132,7 +132,7 @@ registerAction2(class InsertCodeCellAtTopAction extends NotebookAction {
|
|
|
132
132
|
constructor() {
|
|
133
133
|
super({
|
|
134
134
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
135
|
-
title: ( localize(
|
|
135
|
+
title: ( localize(8129, "Add Code Cell At Top")),
|
|
136
136
|
f1: false
|
|
137
137
|
});
|
|
138
138
|
}
|
|
@@ -155,7 +155,7 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
155
155
|
constructor() {
|
|
156
156
|
super({
|
|
157
157
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
158
|
-
title: ( localize(
|
|
158
|
+
title: ( localize(8130, "Add Markdown Cell At Top")),
|
|
159
159
|
f1: false
|
|
160
160
|
});
|
|
161
161
|
}
|
|
@@ -177,8 +177,8 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
177
177
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
178
178
|
command: {
|
|
179
179
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
180
|
-
title: '$(add) ' + ( localize(
|
|
181
|
-
tooltip: ( localize(
|
|
180
|
+
title: '$(add) ' + ( localize(8131, "Code")),
|
|
181
|
+
tooltip: ( localize(8132, "Add Code Cell"))
|
|
182
182
|
},
|
|
183
183
|
order: 0,
|
|
184
184
|
group: 'inline',
|
|
@@ -187,9 +187,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
|
187
187
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
188
188
|
command: {
|
|
189
189
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
190
|
-
title: ( localize(
|
|
190
|
+
title: ( localize(8133, "Add Code")),
|
|
191
191
|
icon: Codicon.add,
|
|
192
|
-
tooltip: ( localize(
|
|
192
|
+
tooltip: ( localize(8132, "Add Code Cell"))
|
|
193
193
|
},
|
|
194
194
|
order: 0,
|
|
195
195
|
group: 'inline',
|
|
@@ -199,8 +199,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
199
199
|
command: {
|
|
200
200
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
201
201
|
icon: Codicon.add,
|
|
202
|
-
title: ( localize(
|
|
203
|
-
tooltip: ( localize(
|
|
202
|
+
title: ( localize(8134, "Code")),
|
|
203
|
+
tooltip: ( localize(8132, "Add Code Cell"))
|
|
204
204
|
},
|
|
205
205
|
order: -5,
|
|
206
206
|
group: 'navigation/add',
|
|
@@ -209,8 +209,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
209
209
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
210
210
|
command: {
|
|
211
211
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
212
|
-
title: '$(add) ' + ( localize(
|
|
213
|
-
tooltip: ( localize(
|
|
212
|
+
title: '$(add) ' + ( localize(8131, "Code")),
|
|
213
|
+
tooltip: ( localize(8132, "Add Code Cell"))
|
|
214
214
|
},
|
|
215
215
|
order: 0,
|
|
216
216
|
group: 'inline',
|
|
@@ -219,9 +219,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
219
219
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
220
220
|
command: {
|
|
221
221
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
222
|
-
title: ( localize(
|
|
222
|
+
title: ( localize(8135, "Add Code")),
|
|
223
223
|
icon: Codicon.add,
|
|
224
|
-
tooltip: ( localize(
|
|
224
|
+
tooltip: ( localize(8132, "Add Code Cell"))
|
|
225
225
|
},
|
|
226
226
|
order: 0,
|
|
227
227
|
group: 'inline',
|
|
@@ -230,8 +230,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
230
230
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
231
231
|
command: {
|
|
232
232
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
233
|
-
title: '$(add) ' + ( localize(
|
|
234
|
-
tooltip: ( localize(
|
|
233
|
+
title: '$(add) ' + ( localize(8136, "Markdown")),
|
|
234
|
+
tooltip: ( localize(8137, "Add Markdown Cell"))
|
|
235
235
|
},
|
|
236
236
|
order: 1,
|
|
237
237
|
group: 'inline',
|
|
@@ -241,8 +241,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
241
241
|
command: {
|
|
242
242
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
243
243
|
icon: Codicon.add,
|
|
244
|
-
title: ( localize(
|
|
245
|
-
tooltip: ( localize(
|
|
244
|
+
title: ( localize(8138, "Markdown")),
|
|
245
|
+
tooltip: ( localize(8137, "Add Markdown Cell"))
|
|
246
246
|
},
|
|
247
247
|
order: -5,
|
|
248
248
|
group: 'navigation/add',
|
|
@@ -251,8 +251,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
251
251
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
252
252
|
command: {
|
|
253
253
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
254
|
-
title: '$(add) ' + ( localize(
|
|
255
|
-
tooltip: ( localize(
|
|
254
|
+
title: '$(add) ' + ( localize(8136, "Markdown")),
|
|
255
|
+
tooltip: ( localize(8137, "Add Markdown Cell"))
|
|
256
256
|
},
|
|
257
257
|
order: 1,
|
|
258
258
|
group: 'inline',
|
|
@@ -10,11 +10,11 @@ import { ConfigurationTarget } from '@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
10
10
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
11
11
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
12
12
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
13
|
-
import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-
|
|
14
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
13
|
+
import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
14
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
15
15
|
import { INotebookEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
16
16
|
import { NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
17
|
-
import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_FOCUSED } from '@codingame/monaco-vscode-
|
|
17
|
+
import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_FOCUSED } from '@codingame/monaco-vscode-51fed910-d648-5620-9b80-9232cd79d116-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
18
18
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
19
19
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
20
20
|
import { IPreferencesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service';
|
|
@@ -23,7 +23,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
|
|
|
23
23
|
constructor() {
|
|
24
24
|
super({
|
|
25
25
|
id: 'workbench.notebook.layout.select',
|
|
26
|
-
title: ( localize2(
|
|
26
|
+
title: ( localize2(8139, "Select between Notebook Layouts")),
|
|
27
27
|
f1: true,
|
|
28
28
|
precondition: ( ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true)),
|
|
29
29
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
@@ -51,7 +51,7 @@ registerAction2(class NotebookConfigureLayoutAction extends Action2 {
|
|
|
51
51
|
constructor() {
|
|
52
52
|
super({
|
|
53
53
|
id: 'workbench.notebook.layout.configure',
|
|
54
|
-
title: ( localize2(
|
|
54
|
+
title: ( localize2(8140, "Customize Notebook Layout")),
|
|
55
55
|
f1: true,
|
|
56
56
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
57
57
|
menu: [
|
|
@@ -72,7 +72,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
|
|
|
72
72
|
constructor() {
|
|
73
73
|
super({
|
|
74
74
|
id: 'workbench.notebook.layout.configure.editorTitle',
|
|
75
|
-
title: ( localize2(
|
|
75
|
+
title: ( localize2(8140, "Customize Notebook Layout")),
|
|
76
76
|
f1: false,
|
|
77
77
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
78
78
|
menu: [
|
|
@@ -92,7 +92,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
|
|
|
92
92
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
93
93
|
submenu: MenuId.NotebookEditorLayoutConfigure,
|
|
94
94
|
rememberDefaultAction: false,
|
|
95
|
-
title: ( localize2(
|
|
95
|
+
title: ( localize2(8141, "Customize Notebook...")),
|
|
96
96
|
icon: Codicon.gear,
|
|
97
97
|
group: 'navigation',
|
|
98
98
|
order: -1,
|
|
@@ -102,7 +102,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
102
102
|
constructor() {
|
|
103
103
|
super({
|
|
104
104
|
id: 'notebook.toggleLineNumbersFromEditorTitle',
|
|
105
|
-
title: ( localize2(
|
|
105
|
+
title: ( localize2(8142, 'Toggle Notebook Line Numbers')),
|
|
106
106
|
precondition: NOTEBOOK_EDITOR_FOCUSED,
|
|
107
107
|
menu: [
|
|
108
108
|
{
|
|
@@ -116,7 +116,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
116
116
|
f1: true,
|
|
117
117
|
toggled: {
|
|
118
118
|
condition: ( ContextKeyExpr.notEquals('config.notebook.lineNumbers', 'off')),
|
|
119
|
-
title: ( localize(
|
|
119
|
+
title: ( localize(8143, "Notebook Line Numbers")),
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
}
|
|
@@ -128,7 +128,7 @@ registerAction2(class ToggleCellToolbarPositionFromEditorTitle extends Action2 {
|
|
|
128
128
|
constructor() {
|
|
129
129
|
super({
|
|
130
130
|
id: 'notebook.toggleCellToolbarPositionFromEditorTitle',
|
|
131
|
-
title: ( localize2(
|
|
131
|
+
title: ( localize2(8144, 'Toggle Cell Toolbar Position')),
|
|
132
132
|
menu: [{
|
|
133
133
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
134
134
|
group: 'notebookLayoutDetails',
|
|
@@ -146,7 +146,7 @@ registerAction2(class ToggleBreadcrumbFromEditorTitle extends Action2 {
|
|
|
146
146
|
constructor() {
|
|
147
147
|
super({
|
|
148
148
|
id: 'breadcrumbs.toggleFromEditorTitle',
|
|
149
|
-
title: ( localize2(
|
|
149
|
+
title: ( localize2(8145, 'Toggle Breadcrumbs')),
|
|
150
150
|
menu: [{
|
|
151
151
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
152
152
|
group: 'notebookLayoutDetails',
|
|
@@ -163,7 +163,7 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
163
163
|
constructor() {
|
|
164
164
|
super({
|
|
165
165
|
id: 'notebook.saveMimeTypeOrder',
|
|
166
|
-
title: ( localize2(
|
|
166
|
+
title: ( localize2(8146, "Save Mimetype Display Order")),
|
|
167
167
|
f1: true,
|
|
168
168
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
169
169
|
precondition: NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -173,10 +173,10 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
173
173
|
const service = accessor.get(INotebookService);
|
|
174
174
|
const disposables = ( new DisposableStore());
|
|
175
175
|
const qp = disposables.add(accessor.get(IQuickInputService).createQuickPick());
|
|
176
|
-
qp.placeholder = ( localize(
|
|
176
|
+
qp.placeholder = ( localize(8147, 'Settings file to save in'));
|
|
177
177
|
qp.items = [
|
|
178
|
-
{ target: ConfigurationTarget.USER, label: ( localize(
|
|
179
|
-
{ target: ConfigurationTarget.WORKSPACE, label: ( localize(
|
|
178
|
+
{ target: ConfigurationTarget.USER, label: ( localize(8148, 'User Settings')) },
|
|
179
|
+
{ target: ConfigurationTarget.WORKSPACE, label: ( localize(8149, 'Workspace Settings')) },
|
|
180
180
|
];
|
|
181
181
|
disposables.add(qp.onDidAccept(() => {
|
|
182
182
|
const target = qp.selectedItems[0]?.target;
|
|
@@ -193,7 +193,7 @@ registerAction2(class NotebookWebviewResetAction extends Action2 {
|
|
|
193
193
|
constructor() {
|
|
194
194
|
super({
|
|
195
195
|
id: 'workbench.notebook.layout.webview.reset',
|
|
196
|
-
title: ( localize2(
|
|
196
|
+
title: ( localize2(8150, "Reset Notebook Webview")),
|
|
197
197
|
f1: false,
|
|
198
198
|
category: NOTEBOOK_ACTIONS_CATEGORY
|
|
199
199
|
});
|
|
@@ -224,14 +224,14 @@ registerAction2(class ToggleNotebookStickyScroll extends Action2 {
|
|
|
224
224
|
super({
|
|
225
225
|
id: 'notebook.action.toggleNotebookStickyScroll',
|
|
226
226
|
title: {
|
|
227
|
-
...( localize2(
|
|
228
|
-
mnemonicTitle: ( localize(
|
|
227
|
+
...( localize2(8151, "Toggle Notebook Sticky Scroll")),
|
|
228
|
+
mnemonicTitle: ( localize(8152, "&&Toggle Notebook Sticky Scroll")),
|
|
229
229
|
},
|
|
230
230
|
category: Categories.View,
|
|
231
231
|
toggled: {
|
|
232
232
|
condition: ( ContextKeyExpr.equals('config.notebook.stickyScroll.enabled', true)),
|
|
233
|
-
title: ( localize(
|
|
234
|
-
mnemonicTitle: ( localize(
|
|
233
|
+
title: ( localize(8153, "Toggle Notebook Sticky Scroll")),
|
|
234
|
+
mnemonicTitle: ( localize(8152, "&&Toggle Notebook Sticky Scroll")),
|
|
235
235
|
},
|
|
236
236
|
menu: [
|
|
237
237
|
{ id: MenuId.CommandPalette },
|
package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js
CHANGED
|
@@ -11,7 +11,7 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
11
11
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
12
12
|
import { INotebookEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
13
13
|
import { NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
14
|
-
import { isNotebookEditorInput } from '@codingame/monaco-vscode-
|
|
14
|
+
import { isNotebookEditorInput } from '@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
15
15
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
16
16
|
|
|
17
17
|
class NotebookIndentUsingTabs extends Action2 {
|
|
@@ -19,7 +19,7 @@ class NotebookIndentUsingTabs extends Action2 {
|
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: NotebookIndentUsingTabs.ID,
|
|
22
|
-
title: ( localize(
|
|
22
|
+
title: ( localize(8154, "Indent Using Tabs")),
|
|
23
23
|
precondition: undefined,
|
|
24
24
|
});
|
|
25
25
|
}
|
|
@@ -32,7 +32,7 @@ class NotebookIndentUsingSpaces extends Action2 {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: NotebookIndentUsingSpaces.ID,
|
|
35
|
-
title: ( localize(
|
|
35
|
+
title: ( localize(8155, "Indent Using Spaces")),
|
|
36
36
|
precondition: undefined,
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -45,7 +45,7 @@ class NotebookChangeTabDisplaySize extends Action2 {
|
|
|
45
45
|
constructor() {
|
|
46
46
|
super({
|
|
47
47
|
id: NotebookChangeTabDisplaySize.ID,
|
|
48
|
-
title: ( localize(
|
|
48
|
+
title: ( localize(8156, "Change Tab Display Size")),
|
|
49
49
|
precondition: undefined,
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -58,7 +58,7 @@ class NotebookIndentationToSpacesAction extends Action2 {
|
|
|
58
58
|
constructor() {
|
|
59
59
|
super({
|
|
60
60
|
id: NotebookIndentationToSpacesAction.ID,
|
|
61
|
-
title: ( localize(
|
|
61
|
+
title: ( localize(8157, "Convert Indentation to Spaces")),
|
|
62
62
|
precondition: undefined,
|
|
63
63
|
});
|
|
64
64
|
}
|
|
@@ -71,7 +71,7 @@ class NotebookIndentationToTabsAction extends Action2 {
|
|
|
71
71
|
constructor() {
|
|
72
72
|
super({
|
|
73
73
|
id: NotebookIndentationToTabsAction.ID,
|
|
74
|
-
title: ( localize(
|
|
74
|
+
title: ( localize(8158, "Convert Indentation to Tabs")),
|
|
75
75
|
precondition: undefined,
|
|
76
76
|
});
|
|
77
77
|
}
|
|
@@ -103,7 +103,7 @@ function changeNotebookIndentation(accessor, insertSpaces, displaySizeOnly) {
|
|
|
103
103
|
delete initialConfig['editor.tabSize'];
|
|
104
104
|
delete initialConfig['editor.insertSpaces'];
|
|
105
105
|
setTimeout(() => {
|
|
106
|
-
quickInputService.pick(picks, { placeHolder: ( localize(
|
|
106
|
+
quickInputService.pick(picks, { placeHolder: ( localize(8159, "Select Tab Size for Current File")) }).then(pick => {
|
|
107
107
|
if (pick) {
|
|
108
108
|
const pickedVal = parseInt(pick.label, 10);
|
|
109
109
|
if (displaySizeOnly) {
|
|
@@ -153,7 +153,7 @@ function convertNotebookIndentation(accessor, tabsToSpaces) {
|
|
|
153
153
|
return;
|
|
154
154
|
}
|
|
155
155
|
const edits = getIndentationEditOperations(textEditorModel, modelOpts.tabSize, tabsToSpaces);
|
|
156
|
-
bulkEditService.apply(edits, { label: ( localize(
|
|
156
|
+
bulkEditService.apply(edits, { label: ( localize(8160, "Convert Indentation")), code: 'undoredo.convertIndentation', });
|
|
157
157
|
}))).then(() => {
|
|
158
158
|
const initialConfig = configurationService.getValue(NotebookSetting.cellEditorOptionsCustomizations);
|
|
159
159
|
const initialIndentSize = initialConfig['editor.indentSize'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Action2 } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
2
2
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
-
import { ICellViewModel, INotebookEditor } from "@codingame/monaco-vscode-
|
|
4
|
-
import { OutlineEntry } from "@codingame/monaco-vscode-
|
|
3
|
+
import { ICellViewModel, INotebookEditor } from "@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
|
+
import { OutlineEntry } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry";
|
|
5
5
|
export type NotebookOutlineEntryArgs = {
|
|
6
6
|
notebookEditor: INotebookEditor;
|
|
7
7
|
outlineEntry: OutlineEntry;
|