@codingame/monaco-vscode-notebook-service-override 4.5.0 → 4.5.2
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.d.ts +1 -1
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +30 -44
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +24 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +30 -53
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +40 -84
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +9 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +35 -48
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +13 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +94 -77
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +13 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +8 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +25 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +71 -89
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +4 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +97 -119
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +7 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +128 -177
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +132 -145
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +70 -130
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +32 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +39 -64
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +28 -43
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +23 -66
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +58 -57
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +162 -264
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibility.js +33 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +58 -153
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +15 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +13 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +22 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +5 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +100 -92
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +6 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +41 -76
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +42 -45
- package/notebook.d.ts +0 -5
|
@@ -46,6 +46,7 @@ import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
|
46
46
|
import { NOTEBOOK_IS_ACTIVE_EDITOR } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
47
47
|
|
|
48
48
|
var NotebookCellOutline_1;
|
|
49
|
+
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline";
|
|
49
50
|
class NotebookOutlineTemplate {
|
|
50
51
|
static { this.templateId = 'NotebookOutlineRenderer'; }
|
|
51
52
|
constructor(container, iconClass, iconLabel, decoration, actionMenu, elementDisposables) {
|
|
@@ -70,25 +71,27 @@ let NotebookOutlineRenderer = class NotebookOutlineRenderer {
|
|
|
70
71
|
this.templateId = NotebookOutlineTemplate.templateId;
|
|
71
72
|
}
|
|
72
73
|
renderTemplate(container) {
|
|
73
|
-
const elementDisposables = ( new DisposableStore());
|
|
74
|
+
const elementDisposables = ( (new DisposableStore()));
|
|
74
75
|
container.classList.add('notebook-outline-element', 'show-file-icons');
|
|
75
76
|
const iconClass = document.createElement('div');
|
|
76
77
|
container.append(iconClass);
|
|
77
|
-
const iconLabel = ( new IconLabel(container, { supportHighlights: true }));
|
|
78
|
+
const iconLabel = ( (new IconLabel(container, { supportHighlights: true })));
|
|
78
79
|
const decoration = document.createElement('div');
|
|
79
80
|
decoration.className = 'element-decoration';
|
|
80
81
|
container.append(decoration);
|
|
81
82
|
const actionMenu = document.createElement('div');
|
|
82
83
|
actionMenu.className = 'action-menu';
|
|
83
84
|
container.append(actionMenu);
|
|
84
|
-
return (
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
return (
|
|
86
|
+
(new NotebookOutlineTemplate(
|
|
87
|
+
container,
|
|
88
|
+
iconClass,
|
|
89
|
+
iconLabel,
|
|
90
|
+
decoration,
|
|
91
|
+
actionMenu,
|
|
92
|
+
elementDisposables
|
|
93
|
+
))
|
|
94
|
+
);
|
|
92
95
|
}
|
|
93
96
|
renderElement(node, _index, template, _height) {
|
|
94
97
|
const extraClasses = [];
|
|
@@ -154,14 +157,14 @@ let NotebookOutlineRenderer = class NotebookOutlineRenderer {
|
|
|
154
157
|
NotebookOutlineContext.CellHasHeader.bindTo(scopedContextKeyService).set(node.element.level !== 7);
|
|
155
158
|
NotebookOutlineContext.OutlineElementTarget.bindTo(scopedContextKeyService).set(this._target);
|
|
156
159
|
this.setupFolding(isCodeCell, nbViewModel, scopedContextKeyService, template, nbCell);
|
|
157
|
-
const outlineEntryToolbar = template.elementDisposables.add(( new ToolBar(template.actionMenu, this._contextMenuService, {
|
|
160
|
+
const outlineEntryToolbar = template.elementDisposables.add(( (new ToolBar(template.actionMenu, this._contextMenuService, {
|
|
158
161
|
actionViewItemProvider: action => {
|
|
159
162
|
if (action instanceof MenuItemAction) {
|
|
160
163
|
return this._instantiationService.createInstance(MenuEntryActionViewItem, action, undefined);
|
|
161
164
|
}
|
|
162
165
|
return undefined;
|
|
163
166
|
},
|
|
164
|
-
})));
|
|
167
|
+
}))));
|
|
165
168
|
const menu = template.elementDisposables.add(this._menuService.createMenu(MenuId.NotebookOutlineActionMenu, scopedContextKeyService));
|
|
166
169
|
const actions = getOutlineToolbarActions(menu, { notebookEditor: this._editor, outlineEntry: node.element });
|
|
167
170
|
outlineEntryToolbar.setActions(actions.primary, actions.secondary);
|
|
@@ -220,14 +223,14 @@ let NotebookOutlineRenderer = class NotebookOutlineRenderer {
|
|
|
220
223
|
}));
|
|
221
224
|
}
|
|
222
225
|
};
|
|
223
|
-
NotebookOutlineRenderer = ( __decorate([
|
|
224
|
-
( __param(2, IThemeService)),
|
|
225
|
-
( __param(3, IConfigurationService)),
|
|
226
|
-
( __param(4, IContextMenuService)),
|
|
227
|
-
( __param(5, IContextKeyService)),
|
|
228
|
-
( __param(6, IMenuService)),
|
|
229
|
-
( __param(7, IInstantiationService))
|
|
230
|
-
], NotebookOutlineRenderer));
|
|
226
|
+
NotebookOutlineRenderer = ( (__decorate([
|
|
227
|
+
( (__param(2, IThemeService))),
|
|
228
|
+
( (__param(3, IConfigurationService))),
|
|
229
|
+
( (__param(4, IContextMenuService))),
|
|
230
|
+
( (__param(5, IContextKeyService))),
|
|
231
|
+
( (__param(6, IMenuService))),
|
|
232
|
+
( (__param(7, IInstantiationService)))
|
|
233
|
+
], NotebookOutlineRenderer)));
|
|
231
234
|
function getOutlineToolbarActions(menu, args) {
|
|
232
235
|
const primary = [];
|
|
233
236
|
const secondary = [];
|
|
@@ -280,9 +283,9 @@ let NotebookQuickPickProvider = class NotebookQuickPickProvider {
|
|
|
280
283
|
return result;
|
|
281
284
|
}
|
|
282
285
|
};
|
|
283
|
-
NotebookQuickPickProvider = ( __decorate([
|
|
284
|
-
( __param(1, IThemeService))
|
|
285
|
-
], NotebookQuickPickProvider));
|
|
286
|
+
NotebookQuickPickProvider = ( (__decorate([
|
|
287
|
+
( (__param(1, IThemeService)))
|
|
288
|
+
], NotebookQuickPickProvider)));
|
|
286
289
|
class NotebookComparator {
|
|
287
290
|
constructor() {
|
|
288
291
|
this._collator = new WindowIdleValue(mainWindow, () => new Intl.Collator(undefined, { numeric: true }));
|
|
@@ -307,12 +310,12 @@ let NotebookCellOutline = NotebookCellOutline_1 = class NotebookCellOutline {
|
|
|
307
310
|
constructor(_editor, _target, instantiationService, _editorService, _configurationService) {
|
|
308
311
|
this._editor = _editor;
|
|
309
312
|
this._editorService = _editorService;
|
|
310
|
-
this._dispoables = ( new DisposableStore());
|
|
311
|
-
this._onDidChange = ( new Emitter());
|
|
313
|
+
this._dispoables = ( (new DisposableStore()));
|
|
314
|
+
this._onDidChange = ( (new Emitter()));
|
|
312
315
|
this.onDidChange = this._onDidChange.event;
|
|
313
|
-
this._entriesDisposables = ( new DisposableStore());
|
|
316
|
+
this._entriesDisposables = ( (new DisposableStore()));
|
|
314
317
|
this.outlineKind = 'notebookCells';
|
|
315
|
-
this._localDisposables = ( new DisposableStore());
|
|
318
|
+
this._localDisposables = ( (new DisposableStore()));
|
|
316
319
|
const installSelectionListener = () => {
|
|
317
320
|
const notebookEditor = _editor.getControl();
|
|
318
321
|
if (!notebookEditor?.hasModel()) {
|
|
@@ -338,16 +341,16 @@ let NotebookCellOutline = NotebookCellOutline_1 = class NotebookCellOutline {
|
|
|
338
341
|
return this.getChildren(parent, _configurationService);
|
|
339
342
|
}
|
|
340
343
|
};
|
|
341
|
-
const delegate = ( new NotebookOutlineVirtualDelegate());
|
|
344
|
+
const delegate = ( (new NotebookOutlineVirtualDelegate()));
|
|
342
345
|
const renderers = [instantiationService.createInstance(NotebookOutlineRenderer, this._editor.getControl(), _target)];
|
|
343
|
-
const comparator = ( new NotebookComparator());
|
|
346
|
+
const comparator = ( (new NotebookComparator()));
|
|
344
347
|
const options = {
|
|
345
348
|
collapseByDefault: _target === 2 || ((_target === 1 && _configurationService.getValue("outline.collapseItems" ) === "alwaysCollapse") ),
|
|
346
349
|
expandOnlyOnTwistieClick: true,
|
|
347
350
|
multipleSelectionSupport: false,
|
|
348
|
-
accessibilityProvider: ( new NotebookOutlineAccessibility()),
|
|
349
|
-
identityProvider: { getId: element => ( element.cell.uri.toString()) },
|
|
350
|
-
keyboardNavigationLabelProvider: ( new NotebookNavigationLabelProvider())
|
|
351
|
+
accessibilityProvider: ( (new NotebookOutlineAccessibility())),
|
|
352
|
+
identityProvider: { getId: element => ( (element.cell.uri.toString())) },
|
|
353
|
+
keyboardNavigationLabelProvider: ( (new NotebookNavigationLabelProvider()))
|
|
351
354
|
};
|
|
352
355
|
this.config = {
|
|
353
356
|
breadcrumbsDataSource: {
|
|
@@ -473,11 +476,11 @@ let NotebookCellOutline = NotebookCellOutline_1 = class NotebookCellOutline {
|
|
|
473
476
|
this._localDisposables.dispose();
|
|
474
477
|
}
|
|
475
478
|
};
|
|
476
|
-
NotebookCellOutline = NotebookCellOutline_1 = ( __decorate([
|
|
477
|
-
( __param(2, IInstantiationService)),
|
|
478
|
-
( __param(3, IEditorService)),
|
|
479
|
-
( __param(4, IConfigurationService))
|
|
480
|
-
], NotebookCellOutline));
|
|
479
|
+
NotebookCellOutline = NotebookCellOutline_1 = ( (__decorate([
|
|
480
|
+
( (__param(2, IInstantiationService))),
|
|
481
|
+
( (__param(3, IEditorService))),
|
|
482
|
+
( (__param(4, IConfigurationService)))
|
|
483
|
+
], NotebookCellOutline)));
|
|
481
484
|
let NotebookOutlineCreator = class NotebookOutlineCreator {
|
|
482
485
|
constructor(outlineService, _instantiationService, _configurationService) {
|
|
483
486
|
this._instantiationService = _instantiationService;
|
|
@@ -501,20 +504,20 @@ let NotebookOutlineCreator = class NotebookOutlineCreator {
|
|
|
501
504
|
return outline;
|
|
502
505
|
}
|
|
503
506
|
};
|
|
504
|
-
NotebookOutlineCreator = ( __decorate([
|
|
505
|
-
( __param(0, IOutlineService)),
|
|
506
|
-
( __param(1, IInstantiationService)),
|
|
507
|
-
( __param(2, IConfigurationService))
|
|
508
|
-
], NotebookOutlineCreator));
|
|
507
|
+
NotebookOutlineCreator = ( (__decorate([
|
|
508
|
+
( (__param(0, IOutlineService))),
|
|
509
|
+
( (__param(1, IInstantiationService))),
|
|
510
|
+
( (__param(2, IConfigurationService)))
|
|
511
|
+
], NotebookOutlineCreator)));
|
|
509
512
|
const NotebookOutlineContext = {
|
|
510
|
-
CellKind: ( new RawContextKey('notebookCellKind', undefined)),
|
|
511
|
-
CellHasChildren: ( new RawContextKey('notebookCellHasChildren', false)),
|
|
512
|
-
CellHasHeader: ( new RawContextKey('notebookCellHasHeader', false)),
|
|
513
|
-
CellFoldingState: ( new RawContextKey('notebookCellFoldingState', 0 )),
|
|
514
|
-
OutlineElementTarget: ( new RawContextKey('notebookOutlineElementTarget', undefined)),
|
|
513
|
+
CellKind: ( (new RawContextKey('notebookCellKind', undefined))),
|
|
514
|
+
CellHasChildren: ( (new RawContextKey('notebookCellHasChildren', false))),
|
|
515
|
+
CellHasHeader: ( (new RawContextKey('notebookCellHasHeader', false))),
|
|
516
|
+
CellFoldingState: ( (new RawContextKey('notebookCellFoldingState', 0 ))),
|
|
517
|
+
OutlineElementTarget: ( (new RawContextKey('notebookOutlineElementTarget', undefined))),
|
|
515
518
|
};
|
|
516
|
-
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(NotebookOutlineCreator, 4 );
|
|
517
|
-
( Registry.as(Extensions$1.Configuration)).registerConfiguration({
|
|
519
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(NotebookOutlineCreator, 4 );
|
|
520
|
+
( (Registry.as(Extensions$1.Configuration))).registerConfiguration({
|
|
518
521
|
id: 'notebook',
|
|
519
522
|
order: 100,
|
|
520
523
|
type: 'object',
|
|
@@ -523,44 +526,36 @@ const NotebookOutlineContext = {
|
|
|
523
526
|
type: 'boolean',
|
|
524
527
|
default: true,
|
|
525
528
|
markdownDescription: ( localizeWithPath(
|
|
526
|
-
|
|
527
|
-
|
|
529
|
+
_moduleId,
|
|
530
|
+
0,
|
|
528
531
|
"When enabled, notebook outline will show only markdown cells containing a header."
|
|
529
532
|
))
|
|
530
533
|
},
|
|
531
534
|
[NotebookSetting.outlineShowCodeCells]: {
|
|
532
535
|
type: 'boolean',
|
|
533
536
|
default: false,
|
|
534
|
-
markdownDescription: ( localizeWithPath(
|
|
535
|
-
'vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline',
|
|
536
|
-
'outline.showCodeCells',
|
|
537
|
-
"When enabled, notebook outline shows code cells."
|
|
538
|
-
))
|
|
537
|
+
markdownDescription: ( localizeWithPath(_moduleId, 1, "When enabled, notebook outline shows code cells."))
|
|
539
538
|
},
|
|
540
539
|
[NotebookSetting.outlineShowCodeCellSymbols]: {
|
|
541
540
|
type: 'boolean',
|
|
542
541
|
default: true,
|
|
543
542
|
markdownDescription: ( localizeWithPath(
|
|
544
|
-
|
|
545
|
-
|
|
543
|
+
_moduleId,
|
|
544
|
+
2,
|
|
546
545
|
"When enabled, notebook outline shows code cell symbols. Relies on `notebook.outline.showCodeCells` being enabled."
|
|
547
546
|
))
|
|
548
547
|
},
|
|
549
548
|
[NotebookSetting.breadcrumbsShowCodeCells]: {
|
|
550
549
|
type: 'boolean',
|
|
551
550
|
default: true,
|
|
552
|
-
markdownDescription: ( localizeWithPath(
|
|
553
|
-
'vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline',
|
|
554
|
-
'breadcrumbs.showCodeCells',
|
|
555
|
-
"When enabled, notebook breadcrumbs contain code cells."
|
|
556
|
-
))
|
|
551
|
+
markdownDescription: ( localizeWithPath(_moduleId, 3, "When enabled, notebook breadcrumbs contain code cells."))
|
|
557
552
|
},
|
|
558
553
|
[NotebookSetting.gotoSymbolsAllSymbols]: {
|
|
559
554
|
type: 'boolean',
|
|
560
555
|
default: true,
|
|
561
556
|
markdownDescription: ( localizeWithPath(
|
|
562
|
-
|
|
563
|
-
|
|
557
|
+
_moduleId,
|
|
558
|
+
4,
|
|
564
559
|
"When enabled, the Go to Symbol Quick Pick will display full code symbols from the notebook, as well as Markdown headers."
|
|
565
560
|
))
|
|
566
561
|
},
|
|
@@ -568,28 +563,23 @@ const NotebookOutlineContext = {
|
|
|
568
563
|
});
|
|
569
564
|
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
570
565
|
submenu: MenuId.NotebookOutlineFilter,
|
|
571
|
-
title: ( localizeWithPath(
|
|
572
|
-
'vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline',
|
|
573
|
-
'filter',
|
|
574
|
-
"Filter Entries"
|
|
575
|
-
)),
|
|
566
|
+
title: ( localizeWithPath(_moduleId, 5, "Filter Entries")),
|
|
576
567
|
icon: Codicon.filter,
|
|
577
568
|
group: 'navigation',
|
|
578
569
|
order: -1,
|
|
579
|
-
when: ( ContextKeyExpr.and(
|
|
570
|
+
when: ( (ContextKeyExpr.and(
|
|
571
|
+
(ContextKeyExpr.equals('view', IOutlinePane.Id)),
|
|
572
|
+
NOTEBOOK_IS_ACTIVE_EDITOR
|
|
573
|
+
))),
|
|
580
574
|
});
|
|
581
575
|
registerAction2(class ToggleShowMarkdownHeadersOnly extends Action2 {
|
|
582
576
|
constructor() {
|
|
583
577
|
super({
|
|
584
578
|
id: 'notebook.outline.toggleShowMarkdownHeadersOnly',
|
|
585
|
-
title: ( localizeWithPath(
|
|
586
|
-
'vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline',
|
|
587
|
-
'toggleShowMarkdownHeadersOnly',
|
|
588
|
-
"Markdown Headers Only"
|
|
589
|
-
)),
|
|
579
|
+
title: ( localizeWithPath(_moduleId, 6, "Markdown Headers Only")),
|
|
590
580
|
f1: false,
|
|
591
581
|
toggled: {
|
|
592
|
-
condition: ( ContextKeyExpr.equals('config.notebook.outline.showMarkdownHeadersOnly', true))
|
|
582
|
+
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showMarkdownHeadersOnly', true)))
|
|
593
583
|
},
|
|
594
584
|
menu: {
|
|
595
585
|
id: MenuId.NotebookOutlineFilter,
|
|
@@ -607,14 +597,10 @@ registerAction2(class ToggleCodeCellEntries extends Action2 {
|
|
|
607
597
|
constructor() {
|
|
608
598
|
super({
|
|
609
599
|
id: 'notebook.outline.toggleCodeCells',
|
|
610
|
-
title: ( localizeWithPath(
|
|
611
|
-
'vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline',
|
|
612
|
-
'toggleCodeCells',
|
|
613
|
-
"Code Cells"
|
|
614
|
-
)),
|
|
600
|
+
title: ( localizeWithPath(_moduleId, 7, "Code Cells")),
|
|
615
601
|
f1: false,
|
|
616
602
|
toggled: {
|
|
617
|
-
condition: ( ContextKeyExpr.equals('config.notebook.outline.showCodeCells', true))
|
|
603
|
+
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCells', true)))
|
|
618
604
|
},
|
|
619
605
|
menu: {
|
|
620
606
|
id: MenuId.NotebookOutlineFilter,
|
|
@@ -633,14 +619,10 @@ registerAction2(class ToggleCodeCellSymbolEntries extends Action2 {
|
|
|
633
619
|
constructor() {
|
|
634
620
|
super({
|
|
635
621
|
id: 'notebook.outline.toggleCodeCellSymbols',
|
|
636
|
-
title: ( localizeWithPath(
|
|
637
|
-
'vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline',
|
|
638
|
-
'toggleCodeCellSymbols',
|
|
639
|
-
"Code Cell Symbols"
|
|
640
|
-
)),
|
|
622
|
+
title: ( localizeWithPath(_moduleId, 8, "Code Cell Symbols")),
|
|
641
623
|
f1: false,
|
|
642
624
|
toggled: {
|
|
643
|
-
condition: ( ContextKeyExpr.equals('config.notebook.outline.showCodeCellSymbols', true))
|
|
625
|
+
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCellSymbols', true)))
|
|
644
626
|
},
|
|
645
627
|
menu: {
|
|
646
628
|
id: MenuId.NotebookOutlineFilter,
|
|
@@ -3,12 +3,13 @@ import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/comm
|
|
|
3
3
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
4
4
|
import { NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
5
5
|
|
|
6
|
+
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile";
|
|
6
7
|
var NotebookProfileType;
|
|
7
|
-
( (function(NotebookProfileType) {
|
|
8
|
+
( ((function(NotebookProfileType) {
|
|
8
9
|
NotebookProfileType["default"] = "default";
|
|
9
10
|
NotebookProfileType["jupyter"] = "jupyter";
|
|
10
11
|
NotebookProfileType["colab"] = "colab";
|
|
11
|
-
})(NotebookProfileType || (NotebookProfileType = {})));
|
|
12
|
+
})(NotebookProfileType || (NotebookProfileType = {}))));
|
|
12
13
|
const profiles = {
|
|
13
14
|
[NotebookProfileType.default]: {
|
|
14
15
|
[NotebookSetting.focusIndicator]: 'gutter',
|
|
@@ -52,11 +53,7 @@ registerAction2(class extends Action2 {
|
|
|
52
53
|
constructor() {
|
|
53
54
|
super({
|
|
54
55
|
id: 'notebook.setProfile',
|
|
55
|
-
title: ( localizeWithPath(
|
|
56
|
-
'vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile',
|
|
57
|
-
'setProfileTitle',
|
|
58
|
-
"Set Profile"
|
|
59
|
-
))
|
|
56
|
+
title: ( localizeWithPath(_moduleId, 0, "Set Profile"))
|
|
60
57
|
});
|
|
61
58
|
}
|
|
62
59
|
async run(accessor, args) {
|