@codingame/monaco-vscode-notebook-service-override 23.2.2 → 24.1.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 +3 -3
- package/package.json +3 -24
- 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 +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 +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +11 -14
- 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 +3 -2
- 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 +6 -6
- 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 +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 +9 -9
- 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 +13 -13
- 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 +17 -17
- 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 +5 -5
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +15 -15
- 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 +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 +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +19 -31
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +32 -32
- 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 +27 -27
- 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 +1 -1
- 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.js +86 -86
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +3 -3
- 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 +5 -6
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +5 -5
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +15 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +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 +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +12 -12
- 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/contrib/replNotebook/browser/repl.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +15 -15
- 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 +14 -14
- 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
|
@@ -15,24 +15,21 @@ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
15
15
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
16
16
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
17
17
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
18
|
-
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
19
|
-
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
20
|
-
import { showChatView } from '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
21
18
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
22
19
|
import { IChatContextPickService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContextPickService.service';
|
|
23
|
-
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-
|
|
24
|
-
import { computeCompletionRanges } from '@codingame/monaco-vscode-
|
|
20
|
+
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
|
|
21
|
+
import { computeCompletionRanges } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
|
|
25
22
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
26
23
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
27
|
-
import { chatVariableLeader } from '@codingame/monaco-vscode-
|
|
24
|
+
import { chatVariableLeader } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
28
25
|
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
29
|
-
import { NOTEBOOK_CELL_OUTPUT_MIME_TYPE_LIST_FOR_CHAT, NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_CELL_OUTPUT_MIMETYPE } from '@codingame/monaco-vscode-
|
|
26
|
+
import { NOTEBOOK_CELL_OUTPUT_MIME_TYPE_LIST_FOR_CHAT, NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_CELL_OUTPUT_MIMETYPE } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
30
27
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
31
|
-
import { NOTEBOOK_CELL_OUTPUT_MIME_TYPE_LIST_FOR_CHAT_CONST, createNotebookOutputVariableEntry } from '@codingame/monaco-vscode-
|
|
32
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
33
|
-
import { copyIcon } from '@codingame/monaco-vscode-
|
|
34
|
-
import { getOutputViewModelFromId } from '@codingame/monaco-vscode-
|
|
35
|
-
import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-
|
|
28
|
+
import { NOTEBOOK_CELL_OUTPUT_MIME_TYPE_LIST_FOR_CHAT_CONST, createNotebookOutputVariableEntry } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils';
|
|
29
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
30
|
+
import { copyIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
31
|
+
import { getOutputViewModelFromId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/controller/cellOutputActions';
|
|
32
|
+
import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
36
33
|
import './cellChatActions.js';
|
|
37
34
|
import { CTX_NOTEBOOK_CHAT_HAS_AGENT } from './notebookChatContext.js';
|
|
38
35
|
|
|
@@ -79,7 +76,7 @@ let NotebookChatContribution = class NotebookChatContribution extends Disposable
|
|
|
79
76
|
result.suggestions.push({
|
|
80
77
|
label: `${chatVariableLeader}${NotebookKernelVariableKey}`,
|
|
81
78
|
insertText: `${chatVariableLeader}${NotebookKernelVariableKey}:`,
|
|
82
|
-
detail: ( localize(
|
|
79
|
+
detail: ( localize(9338, "Pick a variable from the kernel")),
|
|
83
80
|
range,
|
|
84
81
|
kind: CompletionItemKind.Text,
|
|
85
82
|
command: { id: SelectAndInsertKernelVariableAction.ID, title: SelectAndInsertKernelVariableAction.ID, arguments: [{ widget, range: afterRange }] },
|
|
@@ -175,8 +172,8 @@ class SelectAndInsertKernelVariableAction extends Action2 {
|
|
|
175
172
|
});
|
|
176
173
|
}
|
|
177
174
|
const placeHolder = quickPickItems.length > 0
|
|
178
|
-
? ( localize(
|
|
179
|
-
: ( localize(
|
|
175
|
+
? ( localize(9339, "Select a kernel variable"))
|
|
176
|
+
: ( localize(9340, "No kernel variables found"));
|
|
180
177
|
const pickedVariable = await quickInputService.pick(quickPickItems, { placeHolder });
|
|
181
178
|
if (!pickedVariable) {
|
|
182
179
|
return;
|
|
@@ -217,7 +214,7 @@ let KernelVariableContextPicker = class KernelVariableContextPicker {
|
|
|
217
214
|
this.editorService = editorService;
|
|
218
215
|
this.notebookKernelService = notebookKernelService;
|
|
219
216
|
this.type = 'pickerPick';
|
|
220
|
-
this.label = ( localize(
|
|
217
|
+
this.label = ( localize(9341, 'Kernel Variable...'));
|
|
221
218
|
this.icon = Codicon.serverEnvironment;
|
|
222
219
|
}
|
|
223
220
|
isEnabled(widget) {
|
|
@@ -254,7 +251,7 @@ let KernelVariableContextPicker = class KernelVariableContextPicker {
|
|
|
254
251
|
return result;
|
|
255
252
|
})();
|
|
256
253
|
return {
|
|
257
|
-
placeholder: ( localize(
|
|
254
|
+
placeholder: ( localize(9342, 'Select a kernel variable')),
|
|
258
255
|
picks
|
|
259
256
|
};
|
|
260
257
|
}
|
|
@@ -263,11 +260,11 @@ KernelVariableContextPicker = ( __decorate([
|
|
|
263
260
|
( __param(0, IEditorService)),
|
|
264
261
|
( __param(1, INotebookKernelService))
|
|
265
262
|
], KernelVariableContextPicker));
|
|
266
|
-
registerAction2(class
|
|
263
|
+
registerAction2(class AddCellOutputToChatAction extends Action2 {
|
|
267
264
|
constructor() {
|
|
268
265
|
super({
|
|
269
266
|
id: 'notebook.cellOutput.addToChat',
|
|
270
|
-
title: ( localize(
|
|
267
|
+
title: ( localize(9343, "Add Cell Output to Chat")),
|
|
271
268
|
menu: {
|
|
272
269
|
id: MenuId.NotebookOutputToolbar,
|
|
273
270
|
when: ( ContextKeyExpr.and(
|
|
@@ -290,8 +287,6 @@ registerAction2(class CopyCellOutputAction extends Action2 {
|
|
|
290
287
|
}
|
|
291
288
|
async run(accessor, outputContext) {
|
|
292
289
|
const notebookEditor = this.getNoteboookEditor(accessor.get(IEditorService), outputContext);
|
|
293
|
-
const viewService = accessor.get(IViewsService);
|
|
294
|
-
const layoutService = accessor.get(IWorkbenchLayoutService);
|
|
295
290
|
if (!notebookEditor) {
|
|
296
291
|
return;
|
|
297
292
|
}
|
|
@@ -321,21 +316,14 @@ registerAction2(class CopyCellOutputAction extends Action2 {
|
|
|
321
316
|
}
|
|
322
317
|
const mimeType = outputViewModel.pickedMimeType?.mimeType;
|
|
323
318
|
const chatWidgetService = accessor.get(IChatWidgetService);
|
|
324
|
-
|
|
325
|
-
if (
|
|
326
|
-
const widgets = chatWidgetService.getWidgetsByLocations(ChatAgentLocation.Chat);
|
|
327
|
-
if (widgets.length === 0) {
|
|
328
|
-
return;
|
|
329
|
-
}
|
|
330
|
-
widget = widgets[0];
|
|
331
|
-
}
|
|
332
|
-
if (mimeType && NOTEBOOK_CELL_OUTPUT_MIME_TYPE_LIST_FOR_CHAT_CONST.includes(mimeType)) {
|
|
319
|
+
const widget = await chatWidgetService.revealWidget();
|
|
320
|
+
if (widget && mimeType && NOTEBOOK_CELL_OUTPUT_MIME_TYPE_LIST_FOR_CHAT_CONST.includes(mimeType)) {
|
|
333
321
|
const entry = createNotebookOutputVariableEntry(outputViewModel, mimeType, notebookEditor);
|
|
334
322
|
if (!entry) {
|
|
335
323
|
return;
|
|
336
324
|
}
|
|
337
325
|
widget.attachmentModel.addContext(entry);
|
|
338
|
-
(await
|
|
326
|
+
(await chatWidgetService.revealWidget())?.focusInput();
|
|
339
327
|
}
|
|
340
328
|
}
|
|
341
329
|
});
|
package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
3
|
import { RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
4
|
|
|
5
|
-
const CTX_NOTEBOOK_CHAT_HAS_AGENT = ( new RawContextKey('notebookChatAgentRegistered', false, ( localize(
|
|
5
|
+
const CTX_NOTEBOOK_CHAT_HAS_AGENT = ( new RawContextKey('notebookChatAgentRegistered', false, ( localize(9344, "Whether a chat agent for notebook is registered"))));
|
|
6
6
|
|
|
7
7
|
export { CTX_NOTEBOOK_CHAT_HAS_AGENT };
|
|
@@ -21,15 +21,15 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
21
21
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
22
22
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
23
23
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
24
|
-
import { InlineChatController } from '@codingame/monaco-vscode-
|
|
25
|
-
import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-
|
|
26
|
-
import { runDeleteAction, changeCellToKind } from '@codingame/monaco-vscode-
|
|
27
|
-
import { NotebookCellAction, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, findTargetCellEditor, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, NotebookAction, CELL_TITLE_OUTPUT_GROUP_ID, executeNotebookCondition, NotebookMultiCellAction } from '@codingame/monaco-vscode-
|
|
24
|
+
import { InlineChatController } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
25
|
+
import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
26
|
+
import { runDeleteAction, changeCellToKind } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
27
|
+
import { NotebookCellAction, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, findTargetCellEditor, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, NotebookAction, CELL_TITLE_OUTPUT_GROUP_ID, executeNotebookCondition, NotebookMultiCellAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
28
28
|
import { NotebookIndentUsingTabs, NotebookIndentUsingSpaces, NotebookChangeTabDisplaySize, NotebookIndentationToTabsAction, NotebookIndentationToSpacesAction } from './notebookIndentationActions.js';
|
|
29
|
-
import { QUIT_EDIT_CELL_COMMAND_ID, CellEditState, CHANGE_CELL_LANGUAGE, DETECT_CELL_LANGUAGE, getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
30
|
-
import { editIcon, stopEditIcon, deleteCellIcon, clearIcon } from '@codingame/monaco-vscode-
|
|
29
|
+
import { QUIT_EDIT_CELL_COMMAND_ID, CellEditState, CHANGE_CELL_LANGUAGE, DETECT_CELL_LANGUAGE, getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
30
|
+
import { editIcon, stopEditIcon, deleteCellIcon, clearIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
31
31
|
import { CellKind, NotebookCellExecutionState, NotebookSetting, CellEditType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
32
|
-
import { NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_USE_CONSOLIDATED_OUTPUT_BUTTON, NOTEBOOK_CELL_IS_FIRST_OUTPUT, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_HAS_OUTPUTS } from '@codingame/monaco-vscode-
|
|
32
|
+
import { NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_USE_CONSOLIDATED_OUTPUT_BUTTON, NOTEBOOK_CELL_IS_FIRST_OUTPUT, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_HAS_OUTPUTS } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
33
33
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
34
34
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
35
35
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -47,7 +47,7 @@ registerAction2(class EditCellAction extends NotebookCellAction {
|
|
|
47
47
|
constructor() {
|
|
48
48
|
super({
|
|
49
49
|
id: EDIT_CELL_COMMAND_ID,
|
|
50
|
-
title: ( localize(
|
|
50
|
+
title: ( localize(9349, "Edit Cell")),
|
|
51
51
|
keybinding: {
|
|
52
52
|
when: ( ContextKeyExpr.and(
|
|
53
53
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -83,7 +83,7 @@ registerAction2(class QuitEditCellAction extends NotebookCellAction {
|
|
|
83
83
|
constructor() {
|
|
84
84
|
super({
|
|
85
85
|
id: QUIT_EDIT_CELL_COMMAND_ID,
|
|
86
|
-
title: ( localize(
|
|
86
|
+
title: ( localize(9350, "Stop Editing Cell")),
|
|
87
87
|
menu: {
|
|
88
88
|
id: MenuId.NotebookCellTitle,
|
|
89
89
|
when: ( ContextKeyExpr.and(( NOTEBOOK_CELL_TYPE.isEqualTo('markup')), NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_EDITABLE)),
|
|
@@ -124,7 +124,7 @@ registerAction2(class QuitEditAllCellsAction extends NotebookAction {
|
|
|
124
124
|
constructor() {
|
|
125
125
|
super({
|
|
126
126
|
id: QUIT_EDIT_ALL_CELLS_COMMAND_ID,
|
|
127
|
-
title: ( localize(
|
|
127
|
+
title: ( localize(9351, "Stop Editing All Cells"))
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
async runWithContext(accessor, context) {
|
|
@@ -149,7 +149,7 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
149
149
|
constructor() {
|
|
150
150
|
super({
|
|
151
151
|
id: DELETE_CELL_COMMAND_ID,
|
|
152
|
-
title: ( localize(
|
|
152
|
+
title: ( localize(9352, "Delete Cell")),
|
|
153
153
|
keybinding: {
|
|
154
154
|
primary: KeyCode.Delete,
|
|
155
155
|
mac: {
|
|
@@ -186,13 +186,13 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
186
186
|
const configService = accessor.get(IConfigurationService);
|
|
187
187
|
if (runState === NotebookCellExecutionState.Executing && configService.getValue(NotebookSetting.confirmDeleteRunningCell)) {
|
|
188
188
|
const dialogService = accessor.get(IDialogService);
|
|
189
|
-
const primaryButton = ( localize(
|
|
189
|
+
const primaryButton = ( localize(9353, "Delete"));
|
|
190
190
|
confirmation = await dialogService.confirm({
|
|
191
191
|
type: 'question',
|
|
192
|
-
message: ( localize(
|
|
192
|
+
message: ( localize(9354, "This cell is running, are you sure you want to delete it?")),
|
|
193
193
|
primaryButton: primaryButton,
|
|
194
194
|
checkbox: {
|
|
195
|
-
label: ( localize(
|
|
195
|
+
label: ( localize(9355, "Do not ask me again"))
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
198
|
}
|
|
@@ -212,7 +212,7 @@ registerAction2(class ClearCellOutputsAction extends NotebookCellAction {
|
|
|
212
212
|
constructor() {
|
|
213
213
|
super({
|
|
214
214
|
id: CLEAR_CELL_OUTPUTS_COMMAND_ID,
|
|
215
|
-
title: ( localize(
|
|
215
|
+
title: ( localize(9356, 'Clear Cell Outputs')),
|
|
216
216
|
menu: [
|
|
217
217
|
{
|
|
218
218
|
id: MenuId.NotebookCellTitle,
|
|
@@ -276,7 +276,7 @@ registerAction2(class ClearAllCellOutputsAction extends NotebookAction {
|
|
|
276
276
|
constructor() {
|
|
277
277
|
super({
|
|
278
278
|
id: CLEAR_ALL_CELLS_OUTPUTS_COMMAND_ID,
|
|
279
|
-
title: ( localize(
|
|
279
|
+
title: ( localize(9357, 'Clear All Outputs')),
|
|
280
280
|
precondition: NOTEBOOK_HAS_OUTPUTS,
|
|
281
281
|
menu: [
|
|
282
282
|
{
|
|
@@ -333,14 +333,14 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
333
333
|
constructor() {
|
|
334
334
|
super({
|
|
335
335
|
id: CHANGE_CELL_LANGUAGE,
|
|
336
|
-
title: ( localize(
|
|
336
|
+
title: ( localize(9358, 'Change Cell Language')),
|
|
337
337
|
keybinding: {
|
|
338
338
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
339
339
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyM),
|
|
340
340
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE))
|
|
341
341
|
},
|
|
342
342
|
metadata: {
|
|
343
|
-
description: ( localize(
|
|
343
|
+
description: ( localize(9358, 'Change Cell Language')),
|
|
344
344
|
args: [
|
|
345
345
|
{
|
|
346
346
|
name: 'range',
|
|
@@ -413,10 +413,10 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
413
413
|
providerLanguages.forEach(languageId => {
|
|
414
414
|
let description;
|
|
415
415
|
if (context.cell.cellKind === CellKind.Markup ? (languageId === 'markdown') : (languageId === context.cell.language)) {
|
|
416
|
-
description = ( localize(
|
|
416
|
+
description = ( localize(9359, "({0}) - Current Language", languageId));
|
|
417
417
|
}
|
|
418
418
|
else {
|
|
419
|
-
description = ( localize(
|
|
419
|
+
description = ( localize(9360, "({0})", languageId));
|
|
420
420
|
}
|
|
421
421
|
const languageName = languageService.getLanguageName(languageId);
|
|
422
422
|
if (!languageName) {
|
|
@@ -439,16 +439,16 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
439
439
|
return a.description.localeCompare(b.description);
|
|
440
440
|
});
|
|
441
441
|
const autoDetectMode = {
|
|
442
|
-
label: ( localize(
|
|
442
|
+
label: ( localize(9361, "Auto Detect"))
|
|
443
443
|
};
|
|
444
444
|
const picks = [
|
|
445
445
|
autoDetectMode,
|
|
446
|
-
{ type: 'separator', label: ( localize(
|
|
446
|
+
{ type: 'separator', label: ( localize(9362, "languages (identifier)")) },
|
|
447
447
|
...topItems,
|
|
448
448
|
{ type: 'separator' },
|
|
449
449
|
...mainItems
|
|
450
450
|
];
|
|
451
|
-
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
451
|
+
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(9363, "Select Language Mode")) });
|
|
452
452
|
const languageId = selection === autoDetectMode
|
|
453
453
|
? await languageDetectionService.detectLanguage(context.cell.uri)
|
|
454
454
|
: selection?.languageId;
|
|
@@ -481,7 +481,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
481
481
|
constructor() {
|
|
482
482
|
super({
|
|
483
483
|
id: DETECT_CELL_LANGUAGE,
|
|
484
|
-
title: ( localize2(
|
|
484
|
+
title: ( localize2(9364, "Accept Detected Language for Cell")),
|
|
485
485
|
f1: true,
|
|
486
486
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE)),
|
|
487
487
|
keybinding: { primary: KeyCode.KeyD | KeyMod.Alt | KeyMod.Shift, weight: KeybindingWeight.WorkbenchContrib }
|
|
@@ -499,7 +499,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
499
499
|
setCellToLanguage(detection, context);
|
|
500
500
|
}
|
|
501
501
|
else {
|
|
502
|
-
notificationService.warn(( localize(
|
|
502
|
+
notificationService.warn(( localize(9365, "Unable to detect cell language")));
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
});
|
|
@@ -524,7 +524,7 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
524
524
|
constructor() {
|
|
525
525
|
super({
|
|
526
526
|
id: SELECT_NOTEBOOK_INDENTATION_ID,
|
|
527
|
-
title: ( localize2(
|
|
527
|
+
title: ( localize2(9366, 'Select Indentation')),
|
|
528
528
|
f1: true,
|
|
529
529
|
precondition: ( ContextKeyExpr.and(
|
|
530
530
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -542,10 +542,10 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
542
542
|
const instantiationService = accessor.get(IInstantiationService);
|
|
543
543
|
const activeNotebook = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
|
|
544
544
|
if (!activeNotebook || activeNotebook.isDisposed) {
|
|
545
|
-
return quickInputService.pick([{ label: ( localize(
|
|
545
|
+
return quickInputService.pick([{ label: ( localize(9367, "No notebook editor active at this time")) }]);
|
|
546
546
|
}
|
|
547
547
|
if (activeNotebook.isReadOnly) {
|
|
548
|
-
return quickInputService.pick([{ label: ( localize(
|
|
548
|
+
return quickInputService.pick([{ label: ( localize(9368, "The active notebook editor is read-only.")) }]);
|
|
549
549
|
}
|
|
550
550
|
const picks = ( [
|
|
551
551
|
(
|
|
@@ -567,9 +567,9 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
569
|
}));
|
|
570
|
-
picks.splice(3, 0, { type: 'separator', label: ( localize(
|
|
571
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
572
|
-
const action = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
570
|
+
picks.splice(3, 0, { type: 'separator', label: ( localize(9369, "convert file")) });
|
|
571
|
+
picks.unshift({ type: 'separator', label: ( localize(9370, "change view")) });
|
|
572
|
+
const action = await quickInputService.pick(picks, { placeHolder: ( localize(9371, "Select Action")), matchOnDetail: true });
|
|
573
573
|
if (!action) {
|
|
574
574
|
return;
|
|
575
575
|
}
|
|
@@ -582,7 +582,7 @@ registerAction2(class CommentSelectedCellsAction extends NotebookMultiCellAction
|
|
|
582
582
|
constructor() {
|
|
583
583
|
super({
|
|
584
584
|
id: COMMENT_SELECTED_CELLS_ID,
|
|
585
|
-
title: ( localize(
|
|
585
|
+
title: ( localize(9372, "Comment Selected Cells")),
|
|
586
586
|
keybinding: {
|
|
587
587
|
when: ( ContextKeyExpr.and(
|
|
588
588
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -9,18 +9,18 @@ import { registerAction2, MenuId, MenuRegistry } from '@codingame/monaco-vscode-
|
|
|
9
9
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
10
10
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
11
|
import { IDebugService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
12
|
-
import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-
|
|
13
|
-
import { insertCell } from '@codingame/monaco-vscode-
|
|
14
|
-
import { NotebookAction, getContextFromUri, getContextFromActiveEditor, NotebookMultiCellAction, cellExecutionArgs, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, parseMultiCellExecutionArgs, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, NotebookCellAction } from '@codingame/monaco-vscode-
|
|
15
|
-
import { CellEditState, EXECUTE_CELL_COMMAND_ID, ScrollToRevealBehavior, CellFocusMode } from '@codingame/monaco-vscode-
|
|
16
|
-
import { executeAllIcon, executeIcon, executeAboveIcon, executeBelowIcon, stopIcon, executingStateIcon, errorStateIcon } from '@codingame/monaco-vscode-
|
|
12
|
+
import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
13
|
+
import { insertCell } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
14
|
+
import { NotebookAction, getContextFromUri, getContextFromActiveEditor, NotebookMultiCellAction, cellExecutionArgs, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, parseMultiCellExecutionArgs, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, NotebookCellAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
15
|
+
import { CellEditState, EXECUTE_CELL_COMMAND_ID, ScrollToRevealBehavior, CellFocusMode } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
16
|
+
import { executeAllIcon, executeIcon, executeAboveIcon, executeBelowIcon, stopIcon, executingStateIcon, errorStateIcon } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
17
17
|
import { CellKind, NotebookSetting, CellUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
18
|
-
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-
|
|
19
|
-
import { NotebookEditorInput } from '@codingame/monaco-vscode-
|
|
18
|
+
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-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
19
|
+
import { NotebookEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
20
20
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
21
21
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
22
22
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
23
|
-
import { CodeCellViewModel } from '@codingame/monaco-vscode-
|
|
23
|
+
import { CodeCellViewModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
24
24
|
|
|
25
25
|
const EXECUTE_NOTEBOOK_COMMAND_ID = 'notebook.execute';
|
|
26
26
|
const CANCEL_NOTEBOOK_COMMAND_ID = 'notebook.cancelExecution';
|
|
@@ -133,7 +133,7 @@ registerAction2(class RenderAllMarkdownCellsAction extends NotebookAction {
|
|
|
133
133
|
constructor() {
|
|
134
134
|
super({
|
|
135
135
|
id: RENDER_ALL_MARKDOWN_CELLS,
|
|
136
|
-
title: ( localize(
|
|
136
|
+
title: ( localize(9373, "Render All Markdown Cells")),
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
async runWithContext(accessor, context) {
|
|
@@ -144,10 +144,10 @@ registerAction2(class ExecuteNotebookAction extends NotebookAction {
|
|
|
144
144
|
constructor() {
|
|
145
145
|
super({
|
|
146
146
|
id: EXECUTE_NOTEBOOK_COMMAND_ID,
|
|
147
|
-
title: ( localize(
|
|
147
|
+
title: ( localize(9374, "Run All")),
|
|
148
148
|
icon: executeAllIcon,
|
|
149
149
|
metadata: {
|
|
150
|
-
description: ( localize(
|
|
150
|
+
description: ( localize(9374, "Run All")),
|
|
151
151
|
args: [
|
|
152
152
|
{
|
|
153
153
|
name: 'uri',
|
|
@@ -195,7 +195,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
195
195
|
super({
|
|
196
196
|
id: EXECUTE_CELL_COMMAND_ID,
|
|
197
197
|
precondition: executeThisCellCondition,
|
|
198
|
-
title: ( localize(
|
|
198
|
+
title: ( localize(9375, "Execute Cell")),
|
|
199
199
|
keybinding: {
|
|
200
200
|
when: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
201
201
|
primary: KeyMod.WinCtrl | KeyCode.Enter,
|
|
@@ -210,7 +210,7 @@ registerAction2(class ExecuteCell extends NotebookMultiCellAction {
|
|
|
210
210
|
group: 'inline'
|
|
211
211
|
},
|
|
212
212
|
metadata: {
|
|
213
|
-
description: ( localize(
|
|
213
|
+
description: ( localize(9375, "Execute Cell")),
|
|
214
214
|
args: cellExecutionArgs
|
|
215
215
|
},
|
|
216
216
|
icon: executeIcon
|
|
@@ -233,7 +233,7 @@ registerAction2(class ExecuteAboveCells extends NotebookMultiCellAction {
|
|
|
233
233
|
super({
|
|
234
234
|
id: EXECUTE_CELLS_ABOVE,
|
|
235
235
|
precondition: executeCondition,
|
|
236
|
-
title: ( localize(
|
|
236
|
+
title: ( localize(9376, "Execute Above Cells")),
|
|
237
237
|
menu: [
|
|
238
238
|
{
|
|
239
239
|
id: MenuId.NotebookCellExecute,
|
|
@@ -273,7 +273,7 @@ registerAction2(class ExecuteCellAndBelow extends NotebookMultiCellAction {
|
|
|
273
273
|
super({
|
|
274
274
|
id: EXECUTE_CELL_AND_BELOW,
|
|
275
275
|
precondition: executeCondition,
|
|
276
|
-
title: ( localize(
|
|
276
|
+
title: ( localize(9377, "Execute Cell and Below")),
|
|
277
277
|
menu: [
|
|
278
278
|
{
|
|
279
279
|
id: MenuId.NotebookCellExecute,
|
|
@@ -313,9 +313,9 @@ registerAction2(class ExecuteCellFocusContainer extends NotebookMultiCellAction
|
|
|
313
313
|
super({
|
|
314
314
|
id: EXECUTE_CELL_FOCUS_CONTAINER_COMMAND_ID,
|
|
315
315
|
precondition: executeThisCellCondition,
|
|
316
|
-
title: ( localize(
|
|
316
|
+
title: ( localize(9378, "Execute Cell and Focus Container")),
|
|
317
317
|
metadata: {
|
|
318
|
-
description: ( localize(
|
|
318
|
+
description: ( localize(9378, "Execute Cell and Focus Container")),
|
|
319
319
|
args: cellExecutionArgs
|
|
320
320
|
},
|
|
321
321
|
icon: executeIcon
|
|
@@ -345,7 +345,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
345
345
|
super({
|
|
346
346
|
id: CANCEL_CELL_COMMAND_ID,
|
|
347
347
|
precondition: cellCancelCondition,
|
|
348
|
-
title: ( localize(
|
|
348
|
+
title: ( localize(9379, "Stop Cell Execution")),
|
|
349
349
|
icon: stopIcon,
|
|
350
350
|
menu: {
|
|
351
351
|
id: MenuId.NotebookCellExecutePrimary,
|
|
@@ -353,7 +353,7 @@ registerAction2(class CancelExecuteCell extends NotebookMultiCellAction {
|
|
|
353
353
|
group: 'inline'
|
|
354
354
|
},
|
|
355
355
|
metadata: {
|
|
356
|
-
description: ( localize(
|
|
356
|
+
description: ( localize(9379, "Stop Cell Execution")),
|
|
357
357
|
args: [
|
|
358
358
|
{
|
|
359
359
|
name: 'options',
|
|
@@ -408,7 +408,7 @@ registerAction2(class ExecuteCellSelectBelow extends NotebookCellAction {
|
|
|
408
408
|
super({
|
|
409
409
|
id: EXECUTE_CELL_SELECT_BELOW,
|
|
410
410
|
precondition: ( ContextKeyExpr.or(executeThisCellCondition, ( NOTEBOOK_CELL_TYPE.isEqualTo('markup')))),
|
|
411
|
-
title: ( localize(
|
|
411
|
+
title: ( localize(9380, "Execute Notebook Cell and Select Below")),
|
|
412
412
|
keybinding: {
|
|
413
413
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( CTX_INLINE_CHAT_FOCUSED.negate()))),
|
|
414
414
|
primary: KeyMod.Shift | KeyCode.Enter,
|
|
@@ -469,7 +469,7 @@ registerAction2(class ExecuteCellInsertBelow extends NotebookCellAction {
|
|
|
469
469
|
super({
|
|
470
470
|
id: EXECUTE_CELL_INSERT_BELOW,
|
|
471
471
|
precondition: ( ContextKeyExpr.or(executeThisCellCondition, ( NOTEBOOK_CELL_TYPE.isEqualTo('markup')))),
|
|
472
|
-
title: ( localize(
|
|
472
|
+
title: ( localize(9381, "Execute Notebook Cell and Insert Below")),
|
|
473
473
|
keybinding: {
|
|
474
474
|
when: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
475
475
|
primary: KeyMod.Alt | KeyCode.Enter,
|
|
@@ -507,7 +507,7 @@ registerAction2(class CancelAllNotebook extends CancelNotebook {
|
|
|
507
507
|
constructor() {
|
|
508
508
|
super({
|
|
509
509
|
id: CANCEL_NOTEBOOK_COMMAND_ID,
|
|
510
|
-
title: ( localize2(
|
|
510
|
+
title: ( localize2(9382, "Stop Execution")),
|
|
511
511
|
icon: stopIcon,
|
|
512
512
|
menu: [
|
|
513
513
|
{
|
|
@@ -530,7 +530,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
530
530
|
constructor() {
|
|
531
531
|
super({
|
|
532
532
|
id: INTERRUPT_NOTEBOOK_COMMAND_ID,
|
|
533
|
-
title: ( localize2(
|
|
533
|
+
title: ( localize2(9383, "Interrupt")),
|
|
534
534
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_HAS_SOMETHING_RUNNING, NOTEBOOK_INTERRUPTIBLE_KERNEL)),
|
|
535
535
|
icon: stopIcon,
|
|
536
536
|
menu: [
|
|
@@ -564,7 +564,7 @@ registerAction2(class InterruptNotebook extends CancelNotebook {
|
|
|
564
564
|
}
|
|
565
565
|
});
|
|
566
566
|
MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
567
|
-
title: ( localize(
|
|
567
|
+
title: ( localize(9384, "Go To")),
|
|
568
568
|
submenu: MenuId.NotebookCellExecuteGoTo,
|
|
569
569
|
group: 'navigation/execute',
|
|
570
570
|
order: 20,
|
|
@@ -574,9 +574,9 @@ registerAction2(class RevealRunningCellAction extends NotebookAction {
|
|
|
574
574
|
constructor() {
|
|
575
575
|
super({
|
|
576
576
|
id: REVEAL_RUNNING_CELL,
|
|
577
|
-
title: ( localize(
|
|
578
|
-
tooltip: ( localize(
|
|
579
|
-
shortTitle: ( localize(
|
|
577
|
+
title: ( localize(9385, "Go to Running Cell")),
|
|
578
|
+
tooltip: ( localize(9385, "Go to Running Cell")),
|
|
579
|
+
shortTitle: ( localize(9385, "Go to Running Cell")),
|
|
580
580
|
precondition: NOTEBOOK_HAS_RUNNING_CELL,
|
|
581
581
|
menu: [
|
|
582
582
|
{
|
|
@@ -634,9 +634,9 @@ registerAction2(class RevealLastFailedCellAction extends NotebookAction {
|
|
|
634
634
|
constructor() {
|
|
635
635
|
super({
|
|
636
636
|
id: REVEAL_LAST_FAILED_CELL,
|
|
637
|
-
title: ( localize(
|
|
638
|
-
tooltip: ( localize(
|
|
639
|
-
shortTitle: ( localize(
|
|
637
|
+
title: ( localize(9386, "Go to Most Recently Failed Cell")),
|
|
638
|
+
tooltip: ( localize(9386, "Go to Most Recently Failed Cell")),
|
|
639
|
+
shortTitle: ( localize(9387, "Go to Most Recently Failed Cell")),
|
|
640
640
|
precondition: NOTEBOOK_LAST_CELL_FAILED,
|
|
641
641
|
menu: [
|
|
642
642
|
{
|
|
@@ -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-api/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions";
|
|
4
|
+
import { CellViewModel } from "@codingame/monaco-vscode-api/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 {
|