@codingame/monaco-vscode-notebook-service-override 8.0.2 → 8.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.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.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +4 -4
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +9 -9
- 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 +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +60 -60
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- 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.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.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
|
@@ -718,33 +718,33 @@ const NotebookOutlineContext = {
|
|
|
718
718
|
type: 'boolean',
|
|
719
719
|
default: true,
|
|
720
720
|
markdownDescription: ( localize(
|
|
721
|
-
|
|
721
|
+
8206,
|
|
722
722
|
"When enabled, notebook outline will show only markdown cells containing a header."
|
|
723
723
|
))
|
|
724
724
|
},
|
|
725
725
|
[NotebookSetting.outlineShowCodeCells]: {
|
|
726
726
|
type: 'boolean',
|
|
727
727
|
default: false,
|
|
728
|
-
markdownDescription: ( localize(
|
|
728
|
+
markdownDescription: ( localize(8207, "When enabled, notebook outline shows code cells."))
|
|
729
729
|
},
|
|
730
730
|
[NotebookSetting.outlineShowCodeCellSymbols]: {
|
|
731
731
|
type: 'boolean',
|
|
732
732
|
default: true,
|
|
733
733
|
markdownDescription: ( localize(
|
|
734
|
-
|
|
734
|
+
8208,
|
|
735
735
|
"When enabled, notebook outline shows code cell symbols. Relies on `notebook.outline.showCodeCells` being enabled."
|
|
736
736
|
))
|
|
737
737
|
},
|
|
738
738
|
[NotebookSetting.breadcrumbsShowCodeCells]: {
|
|
739
739
|
type: 'boolean',
|
|
740
740
|
default: true,
|
|
741
|
-
markdownDescription: ( localize(
|
|
741
|
+
markdownDescription: ( localize(8209, "When enabled, notebook breadcrumbs contain code cells."))
|
|
742
742
|
},
|
|
743
743
|
[NotebookSetting.gotoSymbolsAllSymbols]: {
|
|
744
744
|
type: 'boolean',
|
|
745
745
|
default: true,
|
|
746
746
|
markdownDescription: ( localize(
|
|
747
|
-
|
|
747
|
+
8210,
|
|
748
748
|
"When enabled, the Go to Symbol Quick Pick will display full code symbols from the notebook, as well as Markdown headers."
|
|
749
749
|
))
|
|
750
750
|
},
|
|
@@ -752,7 +752,7 @@ const NotebookOutlineContext = {
|
|
|
752
752
|
});
|
|
753
753
|
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
754
754
|
submenu: MenuId.NotebookOutlineFilter,
|
|
755
|
-
title: ( localize(
|
|
755
|
+
title: ( localize(8211, "Filter Entries")),
|
|
756
756
|
icon: Codicon.filter,
|
|
757
757
|
group: 'navigation',
|
|
758
758
|
order: -1,
|
|
@@ -765,7 +765,7 @@ registerAction2(class ToggleShowMarkdownHeadersOnly extends Action2 {
|
|
|
765
765
|
constructor() {
|
|
766
766
|
super({
|
|
767
767
|
id: 'notebook.outline.toggleShowMarkdownHeadersOnly',
|
|
768
|
-
title: ( localize(
|
|
768
|
+
title: ( localize(8212, "Markdown Headers Only")),
|
|
769
769
|
f1: false,
|
|
770
770
|
toggled: {
|
|
771
771
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showMarkdownHeadersOnly', true)))
|
|
@@ -786,7 +786,7 @@ registerAction2(class ToggleCodeCellEntries extends Action2 {
|
|
|
786
786
|
constructor() {
|
|
787
787
|
super({
|
|
788
788
|
id: 'notebook.outline.toggleCodeCells',
|
|
789
|
-
title: ( localize(
|
|
789
|
+
title: ( localize(8213, "Code Cells")),
|
|
790
790
|
f1: false,
|
|
791
791
|
toggled: {
|
|
792
792
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCells', true)))
|
|
@@ -808,7 +808,7 @@ registerAction2(class ToggleCodeCellSymbolEntries extends Action2 {
|
|
|
808
808
|
constructor() {
|
|
809
809
|
super({
|
|
810
810
|
id: 'notebook.outline.toggleCodeCellSymbols',
|
|
811
|
-
title: ( localize(
|
|
811
|
+
title: ( localize(8214, "Code Cell Symbols")),
|
|
812
812
|
f1: false,
|
|
813
813
|
toggled: {
|
|
814
814
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCellSymbols', true)))
|
|
@@ -49,7 +49,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
49
49
|
if (!enabled) {
|
|
50
50
|
return undefined;
|
|
51
51
|
}
|
|
52
|
-
progress.report({ message: ( localize(
|
|
52
|
+
progress.report({ message: ( localize(8181, "Formatting")) });
|
|
53
53
|
const notebook = workingCopy.model.notebookModel;
|
|
54
54
|
const formatApplied = await this.instantiationService.invokeFunction(CodeActionParticipantUtils.checkAndRunFormatCodeAction, notebook, progress, token);
|
|
55
55
|
const disposable = ( (new DisposableStore()));
|
|
@@ -69,7 +69,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
69
69
|
}
|
|
70
70
|
return [];
|
|
71
71
|
}))));
|
|
72
|
-
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(
|
|
72
|
+
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(8182, "Format Notebook")), code: 'undoredo.formatNotebook', });
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
finally {
|
|
@@ -141,7 +141,7 @@ let TrimWhitespaceParticipant = class TrimWhitespaceParticipant {
|
|
|
141
141
|
);
|
|
142
142
|
}))));
|
|
143
143
|
const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
|
|
144
|
-
await this.bulkEditService.apply(filteredEdits, { label: ( localize(
|
|
144
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(8183, "Notebook Trim Trailing Whitespace")), code: 'undoredo.notebookTrimTrailingWhitespace' });
|
|
145
145
|
}
|
|
146
146
|
finally {
|
|
147
147
|
progress.report({ increment: 100 });
|
|
@@ -219,7 +219,7 @@ let TrimFinalNewLinesParticipant = class TrimFinalNewLinesParticipant {
|
|
|
219
219
|
);
|
|
220
220
|
}))));
|
|
221
221
|
const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
|
|
222
|
-
await this.bulkEditService.apply(filteredEdits, { label: ( localize(
|
|
222
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(8184, "Trim Final New Lines")), code: 'undoredo.trimFinalNewLines' });
|
|
223
223
|
}
|
|
224
224
|
finally {
|
|
225
225
|
progress.report({ increment: 100 });
|
|
@@ -274,7 +274,7 @@ let InsertFinalNewLineParticipant = class InsertFinalNewLineParticipant {
|
|
|
274
274
|
);
|
|
275
275
|
}))));
|
|
276
276
|
const filteredEdits = allCellEdits.filter(edit => edit !== undefined);
|
|
277
|
-
await this.bulkEditService.apply(filteredEdits, { label: ( localize(
|
|
277
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(8185, "Insert Final New Line")), code: 'undoredo.insertFinalNewLine' });
|
|
278
278
|
if (activeCellEditor && selections) {
|
|
279
279
|
activeCellEditor.setSelections(selections);
|
|
280
280
|
}
|
|
@@ -330,7 +330,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
|
|
|
330
330
|
const notebookCodeActionsOnSave = includedActions.filter(x => CodeActionKind.Notebook.contains(x));
|
|
331
331
|
if (notebookCodeActionsOnSave.length) {
|
|
332
332
|
const nbDisposable = ( (new DisposableStore()));
|
|
333
|
-
progress.report({ message: ( localize(
|
|
333
|
+
progress.report({ message: ( localize(8186, "Running 'Notebook' code actions")) });
|
|
334
334
|
try {
|
|
335
335
|
const cell = notebookModel.cells[0];
|
|
336
336
|
const ref = await this.textModelService.createModelReference(cell.uri);
|
|
@@ -362,7 +362,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
|
|
|
362
362
|
});
|
|
363
363
|
}
|
|
364
364
|
const cellDisposable = ( (new DisposableStore()));
|
|
365
|
-
progress.report({ message: ( localize(
|
|
365
|
+
progress.report({ message: ( localize(8187, "Running 'Cell' code actions")) });
|
|
366
366
|
try {
|
|
367
367
|
await Promise.all(( (notebookModel.cells.map(async (cell) => {
|
|
368
368
|
const ref = await this.textModelService.createModelReference(cell.uri);
|
|
@@ -402,7 +402,7 @@ class CodeActionParticipantUtils {
|
|
|
402
402
|
const configurationService = accessor.get(IConfigurationService);
|
|
403
403
|
const formatDisposable = ( (new DisposableStore()));
|
|
404
404
|
let formatResult = false;
|
|
405
|
-
progress.report({ message: ( localize(
|
|
405
|
+
progress.report({ message: ( localize(8188, "Running 'Format' code actions")) });
|
|
406
406
|
try {
|
|
407
407
|
const cell = notebookModel.cells[0];
|
|
408
408
|
const ref = await textModelService.createModelReference(cell.uri);
|
|
@@ -431,7 +431,7 @@ class CodeActionParticipantUtils {
|
|
|
431
431
|
_report() {
|
|
432
432
|
progress.report({
|
|
433
433
|
message: ( localize(
|
|
434
|
-
|
|
434
|
+
8189,
|
|
435
435
|
"Getting code actions from '{0}' ([configure]({1})).",
|
|
436
436
|
( ([...this._names].map(name => `'${name}'`))).join(', '),
|
|
437
437
|
'command:workbench.action.openSettings?%5B%22notebook.codeActionsOnSave%22%5D'
|
|
@@ -471,7 +471,7 @@ class CodeActionParticipantUtils {
|
|
|
471
471
|
logService.warn('Failed to apply code action on save, applied to multiple resources.');
|
|
472
472
|
continue;
|
|
473
473
|
}
|
|
474
|
-
progress.report({ message: ( localize(
|
|
474
|
+
progress.report({ message: ( localize(8190, "Applying code action '{0}'.", action.action.title)) });
|
|
475
475
|
await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
476
476
|
if (token.isCancellationRequested) {
|
|
477
477
|
return;
|
|
@@ -496,7 +496,7 @@ class CodeActionParticipantUtils {
|
|
|
496
496
|
_report() {
|
|
497
497
|
progress.report({
|
|
498
498
|
message: ( localize(
|
|
499
|
-
|
|
499
|
+
8189,
|
|
500
500
|
"Getting code actions from '{0}' ([configure]({1})).",
|
|
501
501
|
( ([...this._names].map(name => `'${name}'`))).join(', '),
|
|
502
502
|
'command:workbench.action.openSettings?%5B%22notebook.defaultFormatter%22%5D'
|
|
@@ -523,7 +523,7 @@ class CodeActionParticipantUtils {
|
|
|
523
523
|
if (!action) {
|
|
524
524
|
return false;
|
|
525
525
|
}
|
|
526
|
-
progress.report({ message: ( localize(
|
|
526
|
+
progress.report({ message: ( localize(8190, "Applying code action '{0}'.", action.action.title)) });
|
|
527
527
|
await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
528
528
|
if (token.isCancellationRequested) {
|
|
529
529
|
return false;
|
|
@@ -94,7 +94,7 @@ registerAction2(class extends Action2 {
|
|
|
94
94
|
constructor() {
|
|
95
95
|
super({
|
|
96
96
|
id: 'notebook.toggleLayoutTroubleshoot',
|
|
97
|
-
title: ( localize2(
|
|
97
|
+
title: ( localize2(8254, "Toggle Layout Troubleshoot")),
|
|
98
98
|
category: Categories.Developer,
|
|
99
99
|
f1: true
|
|
100
100
|
});
|
|
@@ -113,7 +113,7 @@ registerAction2(class extends Action2 {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: 'notebook.inspectLayout',
|
|
116
|
-
title: ( localize2(
|
|
116
|
+
title: ( localize2(8255, "Inspect Notebook Layout")),
|
|
117
117
|
category: Categories.Developer,
|
|
118
118
|
f1: true
|
|
119
119
|
});
|
|
@@ -134,7 +134,7 @@ registerAction2(class extends Action2 {
|
|
|
134
134
|
constructor() {
|
|
135
135
|
super({
|
|
136
136
|
id: 'notebook.clearNotebookEdtitorTypeCache',
|
|
137
|
-
title: ( localize2(
|
|
137
|
+
title: ( localize2(8256, "Clear Notebook Editor Type Cache")),
|
|
138
138
|
category: Categories.Developer,
|
|
139
139
|
f1: true
|
|
140
140
|
});
|
|
@@ -22,7 +22,7 @@ registerAction2(class extends NotebookAction {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
super({
|
|
24
24
|
id: 'notebook.cell.chat.accept',
|
|
25
|
-
title: ( localize2(
|
|
25
|
+
title: ( localize2(10734, "Make Request")),
|
|
26
26
|
icon: Codicon.send,
|
|
27
27
|
keybinding: {
|
|
28
28
|
when: ( (ContextKeyExpr.and(
|
|
@@ -50,7 +50,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
50
50
|
constructor() {
|
|
51
51
|
super({
|
|
52
52
|
id: 'notebook.cell.chat.arrowOutUp',
|
|
53
|
-
title: ( localize(
|
|
53
|
+
title: ( localize(10735, 'Cursor Up')),
|
|
54
54
|
keybinding: {
|
|
55
55
|
when: ( (ContextKeyExpr.and(
|
|
56
56
|
CTX_NOTEBOOK_CELL_CHAT_FOCUSED,
|
|
@@ -85,7 +85,7 @@ registerAction2(class extends NotebookAction {
|
|
|
85
85
|
constructor() {
|
|
86
86
|
super({
|
|
87
87
|
id: 'notebook.cell.chat.arrowOutDown',
|
|
88
|
-
title: ( localize(
|
|
88
|
+
title: ( localize(10736, 'Cursor Down')),
|
|
89
89
|
keybinding: {
|
|
90
90
|
when: ( (ContextKeyExpr.and(
|
|
91
91
|
CTX_NOTEBOOK_CELL_CHAT_FOCUSED,
|
|
@@ -108,7 +108,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
108
108
|
constructor() {
|
|
109
109
|
super({
|
|
110
110
|
id: 'notebook.cell.focusChatWidget',
|
|
111
|
-
title: ( localize(
|
|
111
|
+
title: ( localize(10737, 'Focus Chat Widget')),
|
|
112
112
|
keybinding: {
|
|
113
113
|
when: ( (ContextKeyExpr.and(
|
|
114
114
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -136,7 +136,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
136
136
|
constructor() {
|
|
137
137
|
super({
|
|
138
138
|
id: 'notebook.cell.focusNextChatWidget',
|
|
139
|
-
title: ( localize(
|
|
139
|
+
title: ( localize(10738, 'Focus Next Cell Chat Widget')),
|
|
140
140
|
keybinding: {
|
|
141
141
|
when: ( (ContextKeyExpr.and(
|
|
142
142
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -164,7 +164,7 @@ registerAction2(class extends NotebookAction {
|
|
|
164
164
|
constructor() {
|
|
165
165
|
super({
|
|
166
166
|
id: 'notebook.cell.chat.stop',
|
|
167
|
-
title: ( localize2(
|
|
167
|
+
title: ( localize2(10739, "Stop Request")),
|
|
168
168
|
icon: Codicon.debugStop,
|
|
169
169
|
menu: {
|
|
170
170
|
id: MENU_CELL_CHAT_INPUT,
|
|
@@ -183,7 +183,7 @@ registerAction2(class extends NotebookAction {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: 'notebook.cell.chat.close',
|
|
186
|
-
title: ( localize2(
|
|
186
|
+
title: ( localize2(10740, "Close Chat")),
|
|
187
187
|
icon: Codicon.close,
|
|
188
188
|
menu: {
|
|
189
189
|
id: MENU_CELL_CHAT_WIDGET,
|
|
@@ -201,10 +201,10 @@ registerAction2(class extends NotebookAction {
|
|
|
201
201
|
constructor() {
|
|
202
202
|
super({
|
|
203
203
|
id: 'notebook.cell.chat.acceptChanges',
|
|
204
|
-
title: ( localize2(
|
|
205
|
-
shortTitle: ( localize(
|
|
204
|
+
title: ( localize2(10741, "Accept Changes")),
|
|
205
|
+
shortTitle: ( localize(10742, 'Accept')),
|
|
206
206
|
icon: Codicon.check,
|
|
207
|
-
tooltip: ( localize(
|
|
207
|
+
tooltip: ( localize(10743, 'Accept Changes')),
|
|
208
208
|
keybinding: [
|
|
209
209
|
{
|
|
210
210
|
when: ( (ContextKeyExpr.and(
|
|
@@ -255,7 +255,7 @@ registerAction2(class extends NotebookAction {
|
|
|
255
255
|
constructor() {
|
|
256
256
|
super({
|
|
257
257
|
id: 'notebook.cell.chat.discard',
|
|
258
|
-
title: ( localize(
|
|
258
|
+
title: ( localize(10744, 'Discard')),
|
|
259
259
|
icon: Codicon.discard,
|
|
260
260
|
keybinding: {
|
|
261
261
|
when: ( (ContextKeyExpr.and(
|
|
@@ -305,12 +305,12 @@ registerAction2(class extends NotebookAction {
|
|
|
305
305
|
super({
|
|
306
306
|
id: 'notebook.cell.chat.start',
|
|
307
307
|
title: {
|
|
308
|
-
value: '$(sparkle) ' + ( localize(
|
|
308
|
+
value: '$(sparkle) ' + ( localize(10745, "Generate")),
|
|
309
309
|
original: '$(sparkle) Generate',
|
|
310
310
|
},
|
|
311
|
-
tooltip: ( localize(
|
|
311
|
+
tooltip: ( localize(10746, "Start Chat to Generate Code")),
|
|
312
312
|
metadata: {
|
|
313
|
-
description: ( localize(
|
|
313
|
+
description: ( localize(10746, "Start Chat to Generate Code")),
|
|
314
314
|
args: [
|
|
315
315
|
{
|
|
316
316
|
name: 'args',
|
|
@@ -408,10 +408,10 @@ registerAction2(class extends NotebookAction {
|
|
|
408
408
|
super({
|
|
409
409
|
id: 'notebook.cell.chat.startAtTop',
|
|
410
410
|
title: {
|
|
411
|
-
value: '$(sparkle) ' + ( localize(
|
|
411
|
+
value: '$(sparkle) ' + ( localize(10745, "Generate")),
|
|
412
412
|
original: '$(sparkle) Generate',
|
|
413
413
|
},
|
|
414
|
-
tooltip: ( localize(
|
|
414
|
+
tooltip: ( localize(10746, "Start Chat to Generate Code")),
|
|
415
415
|
f1: false,
|
|
416
416
|
menu: [
|
|
417
417
|
{
|
|
@@ -438,8 +438,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
438
438
|
command: {
|
|
439
439
|
id: 'notebook.cell.chat.start',
|
|
440
440
|
icon: Codicon.sparkle,
|
|
441
|
-
title: ( localize(
|
|
442
|
-
tooltip: ( localize(
|
|
441
|
+
title: ( localize(10747, "Generate")),
|
|
442
|
+
tooltip: ( localize(10748, "Start Chat to Generate Code"))
|
|
443
443
|
},
|
|
444
444
|
order: -10,
|
|
445
445
|
group: 'navigation/add',
|
|
@@ -458,7 +458,7 @@ registerAction2(class extends NotebookAction {
|
|
|
458
458
|
constructor() {
|
|
459
459
|
super({
|
|
460
460
|
id: 'notebook.cell.chat.focus',
|
|
461
|
-
title: ( localize(
|
|
461
|
+
title: ( localize(10749, 'Focus Chat')),
|
|
462
462
|
keybinding: [
|
|
463
463
|
{
|
|
464
464
|
when: ( (ContextKeyExpr.and(
|
|
@@ -490,7 +490,7 @@ registerAction2(class extends NotebookAction {
|
|
|
490
490
|
constructor() {
|
|
491
491
|
super({
|
|
492
492
|
id: 'notebook.cell.chat.focusNextCell',
|
|
493
|
-
title: ( localize(
|
|
493
|
+
title: ( localize(10750, 'Focus Next Cell')),
|
|
494
494
|
keybinding: [
|
|
495
495
|
{
|
|
496
496
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -509,7 +509,7 @@ registerAction2(class extends NotebookAction {
|
|
|
509
509
|
constructor() {
|
|
510
510
|
super({
|
|
511
511
|
id: 'notebook.cell.chat.focusPreviousCell',
|
|
512
|
-
title: ( localize(
|
|
512
|
+
title: ( localize(10751, 'Focus Previous Cell')),
|
|
513
513
|
keybinding: [
|
|
514
514
|
{
|
|
515
515
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -528,7 +528,7 @@ registerAction2(class extends NotebookAction {
|
|
|
528
528
|
constructor() {
|
|
529
529
|
super({
|
|
530
530
|
id: 'notebook.cell.chat.previousFromHistory',
|
|
531
|
-
title: ( localize2(
|
|
531
|
+
title: ( localize2(10752, "Previous From History")),
|
|
532
532
|
precondition: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
533
533
|
keybinding: {
|
|
534
534
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -546,7 +546,7 @@ registerAction2(class extends NotebookAction {
|
|
|
546
546
|
constructor() {
|
|
547
547
|
super({
|
|
548
548
|
id: 'notebook.cell.chat.nextFromHistory',
|
|
549
|
-
title: ( localize2(
|
|
549
|
+
title: ( localize2(10753, "Next From History")),
|
|
550
550
|
precondition: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
551
551
|
keybinding: {
|
|
552
552
|
when: ( (ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED))),
|
|
@@ -564,7 +564,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
564
564
|
constructor() {
|
|
565
565
|
super({
|
|
566
566
|
id: 'notebook.cell.chat.restore',
|
|
567
|
-
title: ( localize2(
|
|
567
|
+
title: ( localize2(10754, "Generate")),
|
|
568
568
|
icon: Codicon.sparkle,
|
|
569
569
|
menu: {
|
|
570
570
|
id: MenuId.NotebookCellTitle,
|
|
@@ -43,7 +43,7 @@ registerAction2(class EditCellAction extends NotebookCellAction {
|
|
|
43
43
|
constructor() {
|
|
44
44
|
super({
|
|
45
45
|
id: EDIT_CELL_COMMAND_ID,
|
|
46
|
-
title: ( localize(
|
|
46
|
+
title: ( localize(8141, "Edit Cell")),
|
|
47
47
|
keybinding: {
|
|
48
48
|
when: ( (ContextKeyExpr.and(
|
|
49
49
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -89,7 +89,7 @@ registerAction2(class QuitEditCellAction extends NotebookCellAction {
|
|
|
89
89
|
constructor() {
|
|
90
90
|
super({
|
|
91
91
|
id: QUIT_EDIT_CELL_COMMAND_ID,
|
|
92
|
-
title: ( localize(
|
|
92
|
+
title: ( localize(8142, "Stop Editing Cell")),
|
|
93
93
|
menu: {
|
|
94
94
|
id: MenuId.NotebookCellTitle,
|
|
95
95
|
when: ( (ContextKeyExpr.and(
|
|
@@ -139,7 +139,7 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: DELETE_CELL_COMMAND_ID,
|
|
142
|
-
title: ( localize(
|
|
142
|
+
title: ( localize(8143, "Delete Cell")),
|
|
143
143
|
keybinding: {
|
|
144
144
|
primary: KeyCode.Delete,
|
|
145
145
|
mac: {
|
|
@@ -176,13 +176,13 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
176
176
|
const configService = accessor.get(IConfigurationService);
|
|
177
177
|
if (runState === NotebookCellExecutionState.Executing && configService.getValue(NotebookSetting.confirmDeleteRunningCell)) {
|
|
178
178
|
const dialogService = accessor.get(IDialogService);
|
|
179
|
-
const primaryButton = ( localize(
|
|
179
|
+
const primaryButton = ( localize(8144, "Delete"));
|
|
180
180
|
confirmation = await dialogService.confirm({
|
|
181
181
|
type: 'question',
|
|
182
|
-
message: ( localize(
|
|
182
|
+
message: ( localize(8145, "This cell is running, are you sure you want to delete it?")),
|
|
183
183
|
primaryButton: primaryButton,
|
|
184
184
|
checkbox: {
|
|
185
|
-
label: ( localize(
|
|
185
|
+
label: ( localize(8146, "Do not ask me again"))
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
188
|
}
|
|
@@ -202,7 +202,7 @@ registerAction2(class ClearCellOutputsAction extends NotebookCellAction {
|
|
|
202
202
|
constructor() {
|
|
203
203
|
super({
|
|
204
204
|
id: CLEAR_CELL_OUTPUTS_COMMAND_ID,
|
|
205
|
-
title: ( localize(
|
|
205
|
+
title: ( localize(8147, 'Clear Cell Outputs')),
|
|
206
206
|
menu: [
|
|
207
207
|
{
|
|
208
208
|
id: MenuId.NotebookCellTitle,
|
|
@@ -273,7 +273,7 @@ registerAction2(class ClearAllCellOutputsAction extends NotebookAction {
|
|
|
273
273
|
constructor() {
|
|
274
274
|
super({
|
|
275
275
|
id: CLEAR_ALL_CELLS_OUTPUTS_COMMAND_ID,
|
|
276
|
-
title: ( localize(
|
|
276
|
+
title: ( localize(8148, 'Clear All Outputs')),
|
|
277
277
|
precondition: NOTEBOOK_HAS_OUTPUTS,
|
|
278
278
|
menu: [
|
|
279
279
|
{
|
|
@@ -334,9 +334,9 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
334
334
|
constructor() {
|
|
335
335
|
super({
|
|
336
336
|
id: CHANGE_CELL_LANGUAGE,
|
|
337
|
-
title: ( localize(
|
|
337
|
+
title: ( localize(8149, 'Change Cell Language')),
|
|
338
338
|
metadata: {
|
|
339
|
-
description: ( localize(
|
|
339
|
+
description: ( localize(8149, 'Change Cell Language')),
|
|
340
340
|
args: [
|
|
341
341
|
{
|
|
342
342
|
name: 'range',
|
|
@@ -409,10 +409,10 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
409
409
|
providerLanguages.forEach(languageId => {
|
|
410
410
|
let description;
|
|
411
411
|
if (context.cell.cellKind === CellKind.Markup ? (languageId === 'markdown') : (languageId === context.cell.language)) {
|
|
412
|
-
description = ( localize(
|
|
412
|
+
description = ( localize(8150, "({0}) - Current Language", languageId));
|
|
413
413
|
}
|
|
414
414
|
else {
|
|
415
|
-
description = ( localize(
|
|
415
|
+
description = ( localize(8151, "({0})", languageId));
|
|
416
416
|
}
|
|
417
417
|
const languageName = languageService.getLanguageName(languageId);
|
|
418
418
|
if (!languageName) {
|
|
@@ -435,16 +435,16 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
435
435
|
return a.description.localeCompare(b.description);
|
|
436
436
|
});
|
|
437
437
|
const autoDetectMode = {
|
|
438
|
-
label: ( localize(
|
|
438
|
+
label: ( localize(8152, "Auto Detect"))
|
|
439
439
|
};
|
|
440
440
|
const picks = [
|
|
441
441
|
autoDetectMode,
|
|
442
|
-
{ type: 'separator', label: ( localize(
|
|
442
|
+
{ type: 'separator', label: ( localize(8153, "languages (identifier)")) },
|
|
443
443
|
...topItems,
|
|
444
444
|
{ type: 'separator' },
|
|
445
445
|
...mainItems
|
|
446
446
|
];
|
|
447
|
-
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
447
|
+
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(8154, "Select Language Mode")) });
|
|
448
448
|
const languageId = selection === autoDetectMode
|
|
449
449
|
? await languageDetectionService.detectLanguage(context.cell.uri)
|
|
450
450
|
: selection?.languageId;
|
|
@@ -477,7 +477,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
477
477
|
constructor() {
|
|
478
478
|
super({
|
|
479
479
|
id: DETECT_CELL_LANGUAGE,
|
|
480
|
-
title: ( localize2(
|
|
480
|
+
title: ( localize2(8155, "Accept Detected Language for Cell")),
|
|
481
481
|
f1: true,
|
|
482
482
|
precondition: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE))),
|
|
483
483
|
keybinding: { primary: KeyCode.KeyD | KeyMod.Alt | KeyMod.Shift, weight: KeybindingWeight.WorkbenchContrib }
|
|
@@ -495,7 +495,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
495
495
|
setCellToLanguage(detection, context);
|
|
496
496
|
}
|
|
497
497
|
else {
|
|
498
|
-
notificationService.warn(( localize(
|
|
498
|
+
notificationService.warn(( localize(8156, "Unable to detect cell language")));
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
});
|
|
@@ -520,7 +520,7 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
520
520
|
constructor() {
|
|
521
521
|
super({
|
|
522
522
|
id: SELECT_NOTEBOOK_INDENTATION_ID,
|
|
523
|
-
title: ( localize2(
|
|
523
|
+
title: ( localize2(8157, 'Select Indentation')),
|
|
524
524
|
f1: true,
|
|
525
525
|
precondition: ( (ContextKeyExpr.and(
|
|
526
526
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -538,10 +538,10 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
538
538
|
const instantiationService = accessor.get(IInstantiationService);
|
|
539
539
|
const activeNotebook = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
|
|
540
540
|
if (!activeNotebook || activeNotebook.isDisposed) {
|
|
541
|
-
return quickInputService.pick([{ label: ( localize(
|
|
541
|
+
return quickInputService.pick([{ label: ( localize(8158, "No notebook editor active at this time")) }]);
|
|
542
542
|
}
|
|
543
543
|
if (activeNotebook.isReadOnly) {
|
|
544
|
-
return quickInputService.pick([{ label: ( localize(
|
|
544
|
+
return quickInputService.pick([{ label: ( localize(8159, "The active notebook editor is read-only.")) }]);
|
|
545
545
|
}
|
|
546
546
|
const picks = ( ([
|
|
547
547
|
(
|
|
@@ -563,9 +563,9 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
563
563
|
}
|
|
564
564
|
};
|
|
565
565
|
})));
|
|
566
|
-
picks.splice(3, 0, { type: 'separator', label: ( localize(
|
|
567
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
568
|
-
const action = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
566
|
+
picks.splice(3, 0, { type: 'separator', label: ( localize(8160, "convert file")) });
|
|
567
|
+
picks.unshift({ type: 'separator', label: ( localize(8161, "change view")) });
|
|
568
|
+
const action = await quickInputService.pick(picks, { placeHolder: ( localize(8162, "Select Action")), matchOnDetail: true });
|
|
569
569
|
if (!action) {
|
|
570
570
|
return;
|
|
571
571
|
}
|
|
@@ -578,7 +578,7 @@ registerAction2(class CommentSelectedCellsAction extends NotebookMultiCellAction
|
|
|
578
578
|
constructor() {
|
|
579
579
|
super({
|
|
580
580
|
id: COMMENT_SELECTED_CELLS_ID,
|
|
581
|
-
title: ( localize(
|
|
581
|
+
title: ( localize(8163, "Comment Selected Cells")),
|
|
582
582
|
keybinding: {
|
|
583
583
|
when: ( (ContextKeyExpr.and(
|
|
584
584
|
NOTEBOOK_EDITOR_FOCUSED,
|