@codingame/monaco-vscode-notebook-service-override 18.4.0 → 19.0.1
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 +27 -29
- 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 +26 -26
- 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 -8
- 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 +1 -1
- 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/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 +16 -16
- 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 +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/find/notebookFind.js +5 -5
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +19 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +20 -20
- 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 +2 -2
- 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.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +14 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +10 -12
- 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 +13 -13
- 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 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +3 -3
- 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 +31 -31
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +18 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +32 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +26 -26
- 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 +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +72 -72
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +2 -2
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +3 -3
- 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.js +24 -18
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +3 -3
- 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
|
@@ -13,22 +13,22 @@ import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
13
13
|
import { CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_INNER_CURSOR_FIRST, CTX_INLINE_CHAT_INNER_CURSOR_LAST, CTX_INLINE_CHAT_RESPONSE_TYPE, InlineChatResponseType, MENU_INLINE_CHAT_WIDGET_STATUS, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS, CTX_INLINE_CHAT_VISIBLE } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
14
14
|
import { CTX_NOTEBOOK_CHAT_HAS_ACTIVE_REQUEST, MENU_CELL_CHAT_INPUT, CTX_NOTEBOOK_CELL_CHAT_FOCUSED, MENU_CELL_CHAT_WIDGET, MENU_CELL_CHAT_WIDGET_STATUS, CTX_NOTEBOOK_CHAT_USER_DID_EDIT, CTX_NOTEBOOK_CHAT_OUTER_FOCUS_POSITION, CTX_NOTEBOOK_CHAT_HAS_AGENT } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
|
|
15
15
|
import { NotebookChatController } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController';
|
|
16
|
-
import { NotebookAction, NotebookCellAction, getEditorFromArgsOrActivePane, CELL_TITLE_CELL_GROUP_ID, getContextFromActiveEditor } from '@codingame/monaco-vscode-
|
|
16
|
+
import { NotebookAction, NotebookCellAction, getEditorFromArgsOrActivePane, CELL_TITLE_CELL_GROUP_ID, getContextFromActiveEditor } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
17
17
|
import { insertNewCell } from '../insertCellActions.js';
|
|
18
|
-
import { CellEditState } from '@codingame/monaco-vscode-
|
|
18
|
+
import { CellEditState } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
19
19
|
import { CellKind, NOTEBOOK_EDITOR_CURSOR_BOUNDARY, NotebookSetting } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
20
|
-
import { NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, IS_COMPOSITE_NOTEBOOK, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_GENERATED_BY_CHAT } from '@codingame/monaco-vscode-
|
|
20
|
+
import { NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, IS_COMPOSITE_NOTEBOOK, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_GENERATED_BY_CHAT } from '@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
21
21
|
import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iterator';
|
|
22
22
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
23
23
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
24
|
-
import { InlineChatController } from '@codingame/monaco-vscode-
|
|
24
|
+
import { InlineChatController } from '@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
25
25
|
import { EditorAction2 } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions';
|
|
26
26
|
|
|
27
27
|
registerAction2(class extends NotebookAction {
|
|
28
28
|
constructor() {
|
|
29
29
|
super({
|
|
30
30
|
id: 'notebook.cell.chat.accept',
|
|
31
|
-
title: ( localize2(
|
|
31
|
+
title: ( localize2(8496, "Make Request")),
|
|
32
32
|
icon: Codicon.send,
|
|
33
33
|
keybinding: {
|
|
34
34
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED, ( NOTEBOOK_CELL_EDITOR_FOCUSED.negate()))),
|
|
@@ -52,7 +52,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
52
52
|
constructor() {
|
|
53
53
|
super({
|
|
54
54
|
id: 'notebook.cell.chat.arrowOutUp',
|
|
55
|
-
title: ( localize(
|
|
55
|
+
title: ( localize(8497, 'Cursor Up')),
|
|
56
56
|
keybinding: {
|
|
57
57
|
when: ( ContextKeyExpr.and(
|
|
58
58
|
CTX_NOTEBOOK_CELL_CHAT_FOCUSED,
|
|
@@ -87,7 +87,7 @@ registerAction2(class extends NotebookAction {
|
|
|
87
87
|
constructor() {
|
|
88
88
|
super({
|
|
89
89
|
id: 'notebook.cell.chat.arrowOutDown',
|
|
90
|
-
title: ( localize(
|
|
90
|
+
title: ( localize(8498, 'Cursor Down')),
|
|
91
91
|
keybinding: {
|
|
92
92
|
when: ( ContextKeyExpr.and(
|
|
93
93
|
CTX_NOTEBOOK_CELL_CHAT_FOCUSED,
|
|
@@ -110,7 +110,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
110
110
|
constructor() {
|
|
111
111
|
super({
|
|
112
112
|
id: 'notebook.cell.focusChatWidget',
|
|
113
|
-
title: ( localize(
|
|
113
|
+
title: ( localize(8499, 'Focus Chat Widget')),
|
|
114
114
|
keybinding: {
|
|
115
115
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()), ( ContextKeyExpr.and(( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('bottom')), ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('none')))), ( EditorContextKeys.isEmbeddedDiffEditor.negate()))),
|
|
116
116
|
weight: KeybindingWeight.EditorCore + 7,
|
|
@@ -128,7 +128,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
128
128
|
constructor() {
|
|
129
129
|
super({
|
|
130
130
|
id: 'notebook.cell.focusNextChatWidget',
|
|
131
|
-
title: ( localize(
|
|
131
|
+
title: ( localize(8500, 'Focus Next Cell Chat Widget')),
|
|
132
132
|
keybinding: {
|
|
133
133
|
when: ( ContextKeyExpr.and(( CONTEXT_ACCESSIBILITY_MODE_ENABLED.negate()), ( ContextKeyExpr.and(( ContextKeyExpr.has(InputFocusedContextKey)), EditorContextKeys.editorTextFocus, ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('top')), ( NOTEBOOK_EDITOR_CURSOR_BOUNDARY.notEqualsTo('none')))), ( EditorContextKeys.isEmbeddedDiffEditor.negate()))),
|
|
134
134
|
weight: KeybindingWeight.EditorCore + 7,
|
|
@@ -147,7 +147,7 @@ registerAction2(class extends NotebookAction {
|
|
|
147
147
|
constructor() {
|
|
148
148
|
super({
|
|
149
149
|
id: 'notebook.cell.chat.stop',
|
|
150
|
-
title: ( localize2(
|
|
150
|
+
title: ( localize2(8501, "Stop Request")),
|
|
151
151
|
icon: Codicon.debugStop,
|
|
152
152
|
menu: {
|
|
153
153
|
id: MENU_CELL_CHAT_INPUT,
|
|
@@ -166,7 +166,7 @@ registerAction2(class extends NotebookAction {
|
|
|
166
166
|
constructor() {
|
|
167
167
|
super({
|
|
168
168
|
id: 'notebook.cell.chat.close',
|
|
169
|
-
title: ( localize2(
|
|
169
|
+
title: ( localize2(8502, "Close Chat")),
|
|
170
170
|
icon: Codicon.close,
|
|
171
171
|
menu: {
|
|
172
172
|
id: MENU_CELL_CHAT_WIDGET,
|
|
@@ -184,10 +184,10 @@ registerAction2(class extends NotebookAction {
|
|
|
184
184
|
constructor() {
|
|
185
185
|
super({
|
|
186
186
|
id: 'notebook.cell.chat.acceptChanges',
|
|
187
|
-
title: ( localize2(
|
|
188
|
-
shortTitle: ( localize(
|
|
187
|
+
title: ( localize2(8503, "Accept Changes")),
|
|
188
|
+
shortTitle: ( localize(8504, 'Accept')),
|
|
189
189
|
icon: Codicon.check,
|
|
190
|
-
tooltip: ( localize(
|
|
190
|
+
tooltip: ( localize(8505, 'Accept Changes')),
|
|
191
191
|
keybinding: [
|
|
192
192
|
{
|
|
193
193
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED, ( NOTEBOOK_CELL_EDITOR_FOCUSED.negate()))),
|
|
@@ -234,7 +234,7 @@ registerAction2(class extends NotebookAction {
|
|
|
234
234
|
constructor() {
|
|
235
235
|
super({
|
|
236
236
|
id: 'notebook.cell.chat.discard',
|
|
237
|
-
title: ( localize(
|
|
237
|
+
title: ( localize(8506, 'Discard')),
|
|
238
238
|
icon: Codicon.discard,
|
|
239
239
|
keybinding: {
|
|
240
240
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED, ( CTX_NOTEBOOK_CHAT_USER_DID_EDIT.negate()), ( NOTEBOOK_CELL_EDITOR_FOCUSED.negate()))),
|
|
@@ -275,12 +275,12 @@ registerAction2(class extends NotebookAction {
|
|
|
275
275
|
super({
|
|
276
276
|
id: 'notebook.cell.chat.start',
|
|
277
277
|
title: {
|
|
278
|
-
value: '$(sparkle) ' + ( localize(
|
|
278
|
+
value: '$(sparkle) ' + ( localize(8507, "Generate")),
|
|
279
279
|
original: '$(sparkle) Generate',
|
|
280
280
|
},
|
|
281
|
-
tooltip: ( localize(
|
|
281
|
+
tooltip: ( localize(8508, "Start Chat to Generate Code")),
|
|
282
282
|
metadata: {
|
|
283
|
-
description: ( localize(
|
|
283
|
+
description: ( localize(8508, "Start Chat to Generate Code")),
|
|
284
284
|
args: [
|
|
285
285
|
{
|
|
286
286
|
name: 'args',
|
|
@@ -362,10 +362,10 @@ registerAction2(class extends NotebookAction {
|
|
|
362
362
|
super({
|
|
363
363
|
id: 'notebook.cell.chat.startAtTop',
|
|
364
364
|
title: {
|
|
365
|
-
value: '$(sparkle) ' + ( localize(
|
|
365
|
+
value: '$(sparkle) ' + ( localize(8507, "Generate")),
|
|
366
366
|
original: '$(sparkle) Generate',
|
|
367
367
|
},
|
|
368
|
-
tooltip: ( localize(
|
|
368
|
+
tooltip: ( localize(8508, "Start Chat to Generate Code")),
|
|
369
369
|
f1: false,
|
|
370
370
|
menu: [
|
|
371
371
|
{
|
|
@@ -385,8 +385,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
385
385
|
command: {
|
|
386
386
|
id: 'notebook.cell.chat.start',
|
|
387
387
|
icon: Codicon.sparkle,
|
|
388
|
-
title: ( localize(
|
|
389
|
-
tooltip: ( localize(
|
|
388
|
+
title: ( localize(8509, "Generate")),
|
|
389
|
+
tooltip: ( localize(8510, "Start Chat to Generate Code"))
|
|
390
390
|
},
|
|
391
391
|
order: -10,
|
|
392
392
|
group: 'navigation/add',
|
|
@@ -396,7 +396,7 @@ registerAction2(class extends NotebookAction {
|
|
|
396
396
|
constructor() {
|
|
397
397
|
super({
|
|
398
398
|
id: 'notebook.cell.chat.focus',
|
|
399
|
-
title: ( localize(
|
|
399
|
+
title: ( localize(8511, 'Focus Chat')),
|
|
400
400
|
keybinding: [
|
|
401
401
|
{
|
|
402
402
|
when: ( ContextKeyExpr.and(
|
|
@@ -428,7 +428,7 @@ registerAction2(class extends NotebookAction {
|
|
|
428
428
|
constructor() {
|
|
429
429
|
super({
|
|
430
430
|
id: 'notebook.cell.chat.focusNextCell',
|
|
431
|
-
title: ( localize(
|
|
431
|
+
title: ( localize(8512, 'Focus Next Cell')),
|
|
432
432
|
keybinding: [
|
|
433
433
|
{
|
|
434
434
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
@@ -447,7 +447,7 @@ registerAction2(class extends NotebookAction {
|
|
|
447
447
|
constructor() {
|
|
448
448
|
super({
|
|
449
449
|
id: 'notebook.cell.chat.focusPreviousCell',
|
|
450
|
-
title: ( localize(
|
|
450
|
+
title: ( localize(8513, 'Focus Previous Cell')),
|
|
451
451
|
keybinding: [
|
|
452
452
|
{
|
|
453
453
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
@@ -466,7 +466,7 @@ registerAction2(class extends NotebookAction {
|
|
|
466
466
|
constructor() {
|
|
467
467
|
super({
|
|
468
468
|
id: 'notebook.cell.chat.previousFromHistory',
|
|
469
|
-
title: ( localize2(
|
|
469
|
+
title: ( localize2(8514, "Previous From History")),
|
|
470
470
|
precondition: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
471
471
|
keybinding: {
|
|
472
472
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
@@ -484,7 +484,7 @@ registerAction2(class extends NotebookAction {
|
|
|
484
484
|
constructor() {
|
|
485
485
|
super({
|
|
486
486
|
id: 'notebook.cell.chat.nextFromHistory',
|
|
487
|
-
title: ( localize2(
|
|
487
|
+
title: ( localize2(8515, "Next From History")),
|
|
488
488
|
precondition: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
489
489
|
keybinding: {
|
|
490
490
|
when: ( ContextKeyExpr.and(CTX_NOTEBOOK_CELL_CHAT_FOCUSED, CTX_INLINE_CHAT_FOCUSED)),
|
|
@@ -502,7 +502,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
502
502
|
constructor() {
|
|
503
503
|
super({
|
|
504
504
|
id: 'notebook.cell.chat.restore',
|
|
505
|
-
title: ( localize2(
|
|
505
|
+
title: ( localize2(8516, "Generate")),
|
|
506
506
|
icon: Codicon.sparkle,
|
|
507
507
|
menu: {
|
|
508
508
|
id: MenuId.NotebookCellTitle,
|
|
@@ -533,9 +533,9 @@ class AcceptChangesAndRun extends EditorAction2 {
|
|
|
533
533
|
constructor() {
|
|
534
534
|
super({
|
|
535
535
|
id: 'notebook.inlineChat.acceptChangesAndRun',
|
|
536
|
-
title: ( localize2(
|
|
537
|
-
shortTitle: ( localize(
|
|
538
|
-
tooltip: ( localize(
|
|
536
|
+
title: ( localize2(8517, "Accept and Run")),
|
|
537
|
+
shortTitle: ( localize(8518, 'Accept & Run')),
|
|
538
|
+
tooltip: ( localize(8519, 'Accept the changes and run the cell')),
|
|
539
539
|
icon: Codicon.check,
|
|
540
540
|
f1: true,
|
|
541
541
|
precondition: ( ContextKeyExpr.and(( NOTEBOOK_EDITOR_EDITABLE.isEqualTo(true)), CTX_INLINE_CHAT_VISIBLE)),
|
|
@@ -3,6 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
4
4
|
import { codiconsLibrary } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codiconsLibrary';
|
|
5
5
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
6
7
|
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
7
8
|
import { CompletionItemKind } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages';
|
|
8
9
|
import { ILanguageFeaturesService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/languageFeatures.service';
|
|
@@ -13,25 +14,24 @@ import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
13
14
|
import { IQuickInputService } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
14
15
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
15
16
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
16
|
-
import { showChatView } from '@codingame/monaco-vscode-
|
|
17
|
+
import { showChatView } from '@codingame/monaco-vscode-9911aec2-e4dd-5483-8369-9d695cc70d8a-common/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
17
18
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
18
|
-
import { ChatInputPart } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatInputPart';
|
|
19
19
|
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
|
|
20
20
|
import { computeCompletionRanges } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
|
|
21
21
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
22
22
|
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
23
23
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
24
|
-
import { chatVariableLeader } from '@codingame/monaco-vscode-
|
|
25
|
-
import { NOTEBOOK_CELL_OUTPUT_MIME_TYPE_LIST_FOR_CHAT, NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_CELL_OUTPUT_MIMETYPE } from '@codingame/monaco-vscode-
|
|
24
|
+
import { chatVariableLeader } from '@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
25
|
+
import { NOTEBOOK_CELL_OUTPUT_MIME_TYPE_LIST_FOR_CHAT, NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_CELL_OUTPUT_MIMETYPE } from '@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
26
26
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
27
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
28
|
-
import { copyIcon } from '@codingame/monaco-vscode-
|
|
29
|
-
import { getOutputViewModelFromId } from '@codingame/monaco-vscode-
|
|
30
|
-
import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-
|
|
27
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
28
|
+
import { copyIcon } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
29
|
+
import { getOutputViewModelFromId } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOutputActions';
|
|
30
|
+
import { NOTEBOOK_ACTIONS_CATEGORY } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
31
31
|
import './cellChatActions.js';
|
|
32
32
|
import { CTX_NOTEBOOK_CHAT_HAS_AGENT } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext';
|
|
33
33
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
34
|
-
import { NOTEBOOK_CELL_OUTPUT_MIME_TYPE_LIST_FOR_CHAT_CONST, createNotebookOutputVariableEntry } from '@codingame/monaco-vscode-
|
|
34
|
+
import { NOTEBOOK_CELL_OUTPUT_MIME_TYPE_LIST_FOR_CHAT_CONST, createNotebookOutputVariableEntry } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils';
|
|
35
35
|
import { IChatContextPickService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContextPickService.service';
|
|
36
36
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
37
37
|
|
|
@@ -52,7 +52,7 @@ let NotebookChatContribution = class NotebookChatContribution extends Disposable
|
|
|
52
52
|
};
|
|
53
53
|
updateNotebookAgentStatus();
|
|
54
54
|
this._register(chatAgentService.onDidChangeAgents(updateNotebookAgentStatus));
|
|
55
|
-
this._register(this.languageFeaturesService.completionProvider.register({ scheme:
|
|
55
|
+
this._register(this.languageFeaturesService.completionProvider.register({ scheme: Schemas.vscodeChatInput, hasAccessToAllModels: true }, {
|
|
56
56
|
_debugDisplayName: 'chatKernelDynamicCompletions',
|
|
57
57
|
triggerCharacters: [chatVariableLeader],
|
|
58
58
|
provideCompletionItems: async (model, position, _context, token) => {
|
|
@@ -78,7 +78,7 @@ let NotebookChatContribution = class NotebookChatContribution extends Disposable
|
|
|
78
78
|
result.suggestions.push({
|
|
79
79
|
label: `${chatVariableLeader}${NotebookKernelVariableKey}`,
|
|
80
80
|
insertText: `${chatVariableLeader}${NotebookKernelVariableKey}:`,
|
|
81
|
-
detail: ( localize(
|
|
81
|
+
detail: ( localize(8520, "Pick a variable from the kernel")),
|
|
82
82
|
range,
|
|
83
83
|
kind: CompletionItemKind.Text,
|
|
84
84
|
command: { id: SelectAndInsertKernelVariableAction.ID, title: SelectAndInsertKernelVariableAction.ID, arguments: [{ widget, range: afterRange }] },
|
|
@@ -173,7 +173,10 @@ class SelectAndInsertKernelVariableAction extends Action2 {
|
|
|
173
173
|
detail: variable.type,
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
const
|
|
176
|
+
const placeHolder = quickPickItems.length > 0
|
|
177
|
+
? ( localize(8521, "Select a kernel variable"))
|
|
178
|
+
: ( localize(8522, "No kernel variables found"));
|
|
179
|
+
const pickedVariable = await quickInputService.pick(quickPickItems, { placeHolder });
|
|
177
180
|
if (!pickedVariable) {
|
|
178
181
|
return;
|
|
179
182
|
}
|
|
@@ -213,7 +216,7 @@ let KernelVariableContextPicker = class KernelVariableContextPicker {
|
|
|
213
216
|
this.editorService = editorService;
|
|
214
217
|
this.notebookKernelService = notebookKernelService;
|
|
215
218
|
this.type = 'pickerPick';
|
|
216
|
-
this.label = ( localize(
|
|
219
|
+
this.label = ( localize(8523, 'Kernel Variable...'));
|
|
217
220
|
this.icon = Codicon.serverEnvironment;
|
|
218
221
|
}
|
|
219
222
|
isEnabled(widget) {
|
|
@@ -250,7 +253,7 @@ let KernelVariableContextPicker = class KernelVariableContextPicker {
|
|
|
250
253
|
return result;
|
|
251
254
|
})();
|
|
252
255
|
return {
|
|
253
|
-
placeholder: ( localize(
|
|
256
|
+
placeholder: ( localize(8524, 'Select a kernel variable')),
|
|
254
257
|
picks
|
|
255
258
|
};
|
|
256
259
|
}
|
|
@@ -263,7 +266,7 @@ registerAction2(class CopyCellOutputAction extends Action2 {
|
|
|
263
266
|
constructor() {
|
|
264
267
|
super({
|
|
265
268
|
id: 'notebook.cellOutput.addToChat',
|
|
266
|
-
title: ( localize(
|
|
269
|
+
title: ( localize(8525, "Add Cell Output to Chat")),
|
|
267
270
|
menu: {
|
|
268
271
|
id: MenuId.NotebookOutputToolbar,
|
|
269
272
|
when: ( ContextKeyExpr.and(
|
|
@@ -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-
|
|
24
|
+
import { InlineChatController } from '@codingame/monaco-vscode-3927dd53-f845-534c-9baa-1528ff3956c8-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
25
25
|
import { CTX_INLINE_CHAT_FOCUSED } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
26
26
|
import { runDeleteAction, changeCellToKind } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
27
|
-
import { NotebookCellAction, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, findTargetCellEditor, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, CELL_TITLE_OUTPUT_GROUP_ID, executeNotebookCondition, NotebookAction, NotebookMultiCellAction } from '@codingame/monaco-vscode-
|
|
27
|
+
import { NotebookCellAction, CELL_TITLE_CELL_GROUP_ID, CellToolbarOrder, findTargetCellEditor, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, CELL_TITLE_OUTPUT_GROUP_ID, executeNotebookCondition, NotebookAction, NotebookMultiCellAction } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/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-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
30
|
+
import { editIcon, stopEditIcon, deleteCellIcon, clearIcon } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/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-3927dd53-f845-534c-9baa-1528ff3956c8-common/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';
|
|
@@ -46,7 +46,7 @@ registerAction2(class EditCellAction extends NotebookCellAction {
|
|
|
46
46
|
constructor() {
|
|
47
47
|
super({
|
|
48
48
|
id: EDIT_CELL_COMMAND_ID,
|
|
49
|
-
title: ( localize(
|
|
49
|
+
title: ( localize(8537, "Edit Cell")),
|
|
50
50
|
keybinding: {
|
|
51
51
|
when: ( ContextKeyExpr.and(
|
|
52
52
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -82,7 +82,7 @@ registerAction2(class QuitEditCellAction extends NotebookCellAction {
|
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: QUIT_EDIT_CELL_COMMAND_ID,
|
|
85
|
-
title: ( localize(
|
|
85
|
+
title: ( localize(8538, "Stop Editing Cell")),
|
|
86
86
|
menu: {
|
|
87
87
|
id: MenuId.NotebookCellTitle,
|
|
88
88
|
when: ( ContextKeyExpr.and(( NOTEBOOK_CELL_TYPE.isEqualTo('markup')), NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CELL_EDITABLE)),
|
|
@@ -123,7 +123,7 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
123
123
|
constructor() {
|
|
124
124
|
super({
|
|
125
125
|
id: DELETE_CELL_COMMAND_ID,
|
|
126
|
-
title: ( localize(
|
|
126
|
+
title: ( localize(8539, "Delete Cell")),
|
|
127
127
|
keybinding: {
|
|
128
128
|
primary: KeyCode.Delete,
|
|
129
129
|
mac: {
|
|
@@ -160,13 +160,13 @@ registerAction2(class DeleteCellAction extends NotebookCellAction {
|
|
|
160
160
|
const configService = accessor.get(IConfigurationService);
|
|
161
161
|
if (runState === NotebookCellExecutionState.Executing && configService.getValue(NotebookSetting.confirmDeleteRunningCell)) {
|
|
162
162
|
const dialogService = accessor.get(IDialogService);
|
|
163
|
-
const primaryButton = ( localize(
|
|
163
|
+
const primaryButton = ( localize(8540, "Delete"));
|
|
164
164
|
confirmation = await dialogService.confirm({
|
|
165
165
|
type: 'question',
|
|
166
|
-
message: ( localize(
|
|
166
|
+
message: ( localize(8541, "This cell is running, are you sure you want to delete it?")),
|
|
167
167
|
primaryButton: primaryButton,
|
|
168
168
|
checkbox: {
|
|
169
|
-
label: ( localize(
|
|
169
|
+
label: ( localize(8542, "Do not ask me again"))
|
|
170
170
|
}
|
|
171
171
|
});
|
|
172
172
|
}
|
|
@@ -186,7 +186,7 @@ registerAction2(class ClearCellOutputsAction extends NotebookCellAction {
|
|
|
186
186
|
constructor() {
|
|
187
187
|
super({
|
|
188
188
|
id: CLEAR_CELL_OUTPUTS_COMMAND_ID,
|
|
189
|
-
title: ( localize(
|
|
189
|
+
title: ( localize(8543, 'Clear Cell Outputs')),
|
|
190
190
|
menu: [
|
|
191
191
|
{
|
|
192
192
|
id: MenuId.NotebookCellTitle,
|
|
@@ -250,7 +250,7 @@ registerAction2(class ClearAllCellOutputsAction extends NotebookAction {
|
|
|
250
250
|
constructor() {
|
|
251
251
|
super({
|
|
252
252
|
id: CLEAR_ALL_CELLS_OUTPUTS_COMMAND_ID,
|
|
253
|
-
title: ( localize(
|
|
253
|
+
title: ( localize(8544, 'Clear All Outputs')),
|
|
254
254
|
precondition: NOTEBOOK_HAS_OUTPUTS,
|
|
255
255
|
menu: [
|
|
256
256
|
{
|
|
@@ -307,14 +307,14 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
307
307
|
constructor() {
|
|
308
308
|
super({
|
|
309
309
|
id: CHANGE_CELL_LANGUAGE,
|
|
310
|
-
title: ( localize(
|
|
310
|
+
title: ( localize(8545, 'Change Cell Language')),
|
|
311
311
|
keybinding: {
|
|
312
312
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
313
313
|
primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KeyK, KeyCode.KeyM),
|
|
314
314
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE))
|
|
315
315
|
},
|
|
316
316
|
metadata: {
|
|
317
|
-
description: ( localize(
|
|
317
|
+
description: ( localize(8545, 'Change Cell Language')),
|
|
318
318
|
args: [
|
|
319
319
|
{
|
|
320
320
|
name: 'range',
|
|
@@ -387,10 +387,10 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
387
387
|
providerLanguages.forEach(languageId => {
|
|
388
388
|
let description;
|
|
389
389
|
if (context.cell.cellKind === CellKind.Markup ? (languageId === 'markdown') : (languageId === context.cell.language)) {
|
|
390
|
-
description = ( localize(
|
|
390
|
+
description = ( localize(8546, "({0}) - Current Language", languageId));
|
|
391
391
|
}
|
|
392
392
|
else {
|
|
393
|
-
description = ( localize(
|
|
393
|
+
description = ( localize(8547, "({0})", languageId));
|
|
394
394
|
}
|
|
395
395
|
const languageName = languageService.getLanguageName(languageId);
|
|
396
396
|
if (!languageName) {
|
|
@@ -413,16 +413,16 @@ registerAction2(class ChangeCellLanguageAction extends NotebookCellAction {
|
|
|
413
413
|
return a.description.localeCompare(b.description);
|
|
414
414
|
});
|
|
415
415
|
const autoDetectMode = {
|
|
416
|
-
label: ( localize(
|
|
416
|
+
label: ( localize(8548, "Auto Detect"))
|
|
417
417
|
};
|
|
418
418
|
const picks = [
|
|
419
419
|
autoDetectMode,
|
|
420
|
-
{ type: 'separator', label: ( localize(
|
|
420
|
+
{ type: 'separator', label: ( localize(8549, "languages (identifier)")) },
|
|
421
421
|
...topItems,
|
|
422
422
|
{ type: 'separator' },
|
|
423
423
|
...mainItems
|
|
424
424
|
];
|
|
425
|
-
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
425
|
+
const selection = await quickInputService.pick(picks, { placeHolder: ( localize(8550, "Select Language Mode")) });
|
|
426
426
|
const languageId = selection === autoDetectMode
|
|
427
427
|
? await languageDetectionService.detectLanguage(context.cell.uri)
|
|
428
428
|
: selection?.languageId;
|
|
@@ -455,7 +455,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
455
455
|
constructor() {
|
|
456
456
|
super({
|
|
457
457
|
id: DETECT_CELL_LANGUAGE,
|
|
458
|
-
title: ( localize2(
|
|
458
|
+
title: ( localize2(8551, "Accept Detected Language for Cell")),
|
|
459
459
|
f1: true,
|
|
460
460
|
precondition: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE)),
|
|
461
461
|
keybinding: { primary: KeyCode.KeyD | KeyMod.Alt | KeyMod.Shift, weight: KeybindingWeight.WorkbenchContrib }
|
|
@@ -473,7 +473,7 @@ registerAction2(class DetectCellLanguageAction extends NotebookCellAction {
|
|
|
473
473
|
setCellToLanguage(detection, context);
|
|
474
474
|
}
|
|
475
475
|
else {
|
|
476
|
-
notificationService.warn(( localize(
|
|
476
|
+
notificationService.warn(( localize(8552, "Unable to detect cell language")));
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
});
|
|
@@ -498,7 +498,7 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
498
498
|
constructor() {
|
|
499
499
|
super({
|
|
500
500
|
id: SELECT_NOTEBOOK_INDENTATION_ID,
|
|
501
|
-
title: ( localize2(
|
|
501
|
+
title: ( localize2(8553, 'Select Indentation')),
|
|
502
502
|
f1: true,
|
|
503
503
|
precondition: ( ContextKeyExpr.and(
|
|
504
504
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -516,10 +516,10 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
516
516
|
const instantiationService = accessor.get(IInstantiationService);
|
|
517
517
|
const activeNotebook = getNotebookEditorFromEditorPane(editorService.activeEditorPane);
|
|
518
518
|
if (!activeNotebook || activeNotebook.isDisposed) {
|
|
519
|
-
return quickInputService.pick([{ label: ( localize(
|
|
519
|
+
return quickInputService.pick([{ label: ( localize(8554, "No notebook editor active at this time")) }]);
|
|
520
520
|
}
|
|
521
521
|
if (activeNotebook.isReadOnly) {
|
|
522
|
-
return quickInputService.pick([{ label: ( localize(
|
|
522
|
+
return quickInputService.pick([{ label: ( localize(8555, "The active notebook editor is read-only.")) }]);
|
|
523
523
|
}
|
|
524
524
|
const picks = ( [
|
|
525
525
|
(
|
|
@@ -541,9 +541,9 @@ registerAction2(class SelectNotebookIndentation extends NotebookAction {
|
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
}));
|
|
544
|
-
picks.splice(3, 0, { type: 'separator', label: ( localize(
|
|
545
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
546
|
-
const action = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
544
|
+
picks.splice(3, 0, { type: 'separator', label: ( localize(8556, "convert file")) });
|
|
545
|
+
picks.unshift({ type: 'separator', label: ( localize(8557, "change view")) });
|
|
546
|
+
const action = await quickInputService.pick(picks, { placeHolder: ( localize(8558, "Select Action")), matchOnDetail: true });
|
|
547
547
|
if (!action) {
|
|
548
548
|
return;
|
|
549
549
|
}
|
|
@@ -556,7 +556,7 @@ registerAction2(class CommentSelectedCellsAction extends NotebookMultiCellAction
|
|
|
556
556
|
constructor() {
|
|
557
557
|
super({
|
|
558
558
|
id: COMMENT_SELECTED_CELLS_ID,
|
|
559
|
-
title: ( localize(
|
|
559
|
+
title: ( localize(8559, "Comment Selected Cells")),
|
|
560
560
|
keybinding: {
|
|
561
561
|
when: ( ContextKeyExpr.and(
|
|
562
562
|
NOTEBOOK_EDITOR_FOCUSED,
|