@codingame/monaco-vscode-notebook-service-override 22.1.8 → 23.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 -1
- package/package.json +25 -23
- 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 +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +8 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +104 -13
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +1 -1
- 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 +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +21 -29
- 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 +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 +9 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -4
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +17 -387
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +16 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +26 -39
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +26 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +18 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +70 -70
- 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 +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +49 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +11 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +4 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +28 -31
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +5 -10
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +2 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +405 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +120 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +15 -15
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +3 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +2 -2
|
@@ -11,7 +11,7 @@ import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
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
13
|
import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
14
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
14
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-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
17
|
import { NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_FOCUSED } from '@codingame/monaco-vscode-eda30bac-0984-5b42-9362-c68996b85232-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
@@ -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(9249, "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(9250, "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(9250, "Customize Notebook Layout")),
|
|
76
76
|
f1: false,
|
|
77
77
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
78
78
|
menu: [
|
|
@@ -91,8 +91,7 @@ registerAction2(class NotebookConfigureLayoutFromEditorTitle extends Action2 {
|
|
|
91
91
|
});
|
|
92
92
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
93
93
|
submenu: MenuId.NotebookEditorLayoutConfigure,
|
|
94
|
-
|
|
95
|
-
title: ( localize2(9013, "Customize Notebook...")),
|
|
94
|
+
title: ( localize2(9251, "Customize Notebook...")),
|
|
96
95
|
icon: Codicon.gear,
|
|
97
96
|
group: 'navigation',
|
|
98
97
|
order: -1,
|
|
@@ -102,7 +101,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
102
101
|
constructor() {
|
|
103
102
|
super({
|
|
104
103
|
id: 'notebook.toggleLineNumbersFromEditorTitle',
|
|
105
|
-
title: ( localize2(
|
|
104
|
+
title: ( localize2(9252, 'Toggle Notebook Line Numbers')),
|
|
106
105
|
precondition: NOTEBOOK_EDITOR_FOCUSED,
|
|
107
106
|
menu: [
|
|
108
107
|
{
|
|
@@ -116,7 +115,7 @@ registerAction2(class ToggleLineNumberFromEditorTitle extends Action2 {
|
|
|
116
115
|
f1: true,
|
|
117
116
|
toggled: {
|
|
118
117
|
condition: ( ContextKeyExpr.notEquals('config.notebook.lineNumbers', 'off')),
|
|
119
|
-
title: ( localize(
|
|
118
|
+
title: ( localize(9253, "Notebook Line Numbers")),
|
|
120
119
|
}
|
|
121
120
|
});
|
|
122
121
|
}
|
|
@@ -128,7 +127,7 @@ registerAction2(class ToggleCellToolbarPositionFromEditorTitle extends Action2 {
|
|
|
128
127
|
constructor() {
|
|
129
128
|
super({
|
|
130
129
|
id: 'notebook.toggleCellToolbarPositionFromEditorTitle',
|
|
131
|
-
title: ( localize2(
|
|
130
|
+
title: ( localize2(9254, 'Toggle Cell Toolbar Position')),
|
|
132
131
|
menu: [{
|
|
133
132
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
134
133
|
group: 'notebookLayoutDetails',
|
|
@@ -146,7 +145,7 @@ registerAction2(class ToggleBreadcrumbFromEditorTitle extends Action2 {
|
|
|
146
145
|
constructor() {
|
|
147
146
|
super({
|
|
148
147
|
id: 'breadcrumbs.toggleFromEditorTitle',
|
|
149
|
-
title: ( localize2(
|
|
148
|
+
title: ( localize2(9255, 'Toggle Breadcrumbs')),
|
|
150
149
|
menu: [{
|
|
151
150
|
id: MenuId.NotebookEditorLayoutConfigure,
|
|
152
151
|
group: 'notebookLayoutDetails',
|
|
@@ -163,7 +162,7 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
163
162
|
constructor() {
|
|
164
163
|
super({
|
|
165
164
|
id: 'notebook.saveMimeTypeOrder',
|
|
166
|
-
title: ( localize2(
|
|
165
|
+
title: ( localize2(9256, "Save Mimetype Display Order")),
|
|
167
166
|
f1: true,
|
|
168
167
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
169
168
|
precondition: NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -173,10 +172,10 @@ registerAction2(class SaveMimeTypeDisplayOrder extends Action2 {
|
|
|
173
172
|
const service = accessor.get(INotebookService);
|
|
174
173
|
const disposables = ( new DisposableStore());
|
|
175
174
|
const qp = disposables.add(accessor.get(IQuickInputService).createQuickPick());
|
|
176
|
-
qp.placeholder = ( localize(
|
|
175
|
+
qp.placeholder = ( localize(9257, 'Settings file to save in'));
|
|
177
176
|
qp.items = [
|
|
178
|
-
{ target: ConfigurationTarget.USER, label: ( localize(
|
|
179
|
-
{ target: ConfigurationTarget.WORKSPACE, label: ( localize(
|
|
177
|
+
{ target: ConfigurationTarget.USER, label: ( localize(9258, 'User Settings')) },
|
|
178
|
+
{ target: ConfigurationTarget.WORKSPACE, label: ( localize(9259, 'Workspace Settings')) },
|
|
180
179
|
];
|
|
181
180
|
disposables.add(qp.onDidAccept(() => {
|
|
182
181
|
const target = qp.selectedItems[0]?.target;
|
|
@@ -193,7 +192,7 @@ registerAction2(class NotebookWebviewResetAction extends Action2 {
|
|
|
193
192
|
constructor() {
|
|
194
193
|
super({
|
|
195
194
|
id: 'workbench.notebook.layout.webview.reset',
|
|
196
|
-
title: ( localize2(
|
|
195
|
+
title: ( localize2(9260, "Reset Notebook Webview")),
|
|
197
196
|
f1: false,
|
|
198
197
|
category: NOTEBOOK_ACTIONS_CATEGORY
|
|
199
198
|
});
|
|
@@ -224,14 +223,14 @@ registerAction2(class ToggleNotebookStickyScroll extends Action2 {
|
|
|
224
223
|
super({
|
|
225
224
|
id: 'notebook.action.toggleNotebookStickyScroll',
|
|
226
225
|
title: {
|
|
227
|
-
...( localize2(
|
|
228
|
-
mnemonicTitle: ( localize(
|
|
226
|
+
...( localize2(9261, "Toggle Notebook Sticky Scroll")),
|
|
227
|
+
mnemonicTitle: ( localize(9262, "&&Toggle Notebook Sticky Scroll")),
|
|
229
228
|
},
|
|
230
229
|
category: Categories.View,
|
|
231
230
|
toggled: {
|
|
232
231
|
condition: ( ContextKeyExpr.equals('config.notebook.stickyScroll.enabled', true)),
|
|
233
|
-
title: ( localize(
|
|
234
|
-
mnemonicTitle: ( localize(
|
|
232
|
+
title: ( localize(9263, "Toggle Notebook Sticky Scroll")),
|
|
233
|
+
mnemonicTitle: ( localize(9262, "&&Toggle Notebook Sticky Scroll")),
|
|
235
234
|
},
|
|
236
235
|
menu: [
|
|
237
236
|
{ id: MenuId.CommandPalette },
|
package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.d.ts
CHANGED
|
@@ -3,25 +3,25 @@ import { Action2 } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions
|
|
|
3
3
|
export declare class NotebookIndentUsingTabs extends Action2 {
|
|
4
4
|
static readonly ID = "notebook.action.indentUsingTabs";
|
|
5
5
|
constructor();
|
|
6
|
-
run(accessor: ServicesAccessor, ...args:
|
|
6
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): void;
|
|
7
7
|
}
|
|
8
8
|
export declare class NotebookIndentUsingSpaces extends Action2 {
|
|
9
9
|
static readonly ID = "notebook.action.indentUsingSpaces";
|
|
10
10
|
constructor();
|
|
11
|
-
run(accessor: ServicesAccessor, ...args:
|
|
11
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): void;
|
|
12
12
|
}
|
|
13
13
|
export declare class NotebookChangeTabDisplaySize extends Action2 {
|
|
14
14
|
static readonly ID = "notebook.action.changeTabDisplaySize";
|
|
15
15
|
constructor();
|
|
16
|
-
run(accessor: ServicesAccessor, ...args:
|
|
16
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): void;
|
|
17
17
|
}
|
|
18
18
|
export declare class NotebookIndentationToSpacesAction extends Action2 {
|
|
19
19
|
static readonly ID = "notebook.action.convertIndentationToSpaces";
|
|
20
20
|
constructor();
|
|
21
|
-
run(accessor: ServicesAccessor, ...args:
|
|
21
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): void;
|
|
22
22
|
}
|
|
23
23
|
export declare class NotebookIndentationToTabsAction extends Action2 {
|
|
24
24
|
static readonly ID = "notebook.action.convertIndentationToTabs";
|
|
25
25
|
constructor();
|
|
26
|
-
run(accessor: ServicesAccessor, ...args:
|
|
26
|
+
run(accessor: ServicesAccessor, ...args: unknown[]): void;
|
|
27
27
|
}
|
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-9d2c06d1-1f89-51a5-9964-aa01fe50c198-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(9264, "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(9265, "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(9266, "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(9267, "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(9268, "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(9269, "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(9270, "Convert Indentation")), code: 'undoredo.convertIndentation', });
|
|
157
157
|
}))).then(() => {
|
|
158
158
|
const initialConfig = configurationService.getValue(NotebookSetting.cellEditorOptionsCustomizations);
|
|
159
159
|
const initialIndentSize = initialConfig['editor.indentSize'];
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
+
import { ICellViewModel, INotebookEditor } from "@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
4
|
import { OutlineEntry } from "../viewModel/OutlineEntry.js";
|
|
5
5
|
export type NotebookOutlineEntryArgs = {
|
|
6
6
|
notebookEditor: INotebookEditor;
|
|
@@ -4,10 +4,10 @@ import { Action2, MenuId, registerAction2 } from '@codingame/monaco-vscode-api/v
|
|
|
4
4
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
5
5
|
import { NotebookOutlineContext } from '../contrib/outline/notebookOutline.js';
|
|
6
6
|
import { FoldingController } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/foldingController';
|
|
7
|
-
import { CellEditState, CellFoldingState } from '@codingame/monaco-vscode-
|
|
7
|
+
import { CellEditState, CellFoldingState } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
8
8
|
import { executeIcon } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
9
9
|
import { CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
10
|
-
import { OutlineTarget } from '@codingame/monaco-vscode-
|
|
10
|
+
import { OutlineTarget } from '@codingame/monaco-vscode-a6a3e03d-2b1a-5e17-b904-ed5d40c14550-common/vscode/vs/workbench/services/outline/browser/outline';
|
|
11
11
|
import { CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
12
12
|
import { executeSectionCondition } from './executeActions.js';
|
|
13
13
|
|
|
@@ -16,10 +16,10 @@ class NotebookRunSingleCellInSection extends Action2 {
|
|
|
16
16
|
super({
|
|
17
17
|
id: 'notebook.section.runSingleCell',
|
|
18
18
|
title: {
|
|
19
|
-
...( localize2(
|
|
20
|
-
mnemonicTitle: ( localize(
|
|
19
|
+
...( localize2(9271, "Run Cell")),
|
|
20
|
+
mnemonicTitle: ( localize(9272, "&&Run Cell")),
|
|
21
21
|
},
|
|
22
|
-
shortTitle: ( localize(
|
|
22
|
+
shortTitle: ( localize(9271, "Run Cell")),
|
|
23
23
|
icon: executeIcon,
|
|
24
24
|
menu: [
|
|
25
25
|
{
|
|
@@ -43,10 +43,10 @@ class NotebookRunCellsInSection extends Action2 {
|
|
|
43
43
|
super({
|
|
44
44
|
id: 'notebook.section.runCells',
|
|
45
45
|
title: {
|
|
46
|
-
...( localize2(
|
|
47
|
-
mnemonicTitle: ( localize(
|
|
46
|
+
...( localize2(9273, "Run Cells In Section")),
|
|
47
|
+
mnemonicTitle: ( localize(9274, "&&Run Cells In Section")),
|
|
48
48
|
},
|
|
49
|
-
shortTitle: ( localize(
|
|
49
|
+
shortTitle: ( localize(9273, "Run Cells In Section")),
|
|
50
50
|
icon: executeIcon,
|
|
51
51
|
menu: [
|
|
52
52
|
{
|
|
@@ -105,10 +105,10 @@ class NotebookFoldSection extends Action2 {
|
|
|
105
105
|
super({
|
|
106
106
|
id: 'notebook.section.foldSection',
|
|
107
107
|
title: {
|
|
108
|
-
...( localize2(
|
|
109
|
-
mnemonicTitle: ( localize(
|
|
108
|
+
...( localize2(9275, "Fold Section")),
|
|
109
|
+
mnemonicTitle: ( localize(9276, "&&Fold Section")),
|
|
110
110
|
},
|
|
111
|
-
shortTitle: ( localize(
|
|
111
|
+
shortTitle: ( localize(9275, "Fold Section")),
|
|
112
112
|
menu: [
|
|
113
113
|
{
|
|
114
114
|
id: MenuId.NotebookOutlineActionMenu,
|
|
@@ -138,10 +138,10 @@ class NotebookExpandSection extends Action2 {
|
|
|
138
138
|
super({
|
|
139
139
|
id: 'notebook.section.expandSection',
|
|
140
140
|
title: {
|
|
141
|
-
...( localize2(
|
|
142
|
-
mnemonicTitle: ( localize(
|
|
141
|
+
...( localize2(9277, "Expand Section")),
|
|
142
|
+
mnemonicTitle: ( localize(9278, "&&Expand Section")),
|
|
143
143
|
},
|
|
144
|
-
shortTitle: ( localize(
|
|
144
|
+
shortTitle: ( localize(9277, "Expand Section")),
|
|
145
145
|
menu: [
|
|
146
146
|
{
|
|
147
147
|
id: MenuId.NotebookOutlineActionMenu,
|
|
@@ -13,7 +13,7 @@ registerAction2(class OpenVariablesViewAction extends NotebookAction {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: OPEN_VARIABLES_VIEW_COMMAND_ID,
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(9279, "Variables")),
|
|
17
17
|
icon: variablesViewIcon,
|
|
18
18
|
menu: [
|
|
19
19
|
{
|
|
@@ -29,7 +29,7 @@ registerAction2(class extends Action2 {
|
|
|
29
29
|
super({
|
|
30
30
|
id: 'notebook.diff.openFile',
|
|
31
31
|
icon: Codicon.goToFile,
|
|
32
|
-
title: ( localize2(
|
|
32
|
+
title: ( localize2(9291, 'Open File')),
|
|
33
33
|
precondition: ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))),
|
|
34
34
|
menu: [{
|
|
35
35
|
id: MenuId.EditorTitle,
|
|
@@ -55,7 +55,7 @@ registerAction2(class extends Action2 {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: 'notebook.diff.cell.toggleCollapseUnchangedRegions',
|
|
58
|
-
title: ( localize2(
|
|
58
|
+
title: ( localize2(9292, 'Toggle Collapse Unchanged Regions')),
|
|
59
59
|
icon: Codicon.map,
|
|
60
60
|
toggled: ( ContextKeyExpr.has('config.diffEditor.hideUnchangedRegions.enabled')),
|
|
61
61
|
precondition: ( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)),
|
|
@@ -77,7 +77,7 @@ registerAction2(class extends Action2 {
|
|
|
77
77
|
super({
|
|
78
78
|
id: 'notebook.diff.switchToText',
|
|
79
79
|
icon: openAsTextIcon,
|
|
80
|
-
title: ( localize2(
|
|
80
|
+
title: ( localize2(9293, 'Open Text Diff Editor')),
|
|
81
81
|
precondition: ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))),
|
|
82
82
|
menu: [{
|
|
83
83
|
id: MenuId.EditorTitle,
|
|
@@ -110,7 +110,7 @@ registerAction2(class extends Action2 {
|
|
|
110
110
|
constructor() {
|
|
111
111
|
super({
|
|
112
112
|
id: 'notebook.diffEditor.showUnchangedCells',
|
|
113
|
-
title: ( localize2(
|
|
113
|
+
title: ( localize2(9294, 'Show Unchanged Cells')),
|
|
114
114
|
icon: Codicon.unfold,
|
|
115
115
|
precondition: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)))),
|
|
116
116
|
menu: {
|
|
@@ -135,7 +135,7 @@ registerAction2(class extends Action2 {
|
|
|
135
135
|
constructor() {
|
|
136
136
|
super({
|
|
137
137
|
id: 'notebook.diffEditor.hideUnchangedCells',
|
|
138
|
-
title: ( localize2(
|
|
138
|
+
title: ( localize2(9295, 'Hide Unchanged Cells')),
|
|
139
139
|
icon: Codicon.fold,
|
|
140
140
|
precondition: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.has(NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS.key)))),
|
|
141
141
|
menu: {
|
|
@@ -160,7 +160,7 @@ registerAction2(class GoToFileAction extends Action2 {
|
|
|
160
160
|
constructor() {
|
|
161
161
|
super({
|
|
162
162
|
id: 'notebook.diffEditor.2.goToCell',
|
|
163
|
-
title: ( localize2(
|
|
163
|
+
title: ( localize2(9296, 'Go To Cell')),
|
|
164
164
|
icon: Codicon.goToFile,
|
|
165
165
|
menu: {
|
|
166
166
|
when: ( ContextKeyExpr.and(( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)), ( ContextKeyExpr.equals(NOTEBOOK_DIFF_ITEM_KIND.key, 'Cell')), ( ContextKeyExpr.notEquals(NOTEBOOK_DIFF_ITEM_DIFF_STATE.key, 'delete')))),
|
|
@@ -189,7 +189,7 @@ registerAction2(class extends Action2 {
|
|
|
189
189
|
constructor() {
|
|
190
190
|
super({
|
|
191
191
|
id: 'notebook.diff.revertMetadata',
|
|
192
|
-
title: ( localize(
|
|
192
|
+
title: ( localize(9297, "Revert Notebook Metadata")),
|
|
193
193
|
icon: revertIcon,
|
|
194
194
|
f1: false,
|
|
195
195
|
menu: {
|
|
@@ -214,7 +214,7 @@ registerAction2(class extends Action2 {
|
|
|
214
214
|
}], true, undefined, () => undefined, undefined, true);
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
|
-
const revertInput = ( localize(
|
|
217
|
+
const revertInput = ( localize(9298, "Revert Input"));
|
|
218
218
|
registerAction2(class extends Action2 {
|
|
219
219
|
constructor() {
|
|
220
220
|
super({
|
|
@@ -253,7 +253,7 @@ registerAction2(class extends Action2 {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
});
|
|
256
|
-
const revertOutputs = ( localize(
|
|
256
|
+
const revertOutputs = ( localize(9299, "Revert Outputs"));
|
|
257
257
|
registerAction2(class extends Action2 {
|
|
258
258
|
constructor() {
|
|
259
259
|
super({
|
|
@@ -289,7 +289,7 @@ registerAction2(class extends Action2 {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
|
-
const revertMetadata = ( localize(
|
|
292
|
+
const revertMetadata = ( localize(9300, "Revert Metadata"));
|
|
293
293
|
registerAction2(class extends Action2 {
|
|
294
294
|
constructor() {
|
|
295
295
|
super({
|
|
@@ -363,7 +363,7 @@ registerAction2(class extends Action2 {
|
|
|
363
363
|
constructor() {
|
|
364
364
|
super({
|
|
365
365
|
id: 'notebook.diff.cell.switchOutputRenderingStyleToText',
|
|
366
|
-
title: ( localize(
|
|
366
|
+
title: ( localize(9301, "Switch Output Rendering")),
|
|
367
367
|
icon: renderOutputIcon,
|
|
368
368
|
f1: false,
|
|
369
369
|
menu: {
|
|
@@ -383,7 +383,7 @@ registerAction2(class extends Action2 {
|
|
|
383
383
|
constructor() {
|
|
384
384
|
super({
|
|
385
385
|
id: 'notebook.diff.cell.revertOutputs',
|
|
386
|
-
title: ( localize(
|
|
386
|
+
title: ( localize(9299, "Revert Outputs")),
|
|
387
387
|
icon: revertIcon,
|
|
388
388
|
f1: false,
|
|
389
389
|
menu: {
|
|
@@ -415,7 +415,7 @@ registerAction2(class extends Action2 {
|
|
|
415
415
|
constructor() {
|
|
416
416
|
super({
|
|
417
417
|
id: 'notebook.toggle.diff.cell.ignoreTrimWhitespace',
|
|
418
|
-
title: ( localize(
|
|
418
|
+
title: ( localize(9302, "Show Leading/Trailing Whitespace Differences")),
|
|
419
419
|
icon: toggleWhitespace,
|
|
420
420
|
f1: false,
|
|
421
421
|
menu: {
|
|
@@ -503,19 +503,19 @@ class ToggleRenderAction extends Action2 {
|
|
|
503
503
|
}
|
|
504
504
|
registerAction2(class extends ToggleRenderAction {
|
|
505
505
|
constructor() {
|
|
506
|
-
super('notebook.diff.showOutputs', ( localize2(
|
|
506
|
+
super('notebook.diff.showOutputs', ( localize2(9303, 'Show Outputs Differences')), ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))), ( ContextKeyExpr.notEquals('config.notebook.diff.ignoreOutputs', true)), 2, true, undefined);
|
|
507
507
|
}
|
|
508
508
|
});
|
|
509
509
|
registerAction2(class extends ToggleRenderAction {
|
|
510
510
|
constructor() {
|
|
511
|
-
super('notebook.diff.showMetadata', ( localize2(
|
|
511
|
+
super('notebook.diff.showMetadata', ( localize2(9304, 'Show Metadata Differences')), ( ContextKeyExpr.or(( ActiveEditorContext.isEqualTo(NotebookTextDiffEditor.ID)), ( ActiveEditorContext.isEqualTo(NotebookMultiTextDiffEditor.ID)))), ( ContextKeyExpr.notEquals('config.notebook.diff.ignoreMetadata', true)), 1, undefined, true);
|
|
512
512
|
}
|
|
513
513
|
});
|
|
514
514
|
registerAction2(class extends Action2 {
|
|
515
515
|
constructor() {
|
|
516
516
|
super({
|
|
517
517
|
id: 'notebook.diff.action.previous',
|
|
518
|
-
title: ( localize(
|
|
518
|
+
title: ( localize(9305, "Show Previous Change")),
|
|
519
519
|
icon: previousChangeIcon,
|
|
520
520
|
f1: false,
|
|
521
521
|
keybinding: {
|
|
@@ -543,7 +543,7 @@ registerAction2(class extends Action2 {
|
|
|
543
543
|
constructor() {
|
|
544
544
|
super({
|
|
545
545
|
id: 'notebook.diff.action.next',
|
|
546
|
-
title: ( localize(
|
|
546
|
+
title: ( localize(9306, "Show Next Change")),
|
|
547
547
|
icon: nextChangeIcon,
|
|
548
548
|
f1: false,
|
|
549
549
|
keybinding: {
|
|
@@ -571,7 +571,7 @@ registerAction2(class extends Action2 {
|
|
|
571
571
|
constructor() {
|
|
572
572
|
super({
|
|
573
573
|
id: 'notebook.diff.inline.toggle',
|
|
574
|
-
title: ( localize(
|
|
574
|
+
title: ( localize(9307, "Toggle Inline View")),
|
|
575
575
|
menu: {
|
|
576
576
|
id: MenuId.EditorTitle,
|
|
577
577
|
group: '1_diff',
|
|
@@ -597,18 +597,18 @@ registerAction2(class extends Action2 {
|
|
|
597
597
|
'notebook.diff.ignoreMetadata': {
|
|
598
598
|
type: 'boolean',
|
|
599
599
|
default: false,
|
|
600
|
-
markdownDescription: ( localize(
|
|
600
|
+
markdownDescription: ( localize(9308, "Hide Metadata Differences"))
|
|
601
601
|
},
|
|
602
602
|
'notebook.diff.ignoreOutputs': {
|
|
603
603
|
type: 'boolean',
|
|
604
604
|
default: false,
|
|
605
|
-
markdownDescription: ( localize(
|
|
605
|
+
markdownDescription: ( localize(9309, "Hide Outputs Differences"))
|
|
606
606
|
},
|
|
607
607
|
'notebook.diff.experimental.toggleInline': {
|
|
608
608
|
type: 'boolean',
|
|
609
609
|
default: typeof product.quality === 'string' && product.quality !== 'stable',
|
|
610
610
|
markdownDescription: ( localize(
|
|
611
|
-
|
|
611
|
+
9310,
|
|
612
612
|
"Enable the command to toggle the experimental notebook inline diff editor."
|
|
613
613
|
))
|
|
614
614
|
},
|