@codingame/monaco-vscode-notebook-service-override 10.1.4 → 11.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 +8 -3
- 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 +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +14 -13
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +1 -1
- 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.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +14 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +5 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +18 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +10 -10
- 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 +4 -4
- 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 +13 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +18 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +56 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +79 -78
- 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/notebookEditorServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +2 -2
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +46 -37
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +12 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +1 -1
- package/workers/notebook.worker.js +1 -1
- /package/vscode/src/vs/workbench/contrib/notebook/common/services/{notebookSimpleWorker.esm.js → notebookSimpleWorkerMain.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-notebook-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -29,7 +29,12 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
33
|
-
"
|
|
32
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.0.1",
|
|
33
|
+
"@codingame/monaco-vscode-chat-notebook-common": "11.0.1",
|
|
34
|
+
"@codingame/monaco-vscode-chat-interactive-notebook-search-common": "11.0.1",
|
|
35
|
+
"@codingame/monaco-vscode-chat-comments-extensions-interactive-notebook-search-common": "11.0.1",
|
|
36
|
+
"@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common": "11.0.1",
|
|
37
|
+
"@codingame/monaco-vscode-chat-extensions-notebook-common": "11.0.1",
|
|
38
|
+
"@codingame/monaco-vscode-debug-notebook-common": "11.0.1"
|
|
34
39
|
}
|
|
35
40
|
}
|
|
@@ -194,8 +194,8 @@ class EmptyTextEditorHintContentWidget {
|
|
|
194
194
|
getActions: () => {
|
|
195
195
|
return [{
|
|
196
196
|
id: 'workench.action.disableEmptyEditorHint',
|
|
197
|
-
label: ( localize(
|
|
198
|
-
tooltip: ( localize(
|
|
197
|
+
label: ( localize(10981, "Disable Empty Editor Hint")),
|
|
198
|
+
tooltip: ( localize(10981, "Disable Empty Editor Hint")),
|
|
199
199
|
enabled: true,
|
|
200
200
|
class: undefined,
|
|
201
201
|
run: () => {
|
|
@@ -233,7 +233,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
233
233
|
const keybindingHintLabel = keybindingHint?.getLabel();
|
|
234
234
|
if (keybindingHint && keybindingHintLabel) {
|
|
235
235
|
const actionPart = ( localize(
|
|
236
|
-
|
|
236
|
+
10982,
|
|
237
237
|
'Press {0} to ask {1} to do something. ',
|
|
238
238
|
keybindingHintLabel,
|
|
239
239
|
providerName
|
|
@@ -264,7 +264,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
264
264
|
this.toDispose.add(addDisposableListener(label.element, EventType.CLICK, handleClick));
|
|
265
265
|
}
|
|
266
266
|
hintElement.appendChild(after);
|
|
267
|
-
const typeToDismiss = ( localize(
|
|
267
|
+
const typeToDismiss = ( localize(10983, 'Start typing to dismiss.'));
|
|
268
268
|
const textHint2 = $('span', undefined, typeToDismiss);
|
|
269
269
|
textHint2.style.fontStyle = 'italic';
|
|
270
270
|
hintElement.appendChild(textHint2);
|
|
@@ -272,7 +272,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
272
272
|
}
|
|
273
273
|
else {
|
|
274
274
|
const hintMsg = ( localize(
|
|
275
|
-
|
|
275
|
+
10984,
|
|
276
276
|
'[[Ask {0} to do something]] or start typing to dismiss.',
|
|
277
277
|
providerName
|
|
278
278
|
));
|
|
@@ -332,7 +332,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
334
|
const hintMsg = ( localize(
|
|
335
|
-
|
|
335
|
+
10985,
|
|
336
336
|
'[[Select a language]], or [[fill with template]], or [[open a different editor]] to get started.\nStart typing to dismiss or [[don\'t show]] this again.'
|
|
337
337
|
));
|
|
338
338
|
const hintElement = renderFormattedText(hintMsg, {
|
|
@@ -343,7 +343,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
343
343
|
const keybindingsLookup = [ChangeLanguageAction.ID, ApplyFileSnippetAction.Id, 'welcome.showNewFileEntries'];
|
|
344
344
|
const keybindingLabels = ( (keybindingsLookup.map((id) => this.keybindingService.lookupKeybinding(id)?.getLabel() ?? id)));
|
|
345
345
|
const ariaLabel = ( localize(
|
|
346
|
-
|
|
346
|
+
10986,
|
|
347
347
|
'Execute {0} to select a language, execute {1} to fill with template, or execute {2} to open a different editor and get started. Start typing to dismiss.',
|
|
348
348
|
...keybindingLabels
|
|
349
349
|
));
|
|
@@ -364,7 +364,7 @@ class EmptyTextEditorHintContentWidget {
|
|
|
364
364
|
const { hintElement, ariaLabel } = !inlineChatProviders.length ? this._getHintDefault() : this._getHintInlineChat(inlineChatProviders);
|
|
365
365
|
this.domNode.append(hintElement);
|
|
366
366
|
this.ariaLabel = ariaLabel.concat(( localize(
|
|
367
|
-
|
|
367
|
+
10987,
|
|
368
368
|
' Toggle {0} in settings to disable this hint.',
|
|
369
369
|
"accessibility.verbosity.emptyEditorHint"
|
|
370
370
|
)));
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js
CHANGED
|
@@ -6,11 +6,11 @@ import { registerAction2, MenuId } from 'vscode/vscode/vs/platform/actions/commo
|
|
|
6
6
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
7
|
import { InputFocusedContext, InputFocusedContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
8
8
|
import { ResourceNotebookCellEdit } from 'vscode/vscode/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits';
|
|
9
|
-
import { moveCellRange, copyCellRange, computeCellLinesContents, joinCellsWithSurrounds, joinSelectedCells, changeCellToKind } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
10
|
-
import { NotebookCellAction, CELL_TITLE_CELL_GROUP_ID, NotebookMultiCellAction, parseMultiCellExecutionArgs, cellExecutionArgs } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
9
|
+
import { moveCellRange, copyCellRange, computeCellLinesContents, joinCellsWithSurrounds, joinSelectedCells, changeCellToKind } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/cellOperations';
|
|
10
|
+
import { NotebookCellAction, CELL_TITLE_CELL_GROUP_ID, NotebookMultiCellAction, parseMultiCellExecutionArgs, cellExecutionArgs } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
11
11
|
import { CellFocusMode, EXPAND_CELL_INPUT_COMMAND_ID, EXPAND_CELL_OUTPUT_COMMAND_ID } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
12
12
|
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_CELL_INPUT_COLLAPSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED, NOTEBOOK_CELL_HAS_OUTPUTS } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
13
|
-
import { moveUpIcon, moveDownIcon, splitCellIcon } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
13
|
+
import { moveUpIcon, moveDownIcon, splitCellIcon } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
14
14
|
import { CellKind, NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
15
15
|
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
16
16
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
@@ -24,7 +24,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super({
|
|
26
26
|
id: MOVE_CELL_UP_COMMAND_ID,
|
|
27
|
-
title: ( localize2(
|
|
27
|
+
title: ( localize2(8176, "Move Cell Up")),
|
|
28
28
|
icon: moveUpIcon,
|
|
29
29
|
keybinding: {
|
|
30
30
|
primary: 512 | 16 ,
|
|
@@ -47,7 +47,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
47
47
|
constructor() {
|
|
48
48
|
super({
|
|
49
49
|
id: MOVE_CELL_DOWN_COMMAND_ID,
|
|
50
|
-
title: ( localize2(
|
|
50
|
+
title: ( localize2(8177, "Move Cell Down")),
|
|
51
51
|
icon: moveDownIcon,
|
|
52
52
|
keybinding: {
|
|
53
53
|
primary: 512 | 18 ,
|
|
@@ -70,7 +70,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
70
70
|
constructor() {
|
|
71
71
|
super({
|
|
72
72
|
id: COPY_CELL_UP_COMMAND_ID,
|
|
73
|
-
title: ( localize2(
|
|
73
|
+
title: ( localize2(8178, "Copy Cell Up")),
|
|
74
74
|
keybinding: {
|
|
75
75
|
primary: 512 | 1024 | 16 ,
|
|
76
76
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, (InputFocusedContext.toNegated())))),
|
|
@@ -86,7 +86,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
86
86
|
constructor() {
|
|
87
87
|
super({
|
|
88
88
|
id: COPY_CELL_DOWN_COMMAND_ID,
|
|
89
|
-
title: ( localize2(
|
|
89
|
+
title: ( localize2(8179, "Copy Cell Down")),
|
|
90
90
|
keybinding: {
|
|
91
91
|
primary: 512 | 1024 | 18 ,
|
|
92
92
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, (InputFocusedContext.toNegated())))),
|
|
@@ -112,7 +112,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
112
112
|
constructor() {
|
|
113
113
|
super({
|
|
114
114
|
id: SPLIT_CELL_COMMAND_ID,
|
|
115
|
-
title: ( localize2(
|
|
115
|
+
title: ( localize2(8180, "Split Cell")),
|
|
116
116
|
menu: {
|
|
117
117
|
id: MenuId.NotebookCellTitle,
|
|
118
118
|
when: ( (ContextKeyExpr.and(
|
|
@@ -182,7 +182,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
182
182
|
constructor() {
|
|
183
183
|
super({
|
|
184
184
|
id: JOIN_CELL_ABOVE_COMMAND_ID,
|
|
185
|
-
title: ( localize2(
|
|
185
|
+
title: ( localize2(8181, "Join With Previous Cell")),
|
|
186
186
|
keybinding: {
|
|
187
187
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
188
188
|
primary: 256 | 512 | 1024 | 40 ,
|
|
@@ -205,7 +205,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
205
205
|
constructor() {
|
|
206
206
|
super({
|
|
207
207
|
id: JOIN_CELL_BELOW_COMMAND_ID,
|
|
208
|
-
title: ( localize2(
|
|
208
|
+
title: ( localize2(8182, "Join With Next Cell")),
|
|
209
209
|
keybinding: {
|
|
210
210
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
211
211
|
primary: 256 | 512 | 40 ,
|
|
@@ -228,7 +228,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
228
228
|
constructor() {
|
|
229
229
|
super({
|
|
230
230
|
id: JOIN_SELECTED_CELLS_COMMAND_ID,
|
|
231
|
-
title: ( localize2(
|
|
231
|
+
title: ( localize2(8183, "Join Selected Cells")),
|
|
232
232
|
menu: {
|
|
233
233
|
id: MenuId.NotebookCellTitle,
|
|
234
234
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE))),
|
|
@@ -249,7 +249,7 @@ registerAction2(class ChangeCellToCodeAction extends NotebookMultiCellAction {
|
|
|
249
249
|
constructor() {
|
|
250
250
|
super({
|
|
251
251
|
id: CHANGE_CELL_TO_CODE_COMMAND_ID,
|
|
252
|
-
title: ( localize2(
|
|
252
|
+
title: ( localize2(8184, "Change Cell to Code")),
|
|
253
253
|
keybinding: {
|
|
254
254
|
when: ( (ContextKeyExpr.and(
|
|
255
255
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -283,7 +283,7 @@ registerAction2(class ChangeCellToMarkdownAction extends NotebookMultiCellAction
|
|
|
283
283
|
constructor() {
|
|
284
284
|
super({
|
|
285
285
|
id: CHANGE_CELL_TO_MARKDOWN_COMMAND_ID,
|
|
286
|
-
title: ( localize2(
|
|
286
|
+
title: ( localize2(8185, "Change Cell to Markdown")),
|
|
287
287
|
keybinding: {
|
|
288
288
|
when: ( (ContextKeyExpr.and(
|
|
289
289
|
NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -325,7 +325,7 @@ registerAction2(class CollapseCellInputAction extends NotebookMultiCellAction {
|
|
|
325
325
|
constructor() {
|
|
326
326
|
super({
|
|
327
327
|
id: COLLAPSE_CELL_INPUT_COMMAND_ID,
|
|
328
|
-
title: ( localize2(
|
|
328
|
+
title: ( localize2(8186, "Collapse Cell Input")),
|
|
329
329
|
keybinding: {
|
|
330
330
|
when: ( (ContextKeyExpr.and(
|
|
331
331
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -353,7 +353,7 @@ registerAction2(class ExpandCellInputAction extends NotebookMultiCellAction {
|
|
|
353
353
|
constructor() {
|
|
354
354
|
super({
|
|
355
355
|
id: EXPAND_CELL_INPUT_COMMAND_ID,
|
|
356
|
-
title: ( localize2(
|
|
356
|
+
title: ( localize2(8187, "Expand Cell Input")),
|
|
357
357
|
keybinding: {
|
|
358
358
|
when: ( (ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_INPUT_COLLAPSED))),
|
|
359
359
|
primary: KeyChord(2048 | 41 , 2048 | 33 ),
|
|
@@ -377,7 +377,7 @@ registerAction2(class CollapseCellOutputAction extends NotebookMultiCellAction {
|
|
|
377
377
|
constructor() {
|
|
378
378
|
super({
|
|
379
379
|
id: COLLAPSE_CELL_OUTPUT_COMMAND_ID,
|
|
380
|
-
title: ( localize2(
|
|
380
|
+
title: ( localize2(8188, "Collapse Cell Output")),
|
|
381
381
|
keybinding: {
|
|
382
382
|
when: ( (ContextKeyExpr.and(
|
|
383
383
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -403,7 +403,7 @@ registerAction2(class ExpandCellOuputAction extends NotebookMultiCellAction {
|
|
|
403
403
|
constructor() {
|
|
404
404
|
super({
|
|
405
405
|
id: EXPAND_CELL_OUTPUT_COMMAND_ID,
|
|
406
|
-
title: ( localize2(
|
|
406
|
+
title: ( localize2(8189, "Expand Cell Output")),
|
|
407
407
|
keybinding: {
|
|
408
408
|
when: ( (ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, NOTEBOOK_CELL_OUTPUT_COLLAPSED))),
|
|
409
409
|
primary: KeyChord(2048 | 41 , 50 ),
|
|
@@ -425,9 +425,9 @@ registerAction2(class extends NotebookMultiCellAction {
|
|
|
425
425
|
super({
|
|
426
426
|
id: TOGGLE_CELL_OUTPUTS_COMMAND_ID,
|
|
427
427
|
precondition: NOTEBOOK_CELL_LIST_FOCUSED,
|
|
428
|
-
title: ( localize2(
|
|
428
|
+
title: ( localize2(8190, "Toggle Outputs")),
|
|
429
429
|
metadata: {
|
|
430
|
-
description: ( localize(
|
|
430
|
+
description: ( localize(8190, "Toggle Outputs")),
|
|
431
431
|
args: cellExecutionArgs
|
|
432
432
|
}
|
|
433
433
|
});
|
|
@@ -452,7 +452,7 @@ registerAction2(class CollapseAllCellInputsAction extends NotebookMultiCellActio
|
|
|
452
452
|
constructor() {
|
|
453
453
|
super({
|
|
454
454
|
id: COLLAPSE_ALL_CELL_INPUTS_COMMAND_ID,
|
|
455
|
-
title: ( localize2(
|
|
455
|
+
title: ( localize2(8191, "Collapse All Cell Inputs")),
|
|
456
456
|
f1: true,
|
|
457
457
|
});
|
|
458
458
|
}
|
|
@@ -464,7 +464,7 @@ registerAction2(class ExpandAllCellInputsAction extends NotebookMultiCellAction
|
|
|
464
464
|
constructor() {
|
|
465
465
|
super({
|
|
466
466
|
id: EXPAND_ALL_CELL_INPUTS_COMMAND_ID,
|
|
467
|
-
title: ( localize2(
|
|
467
|
+
title: ( localize2(8192, "Expand All Cell Inputs")),
|
|
468
468
|
f1: true
|
|
469
469
|
});
|
|
470
470
|
}
|
|
@@ -476,7 +476,7 @@ registerAction2(class CollapseAllCellOutputsAction extends NotebookMultiCellActi
|
|
|
476
476
|
constructor() {
|
|
477
477
|
super({
|
|
478
478
|
id: COLLAPSE_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
479
|
-
title: ( localize2(
|
|
479
|
+
title: ( localize2(8193, "Collapse All Cell Outputs")),
|
|
480
480
|
f1: true,
|
|
481
481
|
});
|
|
482
482
|
}
|
|
@@ -488,7 +488,7 @@ registerAction2(class ExpandAllCellOutputsAction extends NotebookMultiCellAction
|
|
|
488
488
|
constructor() {
|
|
489
489
|
super({
|
|
490
490
|
id: EXPAND_ALL_CELL_OUTPUTS_COMMAND_ID,
|
|
491
|
-
title: ( localize2(
|
|
491
|
+
title: ( localize2(8194, "Expand All Cell Outputs")),
|
|
492
492
|
f1: true
|
|
493
493
|
});
|
|
494
494
|
}
|
|
@@ -500,7 +500,7 @@ registerAction2(class ToggleCellOutputScrolling extends NotebookMultiCellAction
|
|
|
500
500
|
constructor() {
|
|
501
501
|
super({
|
|
502
502
|
id: TOGGLE_CELL_OUTPUT_SCROLLING,
|
|
503
|
-
title: ( localize2(
|
|
503
|
+
title: ( localize2(8195, "Toggle Scroll Cell Output")),
|
|
504
504
|
keybinding: {
|
|
505
505
|
when: ( (ContextKeyExpr.and(
|
|
506
506
|
NOTEBOOK_CELL_LIST_FOCUSED,
|
|
@@ -5,9 +5,9 @@ import { NotebookExecutionType } from 'vscode/vscode/vs/workbench/contrib/notebo
|
|
|
5
5
|
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
6
6
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
7
|
import { NotebookSetting, CellKind } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
8
|
-
import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
8
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
9
9
|
import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
|
|
10
|
-
import { CodeCellViewModel } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
10
|
+
import { CodeCellViewModel } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
11
11
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
12
12
|
import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
13
13
|
|
|
@@ -4,8 +4,8 @@ import { CodeActionTriggerSource, CodeActionKind } from 'vscode/vscode/vs/editor
|
|
|
4
4
|
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
5
5
|
import { registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
6
6
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
|
-
import { NotebookCellAction, findTargetCellEditor } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
8
|
-
import { CodeCellViewModel } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
7
|
+
import { NotebookCellAction, findTargetCellEditor } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
8
|
+
import { CodeCellViewModel } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
9
9
|
import { NOTEBOOK_CELL_FOCUSED, NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS, NOTEBOOK_CELL_EDITOR_FOCUSED } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
10
10
|
|
|
11
11
|
const OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID = 'notebook.cell.openFailureActions';
|
|
@@ -13,7 +13,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID,
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(10988, "Show Cell Failure Actions")),
|
|
17
17
|
precondition: ( (ContextKeyExpr.and(
|
|
18
18
|
NOTEBOOK_CELL_FOCUSED,
|
|
19
19
|
NOTEBOOK_CELL_HAS_ERROR_DIAGNOSTICS,
|
|
@@ -45,7 +45,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
45
45
|
const editor = findTargetCellEditor(context, context.cell);
|
|
46
46
|
if (editor) {
|
|
47
47
|
const controller = CodeActionController.get(editor);
|
|
48
|
-
controller?.manualTriggerAtCurrentPosition(( localize(
|
|
48
|
+
controller?.manualTriggerAtCurrentPosition(( localize(10989, "No code actions available")), CodeActionTriggerSource.Default, { include: CodeActionKind.QuickFix });
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -11,8 +11,8 @@ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/c
|
|
|
11
11
|
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
12
12
|
import { OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID } from './cellDiagnosticsActions.js';
|
|
13
13
|
import { NotebookStatusBarController } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController';
|
|
14
|
-
import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
15
|
-
import { CodeCellViewModel } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
14
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
15
|
+
import { CodeCellViewModel } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel';
|
|
16
16
|
|
|
17
17
|
let DiagnosticCellStatusBarContrib = class DiagnosticCellStatusBarContrib extends Disposable {
|
|
18
18
|
static { this.id = 'workbench.notebook.statusBar.diagtnostic'; }
|
|
@@ -40,7 +40,7 @@ let DiagnosticCellStatusBarItem = class DiagnosticCellStatusBarItem extends Disp
|
|
|
40
40
|
let item;
|
|
41
41
|
if (error?.location) {
|
|
42
42
|
const keybinding = this.keybindingService.lookupKeybinding(OPEN_CELL_FAILURE_ACTIONS_COMMAND_ID)?.getLabel();
|
|
43
|
-
const tooltip = ( localize(
|
|
43
|
+
const tooltip = ( localize(10990, "Quick Actions {0}", `(${keybinding})`));
|
|
44
44
|
item = {
|
|
45
45
|
text: `$(sparkle)`,
|
|
46
46
|
tooltip,
|
|
@@ -3,7 +3,7 @@ import { Throttler } from 'vscode/vscode/vs/base/common/async';
|
|
|
3
3
|
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
4
4
|
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { NotebookVisibleCellObserver } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver';
|
|
6
|
-
import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
6
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
7
7
|
import { INotebookCellStatusBarService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service';
|
|
8
8
|
|
|
9
9
|
let ContributedStatusBarItemController = class ContributedStatusBarItemController extends Disposable {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js
CHANGED
|
@@ -39,7 +39,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
41
|
const searchTooltip = ( localize(
|
|
42
|
-
|
|
42
|
+
8158,
|
|
43
43
|
"Unknown cell language. Click to search for '{0}' extensions",
|
|
44
44
|
cell.language
|
|
45
45
|
));
|
|
@@ -55,7 +55,7 @@ let CellStatusBarLanguagePickerProvider = class CellStatusBarLanguagePickerProvi
|
|
|
55
55
|
statusBarItems.push({
|
|
56
56
|
text: displayLanguage,
|
|
57
57
|
command: CHANGE_CELL_LANGUAGE,
|
|
58
|
-
tooltip: ( localize(
|
|
58
|
+
tooltip: ( localize(8159, "Select Cell Language Mode")),
|
|
59
59
|
alignment: 2 ,
|
|
60
60
|
priority: -Number.MAX_SAFE_INTEGER
|
|
61
61
|
});
|
|
@@ -119,7 +119,7 @@ let CellStatusBarLanguageDetectionProvider = class CellStatusBarLanguageDetectio
|
|
|
119
119
|
const items = [];
|
|
120
120
|
if (cached.guess && currentLanguageId !== cached.guess) {
|
|
121
121
|
const detectedName = this._languageService.getLanguageName(cached.guess) || cached.guess;
|
|
122
|
-
let tooltip = ( localize(
|
|
122
|
+
let tooltip = ( localize(8160, "Accept Detected Language: {0}", detectedName));
|
|
123
123
|
const keybinding = this._keybindingService.lookupKeybinding(DETECT_CELL_LANGUAGE);
|
|
124
124
|
const label = keybinding?.getLabel();
|
|
125
125
|
if (label) {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js
CHANGED
|
@@ -7,12 +7,12 @@ import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITAB
|
|
|
7
7
|
import { getNotebookEditorFromEditorPane, expandCellRangesWithHiddenCells, cellRangeToViewCells } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
8
8
|
import { CopyAction, PasteAction, CutAction } from 'vscode/vscode/vs/editor/contrib/clipboard/browser/clipboard';
|
|
9
9
|
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
10
|
-
import { cloneNotebookCellTextModel } from 'vscode/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
|
|
10
|
+
import { cloneNotebookCellTextModel } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
|
|
11
11
|
import { SelectionStateType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
12
12
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
13
13
|
import { isNative } from 'vscode/vscode/vs/base/common/platform';
|
|
14
14
|
import { registerAction2, MenuId, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
15
|
-
import { NotebookCellAction, NotebookAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, NOTEBOOK_OUTPUT_WEBVIEW_ACTION_WEIGHT } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
15
|
+
import { NotebookCellAction, NotebookAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, NOTEBOOK_OUTPUT_WEBVIEW_ACTION_WEIGHT } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
16
16
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
17
17
|
import { InputFocusedContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
18
18
|
import { UndoCommand, RedoCommand } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
@@ -347,7 +347,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
347
347
|
constructor() {
|
|
348
348
|
super({
|
|
349
349
|
id: COPY_CELL_COMMAND_ID,
|
|
350
|
-
title: ( localize(
|
|
350
|
+
title: ( localize(8111, "Copy Cell")),
|
|
351
351
|
menu: {
|
|
352
352
|
id: MenuId.NotebookCellTitle,
|
|
353
353
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
@@ -370,7 +370,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
370
370
|
constructor() {
|
|
371
371
|
super({
|
|
372
372
|
id: CUT_CELL_COMMAND_ID,
|
|
373
|
-
title: ( localize(
|
|
373
|
+
title: ( localize(8112, "Cut Cell")),
|
|
374
374
|
menu: {
|
|
375
375
|
id: MenuId.NotebookCellTitle,
|
|
376
376
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE))),
|
|
@@ -393,7 +393,7 @@ registerAction2(class extends NotebookAction {
|
|
|
393
393
|
constructor() {
|
|
394
394
|
super({
|
|
395
395
|
id: PASTE_CELL_COMMAND_ID,
|
|
396
|
-
title: ( localize(
|
|
396
|
+
title: ( localize(8113, "Paste Cell")),
|
|
397
397
|
menu: {
|
|
398
398
|
id: MenuId.NotebookCellTitle,
|
|
399
399
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE))),
|
|
@@ -425,7 +425,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
425
425
|
constructor() {
|
|
426
426
|
super({
|
|
427
427
|
id: PASTE_CELL_ABOVE_COMMAND_ID,
|
|
428
|
-
title: ( localize(
|
|
428
|
+
title: ( localize(8114, "Paste Cell Above")),
|
|
429
429
|
keybinding: {
|
|
430
430
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
431
431
|
primary: 2048 | 1024 | 52 ,
|
|
@@ -469,7 +469,7 @@ registerAction2(class extends Action2 {
|
|
|
469
469
|
constructor() {
|
|
470
470
|
super({
|
|
471
471
|
id: 'workbench.action.toggleNotebookClipboardLog',
|
|
472
|
-
title: ( localize2(
|
|
472
|
+
title: ( localize2(8115, 'Toggle Notebook Clipboard Troubleshooting')),
|
|
473
473
|
category: Categories.Developer,
|
|
474
474
|
f1: true
|
|
475
475
|
});
|
|
@@ -486,7 +486,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
486
486
|
constructor() {
|
|
487
487
|
super({
|
|
488
488
|
id: 'notebook.cell.output.selectAll',
|
|
489
|
-
title: ( localize(
|
|
489
|
+
title: ( localize(8116, "Select All")),
|
|
490
490
|
keybinding: {
|
|
491
491
|
primary: 2048 | 31 ,
|
|
492
492
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED))),
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js
CHANGED
|
@@ -3,12 +3,12 @@ import { Delayer } from 'vscode/vscode/vs/base/common/async';
|
|
|
3
3
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
5
5
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
|
-
import { debugIconBreakpointForeground } from 'vscode/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution';
|
|
6
|
+
import { debugIconBreakpointForeground } from '@codingame/monaco-vscode-debug-notebook-common/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution';
|
|
7
7
|
import { topStackFrameColor, focusedStackFrameColor } from 'vscode/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
|
|
8
8
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
9
9
|
import { NotebookOverviewRulerLane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
10
|
-
import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
11
|
-
import { runningCellRulerDecorationColor } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
10
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
11
|
+
import { runningCellRulerDecorationColor } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
12
12
|
import { CellUri, NotebookCellExecutionState } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
13
13
|
import { NotebookExecutionType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
14
14
|
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js
CHANGED
|
@@ -8,7 +8,7 @@ import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/c
|
|
|
8
8
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
9
9
|
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
10
10
|
import { CENTER_ACTIVE_CELL } from '../navigation/arrow.js';
|
|
11
|
-
import { SELECT_KERNEL_ID } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
11
|
+
import { SELECT_KERNEL_ID } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
12
12
|
import { SELECT_NOTEBOOK_INDENTATION_ID } from '../../controller/editActions.js';
|
|
13
13
|
import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
14
14
|
import { NotebookCellsChangeType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
@@ -63,6 +63,7 @@ let KernelStatus = class KernelStatus extends Disposable {
|
|
|
63
63
|
this._editorDisposables = this._register(( (new DisposableStore())));
|
|
64
64
|
this._kernelInfoElement = this._register(( (new DisposableStore())));
|
|
65
65
|
this._register(this._editorService.onDidActiveEditorChange(() => this._updateStatusbar()));
|
|
66
|
+
this._updateStatusbar();
|
|
66
67
|
}
|
|
67
68
|
_updateStatusbar() {
|
|
68
69
|
this._editorDisposables.clear();
|
|
@@ -109,19 +110,19 @@ let KernelStatus = class KernelStatus extends Disposable {
|
|
|
109
110
|
}
|
|
110
111
|
const tooltip = kernel.description ?? kernel.detail ?? kernel.label;
|
|
111
112
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
112
|
-
name: ( localize(
|
|
113
|
+
name: ( localize(8167, "Notebook Kernel Info")),
|
|
113
114
|
text: `$(notebook-kernel-select) ${kernel.label}`,
|
|
114
115
|
ariaLabel: kernel.label,
|
|
115
|
-
tooltip: isSuggested ? ( localize(
|
|
116
|
+
tooltip: isSuggested ? ( localize(8168, "{0} (suggestion)", tooltip)) : tooltip,
|
|
116
117
|
command: SELECT_KERNEL_ID,
|
|
117
118
|
}, SELECT_KERNEL_ID, 1 , 10));
|
|
118
119
|
this._kernelInfoElement.add(kernel.onDidChange(() => this._showKernelStatus(notebook)));
|
|
119
120
|
}
|
|
120
121
|
else {
|
|
121
122
|
this._kernelInfoElement.add(this._statusbarService.addEntry({
|
|
122
|
-
name: ( localize(
|
|
123
|
-
text: ( localize(
|
|
124
|
-
ariaLabel: ( localize(
|
|
123
|
+
name: ( localize(8169, "Notebook Kernel Selection")),
|
|
124
|
+
text: ( localize(8170, "Select Kernel")),
|
|
125
|
+
ariaLabel: ( localize(8170, "Select Kernel")),
|
|
125
126
|
command: SELECT_KERNEL_ID,
|
|
126
127
|
kind: 'prominent'
|
|
127
128
|
}, SELECT_KERNEL_ID, 1 , 10));
|
|
@@ -142,6 +143,7 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
142
143
|
this._itemDisposables = this._register(( (new DisposableStore())));
|
|
143
144
|
this._accessor = this._register(( (new MutableDisposable())));
|
|
144
145
|
this._register(this._editorService.onDidActiveEditorChange(() => this._update()));
|
|
146
|
+
this._update();
|
|
145
147
|
}
|
|
146
148
|
_update() {
|
|
147
149
|
this._itemDisposables.clear();
|
|
@@ -166,7 +168,7 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
166
168
|
return;
|
|
167
169
|
}
|
|
168
170
|
const entry = {
|
|
169
|
-
name: ( localize(
|
|
171
|
+
name: ( localize(8171, "Notebook Editor Selections")),
|
|
170
172
|
text: newText,
|
|
171
173
|
ariaLabel: newText,
|
|
172
174
|
command: CENTER_ACTIVE_CELL
|
|
@@ -190,8 +192,8 @@ let ActiveCellStatus = class ActiveCellStatus extends Disposable {
|
|
|
190
192
|
const numSelected = editor.getSelections().reduce((prev, range) => prev + (range.end - range.start), 0);
|
|
191
193
|
const totalCells = editor.getLength();
|
|
192
194
|
return numSelected > 1 ?
|
|
193
|
-
( localize(
|
|
194
|
-
( localize(
|
|
195
|
+
( localize(8172, "Cell {0} ({1} selected)", idxFocused, numSelected)) :
|
|
196
|
+
( localize(8173, "Cell {0} of {1}", idxFocused, totalCells));
|
|
195
197
|
}
|
|
196
198
|
};
|
|
197
199
|
ActiveCellStatus = ( (__decorate([
|
|
@@ -213,6 +215,7 @@ let NotebookIndentationStatus = class NotebookIndentationStatus extends Disposab
|
|
|
213
215
|
this._update();
|
|
214
216
|
}
|
|
215
217
|
}));
|
|
218
|
+
this._update();
|
|
216
219
|
}
|
|
217
220
|
_update() {
|
|
218
221
|
this._itemDisposables.clear();
|
|
@@ -250,10 +253,10 @@ let NotebookIndentationStatus = class NotebookIndentationStatus extends Disposab
|
|
|
250
253
|
return;
|
|
251
254
|
}
|
|
252
255
|
const entry = {
|
|
253
|
-
name: ( localize(
|
|
256
|
+
name: ( localize(8174, "Notebook Indentation")),
|
|
254
257
|
text: newText,
|
|
255
258
|
ariaLabel: newText,
|
|
256
|
-
tooltip: ( localize(
|
|
259
|
+
tooltip: ( localize(8175, "Select Indentation")),
|
|
257
260
|
command: SELECT_NOTEBOOK_INDENTATION_ID
|
|
258
261
|
};
|
|
259
262
|
if (!this._accessor.value) {
|
|
@@ -292,5 +295,3 @@ NotebookEditorStatusContribution = ( (__decorate([
|
|
|
292
295
|
( (__param(0, IEditorGroupsService)))
|
|
293
296
|
], NotebookEditorStatusContribution)));
|
|
294
297
|
registerWorkbenchContribution2(NotebookEditorStatusContribution.ID, NotebookEditorStatusContribution, 3 );
|
|
295
|
-
|
|
296
|
-
export { ActiveCellStatus, KernelStatus, NotebookEditorStatusContribution, NotebookIndentationStatus };
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { throttle } from 'vscode/vscode/vs/base/common/decorators';
|
|
3
3
|
import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
4
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
5
5
|
import { NotebookCellExecutionState } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
6
6
|
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
7
7
|
import { IUserActivityService } from 'vscode/vscode/vs/workbench/services/userActivity/common/userActivityService.service';
|
|
@@ -8,9 +8,9 @@ import { localize2 } from 'vscode/vscode/vs/nls';
|
|
|
8
8
|
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
9
9
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
10
10
|
import { NotebookFindContrib } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget';
|
|
11
|
-
import { NotebookMultiCellAction } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
11
|
+
import { NotebookMultiCellAction } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
12
12
|
import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
13
|
-
import { registerNotebookContribution } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
13
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-chat-interactive-notebook-search-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
14
14
|
import { NotebookFindScopeType, CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
15
15
|
import { NOTEBOOK_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED, NOTEBOOK_IS_ACTIVE_EDITOR, INTERACTIVE_WINDOW_IS_ACTIVE_EDITOR } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
16
16
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
@@ -20,7 +20,7 @@ registerAction2(class extends Action2 {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
super({
|
|
22
22
|
id: 'notebook.hideFind',
|
|
23
|
-
title: ( localize2(
|
|
23
|
+
title: ( localize2(8117, 'Hide Find in Notebook')),
|
|
24
24
|
keybinding: {
|
|
25
25
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, KEYBINDING_CONTEXT_NOTEBOOK_FIND_WIDGET_FOCUSED))),
|
|
26
26
|
primary: 9 ,
|
|
@@ -43,7 +43,7 @@ registerAction2(class extends NotebookMultiCellAction {
|
|
|
43
43
|
constructor() {
|
|
44
44
|
super({
|
|
45
45
|
id: 'notebook.find',
|
|
46
|
-
title: ( localize2(
|
|
46
|
+
title: ( localize2(8118, 'Find in Notebook')),
|
|
47
47
|
keybinding: {
|
|
48
48
|
when: ( (ContextKeyExpr.and(
|
|
49
49
|
NOTEBOOK_EDITOR_FOCUSED,
|