@codingame/monaco-vscode-notebook-service-override 7.1.0 → 7.1.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 +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +14 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +22 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +3 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +5 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +7 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +12 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +3 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +5 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +16 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +4 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +13 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +15 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +25 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +3 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +629 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +23 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +25 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +18 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +208 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +13 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +11 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +12 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +95 -163
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +38 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +11 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +43 -53
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +2 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +5 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +2 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +2 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +16 -20
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +2 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
4
4
|
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
5
5
|
import { DisposableStore, Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
@@ -28,12 +28,11 @@ import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
|
28
28
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
29
29
|
import { CodeActionParticipantUtils } from '../saveParticipants/saveParticipants.js';
|
|
30
30
|
|
|
31
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/format/formatting";
|
|
32
31
|
registerAction2(class extends Action2 {
|
|
33
32
|
constructor() {
|
|
34
33
|
super({
|
|
35
34
|
id: 'notebook.format',
|
|
36
|
-
title: (
|
|
35
|
+
title: ( localize2(7962, 'Format Notebook')),
|
|
37
36
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
38
37
|
precondition: ( (ContextKeyExpr.and(NOTEBOOK_IS_ACTIVE_EDITOR, NOTEBOOK_EDITOR_EDITABLE))),
|
|
39
38
|
keybinding: {
|
|
@@ -84,7 +83,7 @@ registerAction2(class extends Action2 {
|
|
|
84
83
|
}
|
|
85
84
|
return [];
|
|
86
85
|
}))));
|
|
87
|
-
await bulkEditService.apply( allCellEdits.flat(), { label: (
|
|
86
|
+
await bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7963, "Format Notebook")), code: 'undoredo.formatNotebook', });
|
|
88
87
|
}
|
|
89
88
|
}
|
|
90
89
|
finally {
|
|
@@ -96,7 +95,7 @@ registerEditorAction(class FormatCellAction extends EditorAction {
|
|
|
96
95
|
constructor() {
|
|
97
96
|
super({
|
|
98
97
|
id: 'notebook.formatCell',
|
|
99
|
-
label: (
|
|
98
|
+
label: ( localize(7964, "Format Cell")),
|
|
100
99
|
alias: 'Format Cell',
|
|
101
100
|
precondition: ( (ContextKeyExpr.and(
|
|
102
101
|
NOTEBOOK_IS_ACTIVE_EDITOR,
|
|
@@ -168,7 +167,7 @@ let FormatOnCellExecutionParticipant = class FormatOnCellExecutionParticipant {
|
|
|
168
167
|
}
|
|
169
168
|
return [];
|
|
170
169
|
}))));
|
|
171
|
-
await this.bulkEditService.apply( allCellEdits.flat(), { label: (
|
|
170
|
+
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7965, "Format Cells")), code: 'undoredo.notebooks.onWillExecuteFormat', });
|
|
172
171
|
}
|
|
173
172
|
finally {
|
|
174
173
|
disposable.dispose();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
-
import {
|
|
3
|
+
import { localize2 } from 'vscode/vscode/vs/nls';
|
|
4
4
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
5
5
|
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
6
6
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
@@ -18,7 +18,6 @@ import { NotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook
|
|
|
18
18
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
19
19
|
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
20
20
|
|
|
21
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted";
|
|
22
21
|
const hasOpenedNotebookKey = 'hasOpenedNotebook';
|
|
23
22
|
const hasShownGettingStartedKey = 'hasShownNotebookGettingStarted';
|
|
24
23
|
let NotebookGettingStarted = class NotebookGettingStarted extends Disposable {
|
|
@@ -66,7 +65,7 @@ registerAction2(class NotebookClearNotebookLayoutAction extends Action2 {
|
|
|
66
65
|
constructor() {
|
|
67
66
|
super({
|
|
68
67
|
id: 'workbench.notebook.layout.gettingStarted',
|
|
69
|
-
title: (
|
|
68
|
+
title: ( localize2(7976, "Reset notebook getting started")),
|
|
70
69
|
f1: true,
|
|
71
70
|
precondition: ( (ContextKeyExpr.equals(`config.${NotebookSetting.openGettingStarted}`, true))),
|
|
72
71
|
category: Categories.Developer,
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { localize2 } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { Action2, MenuId, registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
3
3
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
4
4
|
import { NOTEBOOK_ACTIONS_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
5
5
|
import { NotebookSetting } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
6
6
|
|
|
7
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions";
|
|
8
7
|
const TOGGLE_CELL_TOOLBAR_POSITION = 'notebook.toggleCellToolbarPosition';
|
|
9
8
|
class ToggleCellToolbarPositionAction extends Action2 {
|
|
10
9
|
constructor() {
|
|
11
10
|
super({
|
|
12
11
|
id: TOGGLE_CELL_TOOLBAR_POSITION,
|
|
13
|
-
title: (
|
|
12
|
+
title: ( localize2(7977, 'Toggle Cell Toolbar Position')),
|
|
14
13
|
menu: [{
|
|
15
14
|
id: MenuId.NotebookCellTitle,
|
|
16
15
|
group: 'View',
|
|
@@ -2,7 +2,7 @@ import { timeout } from 'vscode/vscode/vs/base/common/async';
|
|
|
2
2
|
import { KeyCode, KeyMod } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
3
3
|
import { EditorExtensionsRegistry } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
4
4
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
5
|
-
import {
|
|
5
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
6
6
|
import { CONTEXT_ACCESSIBILITY_MODE_ENABLED } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
7
7
|
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
8
8
|
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
@@ -17,7 +17,6 @@ import { CellEditState } from 'vscode/vscode/vs/workbench/contrib/notebook/brows
|
|
|
17
17
|
import { NOTEBOOK_EDITOR_CURSOR_BOUNDARY, CellKind } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
18
18
|
import { NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_TYPE, NOTEBOOK_CELL_MARKDOWN_EDIT_MODE, NOTEBOOK_CURSOR_NAVIGATION_MODE, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_CELL_EDITOR_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
19
19
|
|
|
20
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/navigation/arrow";
|
|
21
20
|
const NOTEBOOK_FOCUS_TOP = 'notebook.focusTop';
|
|
22
21
|
const NOTEBOOK_FOCUS_BOTTOM = 'notebook.focusBottom';
|
|
23
22
|
const NOTEBOOK_FOCUS_PREVIOUS_EDITOR = 'notebook.focusPreviousEditor';
|
|
@@ -33,9 +32,8 @@ registerAction2(class extends Action2 {
|
|
|
33
32
|
constructor() {
|
|
34
33
|
super({
|
|
35
34
|
id: 'notebook.cell.nullAction',
|
|
36
|
-
title: (
|
|
37
|
-
|
|
38
|
-
0,
|
|
35
|
+
title: ( localize(
|
|
36
|
+
7978,
|
|
39
37
|
"Keypresses that should be handled by the focused element in the cell output."
|
|
40
38
|
)),
|
|
41
39
|
keybinding: [{
|
|
@@ -58,7 +56,7 @@ registerAction2(class FocusNextCellAction extends NotebookCellAction {
|
|
|
58
56
|
constructor() {
|
|
59
57
|
super({
|
|
60
58
|
id: NOTEBOOK_FOCUS_NEXT_EDITOR,
|
|
61
|
-
title: (
|
|
59
|
+
title: ( localize(7979, 'Focus Next Cell Editor')),
|
|
62
60
|
keybinding: [
|
|
63
61
|
{
|
|
64
62
|
when: ( (ContextKeyExpr.and(
|
|
@@ -133,7 +131,7 @@ registerAction2(class FocusPreviousCellAction extends NotebookCellAction {
|
|
|
133
131
|
constructor() {
|
|
134
132
|
super({
|
|
135
133
|
id: NOTEBOOK_FOCUS_PREVIOUS_EDITOR,
|
|
136
|
-
title: (
|
|
134
|
+
title: ( localize(7980, 'Focus Previous Cell Editor')),
|
|
137
135
|
keybinding: [
|
|
138
136
|
{
|
|
139
137
|
when: ( (ContextKeyExpr.and(
|
|
@@ -199,7 +197,7 @@ registerAction2(class extends NotebookAction {
|
|
|
199
197
|
constructor() {
|
|
200
198
|
super({
|
|
201
199
|
id: NOTEBOOK_FOCUS_TOP,
|
|
202
|
-
title: (
|
|
200
|
+
title: ( localize(7981, 'Focus First Cell')),
|
|
203
201
|
keybinding: [
|
|
204
202
|
{
|
|
205
203
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
@@ -231,7 +229,7 @@ registerAction2(class extends NotebookAction {
|
|
|
231
229
|
constructor() {
|
|
232
230
|
super({
|
|
233
231
|
id: NOTEBOOK_FOCUS_BOTTOM,
|
|
234
|
-
title: (
|
|
232
|
+
title: ( localize(7982, 'Focus Last Cell')),
|
|
235
233
|
keybinding: [
|
|
236
234
|
{
|
|
237
235
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
@@ -268,7 +266,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
268
266
|
constructor() {
|
|
269
267
|
super({
|
|
270
268
|
id: FOCUS_IN_OUTPUT_COMMAND_ID,
|
|
271
|
-
title: (
|
|
269
|
+
title: ( localize(7983, 'Focus In Active Cell Output')),
|
|
272
270
|
keybinding: {
|
|
273
271
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_CELL_HAS_OUTPUTS))),
|
|
274
272
|
primary: KeyMod.CtrlCmd | KeyCode.DownArrow,
|
|
@@ -287,7 +285,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
287
285
|
constructor() {
|
|
288
286
|
super({
|
|
289
287
|
id: FOCUS_OUT_OUTPUT_COMMAND_ID,
|
|
290
|
-
title: (
|
|
288
|
+
title: ( localize(7984, 'Focus Out Active Cell Output')),
|
|
291
289
|
keybinding: {
|
|
292
290
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED))),
|
|
293
291
|
primary: KeyMod.CtrlCmd | KeyCode.UpArrow,
|
|
@@ -306,7 +304,7 @@ registerAction2(class CenterActiveCellAction extends NotebookCellAction {
|
|
|
306
304
|
constructor() {
|
|
307
305
|
super({
|
|
308
306
|
id: CENTER_ACTIVE_CELL,
|
|
309
|
-
title: (
|
|
307
|
+
title: ( localize(7985, "Center Active Cell")),
|
|
310
308
|
keybinding: {
|
|
311
309
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
312
310
|
primary: KeyMod.CtrlCmd | KeyCode.KeyL,
|
|
@@ -325,7 +323,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
325
323
|
constructor() {
|
|
326
324
|
super({
|
|
327
325
|
id: NOTEBOOK_CURSOR_PAGEUP_COMMAND_ID,
|
|
328
|
-
title: (
|
|
326
|
+
title: ( localize(7986, "Cell Cursor Page Up")),
|
|
329
327
|
keybinding: [
|
|
330
328
|
{
|
|
331
329
|
when: ( (ContextKeyExpr.and(
|
|
@@ -347,7 +345,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
347
345
|
constructor() {
|
|
348
346
|
super({
|
|
349
347
|
id: NOTEBOOK_CURSOR_PAGEUP_SELECT_COMMAND_ID,
|
|
350
|
-
title: (
|
|
348
|
+
title: ( localize(7987, "Cell Cursor Page Up Select")),
|
|
351
349
|
keybinding: [
|
|
352
350
|
{
|
|
353
351
|
when: ( (ContextKeyExpr.and(
|
|
@@ -370,7 +368,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
370
368
|
constructor() {
|
|
371
369
|
super({
|
|
372
370
|
id: NOTEBOOK_CURSOR_PAGEDOWN_COMMAND_ID,
|
|
373
|
-
title: (
|
|
371
|
+
title: ( localize(7988, "Cell Cursor Page Down")),
|
|
374
372
|
keybinding: [
|
|
375
373
|
{
|
|
376
374
|
when: ( (ContextKeyExpr.and(
|
|
@@ -392,7 +390,7 @@ registerAction2(class extends NotebookCellAction {
|
|
|
392
390
|
constructor() {
|
|
393
391
|
super({
|
|
394
392
|
id: NOTEBOOK_CURSOR_PAGEDOWN_SELECT_COMMAND_ID,
|
|
395
|
-
title: (
|
|
393
|
+
title: ( localize(7989, "Cell Cursor Page Down Select")),
|
|
396
394
|
keybinding: [
|
|
397
395
|
{
|
|
398
396
|
when: ( (ContextKeyExpr.and(
|
|
@@ -425,9 +423,8 @@ function getPageSize(context) {
|
|
|
425
423
|
'notebook.navigation.allowNavigateToSurroundingCells': {
|
|
426
424
|
type: 'boolean',
|
|
427
425
|
default: true,
|
|
428
|
-
markdownDescription: (
|
|
429
|
-
|
|
430
|
-
12,
|
|
426
|
+
markdownDescription: ( localize(
|
|
427
|
+
7990,
|
|
431
428
|
"When enabled cursor can navigate to the next/previous cell when the current cursor in the cell editor is at the first/last line."
|
|
432
429
|
))
|
|
433
430
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
-
import {
|
|
3
|
+
import { localize2 } from 'vscode/vscode/vs/nls';
|
|
4
4
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
5
5
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
6
6
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
@@ -17,7 +17,6 @@ import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/noteb
|
|
|
17
17
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
18
18
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
19
19
|
|
|
20
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables";
|
|
21
20
|
let NotebookVariables = class NotebookVariables extends Disposable {
|
|
22
21
|
constructor(contextKeyService, configurationService, editorService, notebookExecutionStateService, notebookKernelService, notebookDocumentService) {
|
|
23
22
|
super();
|
|
@@ -67,7 +66,7 @@ let NotebookVariables = class NotebookVariables extends Disposable {
|
|
|
67
66
|
if (debugViewContainer) {
|
|
68
67
|
const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
|
|
69
68
|
const viewDescriptor = {
|
|
70
|
-
id: 'NOTEBOOK_VARIABLES', name: (
|
|
69
|
+
id: 'NOTEBOOK_VARIABLES', name: ( localize2(8055, "Notebook Variables")),
|
|
71
70
|
containerIcon: variablesViewIcon, ctorDescriptor: ( (new SyncDescriptor(NotebookVariablesView))),
|
|
72
71
|
order: 50, weight: 5, canToggleVisibility: true, canMoveView: true, collapsed: true, when: NOTEBOOK_VARIABLE_VIEW_ENABLED,
|
|
73
72
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
2
|
-
import {
|
|
2
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { variablePageSize } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService';
|
|
4
4
|
|
|
5
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource";
|
|
6
5
|
class NotebookVariableDataSource {
|
|
7
6
|
constructor(notebookKernelService) {
|
|
8
7
|
this.notebookKernelService = notebookKernelService;
|
|
@@ -75,7 +74,7 @@ class NotebookVariableDataSource {
|
|
|
75
74
|
notebook: parent.notebook,
|
|
76
75
|
id: parent.id + `${last + 1}`,
|
|
77
76
|
extHostId: parent.extHostId,
|
|
78
|
-
name: (
|
|
77
|
+
name: ( localize(11396, "Display limit reached")),
|
|
79
78
|
value: '',
|
|
80
79
|
indexedChildrenCount: 0,
|
|
81
80
|
hasNamedChildren: false
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { $ as $$1, append } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
3
|
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import {
|
|
4
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
5
5
|
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
6
6
|
import 'vscode/vscode/vs/platform/list/browser/listService';
|
|
7
7
|
import { renderExpressionValue } from 'vscode/vscode/vs/workbench/contrib/debug/browser/baseDebugView';
|
|
8
8
|
|
|
9
9
|
var NotebookVariableRenderer_1;
|
|
10
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree";
|
|
11
10
|
const $ = $$1;
|
|
12
11
|
const MAX_VALUE_RENDER_LENGTH_IN_VIEWLET = 1024;
|
|
13
12
|
class NotebookVariablesDelegate {
|
|
@@ -56,10 +55,10 @@ NotebookVariableRenderer = NotebookVariableRenderer_1 = ( (__decorate([
|
|
|
56
55
|
], NotebookVariableRenderer)));
|
|
57
56
|
class NotebookVariableAccessibilityProvider {
|
|
58
57
|
getWidgetAriaLabel() {
|
|
59
|
-
return (
|
|
58
|
+
return ( localize(11397, "Notebook Variables"));
|
|
60
59
|
}
|
|
61
60
|
getAriaLabel(element) {
|
|
62
|
-
return (
|
|
61
|
+
return ( localize(11398, "Variable {0}, value {1}", element.name, element.value));
|
|
63
62
|
}
|
|
64
63
|
}
|
|
65
64
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
2
|
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
-
import {
|
|
3
|
+
import { localize2 } from 'vscode/vscode/vs/nls';
|
|
4
4
|
import { createAndFillInContextMenuActions } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
5
5
|
import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
6
6
|
import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions.service';
|
|
@@ -26,10 +26,9 @@ import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contr
|
|
|
26
26
|
import { INotebookKernelService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
27
27
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
28
28
|
|
|
29
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView";
|
|
30
29
|
let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
31
30
|
static { this.ID = 'notebookVariablesView'; }
|
|
32
|
-
static { this.TITLE = (
|
|
31
|
+
static { this.TITLE = ( localize2(10725, "Notebook Variables")); }
|
|
33
32
|
constructor(options, editorService, notebookKernelService, notebookExecutionStateService, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, themeService, telemetryService, hoverService, menuService) {
|
|
34
33
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
35
34
|
this.editorService = editorService;
|
|
@@ -81,9 +80,8 @@ let NotebookVariablesView = class NotebookVariablesView extends ViewPane {
|
|
|
81
80
|
[CONTEXT_VARIABLE_LANGUAGE.key, element.language],
|
|
82
81
|
[CONTEXT_VARIABLE_EXTENSIONID.key, element.extensionId]
|
|
83
82
|
]);
|
|
84
|
-
const menu = this.menuService.
|
|
85
|
-
createAndFillInContextMenuActions(menu,
|
|
86
|
-
menu.dispose();
|
|
83
|
+
const menu = this.menuService.getMenuActions(MenuId.NotebookVariablesContext, overlayedContext, { arg, shouldForwardArgs: true });
|
|
84
|
+
createAndFillInContextMenuActions(menu, actions);
|
|
87
85
|
this.contextMenuService.showContextMenu({
|
|
88
86
|
getAnchor: () => e.anchor,
|
|
89
87
|
getActions: () => actions
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { clearNode, WindowIdleValue } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
4
|
import { ToolBar } from 'vscode/vscode/vs/base/browser/ui/toolbar/toolbar';
|
|
5
5
|
import { IconLabel } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconLabel';
|
|
@@ -53,7 +53,6 @@ import { NotebookExecutionType } from 'vscode/vscode/vs/workbench/contrib/notebo
|
|
|
53
53
|
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
54
54
|
import { ILanguageFeaturesService } from 'vscode/vscode/vs/editor/common/services/languageFeatures';
|
|
55
55
|
|
|
56
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline";
|
|
57
56
|
class NotebookOutlineTemplate {
|
|
58
57
|
static { this.templateId = 'NotebookOutlineRenderer'; }
|
|
59
58
|
constructor(container, iconClass, iconLabel, decoration, actionMenu, elementDisposables) {
|
|
@@ -718,37 +717,34 @@ const NotebookOutlineContext = {
|
|
|
718
717
|
[NotebookSetting.outlineShowMarkdownHeadersOnly]: {
|
|
719
718
|
type: 'boolean',
|
|
720
719
|
default: true,
|
|
721
|
-
markdownDescription: (
|
|
722
|
-
|
|
723
|
-
0,
|
|
720
|
+
markdownDescription: ( localize(
|
|
721
|
+
7991,
|
|
724
722
|
"When enabled, notebook outline will show only markdown cells containing a header."
|
|
725
723
|
))
|
|
726
724
|
},
|
|
727
725
|
[NotebookSetting.outlineShowCodeCells]: {
|
|
728
726
|
type: 'boolean',
|
|
729
727
|
default: false,
|
|
730
|
-
markdownDescription: (
|
|
728
|
+
markdownDescription: ( localize(7992, "When enabled, notebook outline shows code cells."))
|
|
731
729
|
},
|
|
732
730
|
[NotebookSetting.outlineShowCodeCellSymbols]: {
|
|
733
731
|
type: 'boolean',
|
|
734
732
|
default: true,
|
|
735
|
-
markdownDescription: (
|
|
736
|
-
|
|
737
|
-
2,
|
|
733
|
+
markdownDescription: ( localize(
|
|
734
|
+
7993,
|
|
738
735
|
"When enabled, notebook outline shows code cell symbols. Relies on `notebook.outline.showCodeCells` being enabled."
|
|
739
736
|
))
|
|
740
737
|
},
|
|
741
738
|
[NotebookSetting.breadcrumbsShowCodeCells]: {
|
|
742
739
|
type: 'boolean',
|
|
743
740
|
default: true,
|
|
744
|
-
markdownDescription: (
|
|
741
|
+
markdownDescription: ( localize(7994, "When enabled, notebook breadcrumbs contain code cells."))
|
|
745
742
|
},
|
|
746
743
|
[NotebookSetting.gotoSymbolsAllSymbols]: {
|
|
747
744
|
type: 'boolean',
|
|
748
745
|
default: true,
|
|
749
|
-
markdownDescription: (
|
|
750
|
-
|
|
751
|
-
4,
|
|
746
|
+
markdownDescription: ( localize(
|
|
747
|
+
7995,
|
|
752
748
|
"When enabled, the Go to Symbol Quick Pick will display full code symbols from the notebook, as well as Markdown headers."
|
|
753
749
|
))
|
|
754
750
|
},
|
|
@@ -756,7 +752,7 @@ const NotebookOutlineContext = {
|
|
|
756
752
|
});
|
|
757
753
|
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
758
754
|
submenu: MenuId.NotebookOutlineFilter,
|
|
759
|
-
title: (
|
|
755
|
+
title: ( localize(7996, "Filter Entries")),
|
|
760
756
|
icon: Codicon.filter,
|
|
761
757
|
group: 'navigation',
|
|
762
758
|
order: -1,
|
|
@@ -769,7 +765,7 @@ registerAction2(class ToggleShowMarkdownHeadersOnly extends Action2 {
|
|
|
769
765
|
constructor() {
|
|
770
766
|
super({
|
|
771
767
|
id: 'notebook.outline.toggleShowMarkdownHeadersOnly',
|
|
772
|
-
title: (
|
|
768
|
+
title: ( localize(7997, "Markdown Headers Only")),
|
|
773
769
|
f1: false,
|
|
774
770
|
toggled: {
|
|
775
771
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showMarkdownHeadersOnly', true)))
|
|
@@ -790,7 +786,7 @@ registerAction2(class ToggleCodeCellEntries extends Action2 {
|
|
|
790
786
|
constructor() {
|
|
791
787
|
super({
|
|
792
788
|
id: 'notebook.outline.toggleCodeCells',
|
|
793
|
-
title: (
|
|
789
|
+
title: ( localize(7998, "Code Cells")),
|
|
794
790
|
f1: false,
|
|
795
791
|
toggled: {
|
|
796
792
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCells', true)))
|
|
@@ -812,7 +808,7 @@ registerAction2(class ToggleCodeCellSymbolEntries extends Action2 {
|
|
|
812
808
|
constructor() {
|
|
813
809
|
super({
|
|
814
810
|
id: 'notebook.outline.toggleCodeCellSymbols',
|
|
815
|
-
title: (
|
|
811
|
+
title: ( localize(7999, "Code Cell Symbols")),
|
|
816
812
|
f1: false,
|
|
817
813
|
toggled: {
|
|
818
814
|
condition: ( (ContextKeyExpr.equals('config.notebook.outline.showCodeCellSymbols', true)))
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
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";
|
|
7
6
|
var NotebookProfileType;
|
|
8
7
|
( ((function(NotebookProfileType) {
|
|
9
8
|
NotebookProfileType["default"] = "default";
|
|
@@ -53,7 +52,7 @@ registerAction2(class extends Action2 {
|
|
|
53
52
|
constructor() {
|
|
54
53
|
super({
|
|
55
54
|
id: 'notebook.setProfile',
|
|
56
|
-
title: (
|
|
55
|
+
title: ( localize(8000, "Set Profile"))
|
|
57
56
|
});
|
|
58
57
|
}
|
|
59
58
|
async run(accessor, args) {
|
|
@@ -14,7 +14,7 @@ import { applyCodeAction, ApplyCodeActionReason, getCodeActions } from 'vscode/v
|
|
|
14
14
|
import { CodeActionKind, CodeActionTriggerSource } from 'vscode/vscode/vs/editor/contrib/codeAction/common/types';
|
|
15
15
|
import { getDocumentFormattingEditsWithSelectedProvider, FormattingMode } from 'vscode/vscode/vs/editor/contrib/format/browser/format';
|
|
16
16
|
import { SnippetController2 } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetController2';
|
|
17
|
-
import {
|
|
17
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
18
18
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
19
19
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
20
20
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
@@ -29,7 +29,6 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
|
|
|
29
29
|
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
30
30
|
import { IWorkingCopyFileService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
31
31
|
|
|
32
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants";
|
|
33
32
|
let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
34
33
|
constructor(editorWorkerService, languageFeaturesService, instantiationService, textModelService, bulkEditService, configurationService) {
|
|
35
34
|
this.editorWorkerService = editorWorkerService;
|
|
@@ -50,7 +49,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
50
49
|
if (!enabled) {
|
|
51
50
|
return undefined;
|
|
52
51
|
}
|
|
53
|
-
progress.report({ message: (
|
|
52
|
+
progress.report({ message: ( localize(7966, "Formatting")) });
|
|
54
53
|
const notebook = workingCopy.model.notebookModel;
|
|
55
54
|
const formatApplied = await this.instantiationService.invokeFunction(CodeActionParticipantUtils.checkAndRunFormatCodeAction, notebook, progress, token);
|
|
56
55
|
const disposable = ( (new DisposableStore()));
|
|
@@ -70,7 +69,7 @@ let FormatOnSaveParticipant = class FormatOnSaveParticipant {
|
|
|
70
69
|
}
|
|
71
70
|
return [];
|
|
72
71
|
}))));
|
|
73
|
-
await this.bulkEditService.apply( allCellEdits.flat(), { label: (
|
|
72
|
+
await this.bulkEditService.apply( allCellEdits.flat(), { label: ( localize(7967, "Format Notebook")), code: 'undoredo.formatNotebook', });
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
75
|
finally {
|
|
@@ -142,7 +141,7 @@ let TrimWhitespaceParticipant = class TrimWhitespaceParticipant {
|
|
|
142
141
|
);
|
|
143
142
|
}))));
|
|
144
143
|
const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
|
|
145
|
-
await this.bulkEditService.apply(filteredEdits, { label: (
|
|
144
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(7968, "Notebook Trim Trailing Whitespace")), code: 'undoredo.notebookTrimTrailingWhitespace' });
|
|
146
145
|
}
|
|
147
146
|
finally {
|
|
148
147
|
progress.report({ increment: 100 });
|
|
@@ -220,7 +219,7 @@ let TrimFinalNewLinesParticipant = class TrimFinalNewLinesParticipant {
|
|
|
220
219
|
);
|
|
221
220
|
}))));
|
|
222
221
|
const filteredEdits = allCellEdits.flat().filter(edit => edit !== undefined);
|
|
223
|
-
await this.bulkEditService.apply(filteredEdits, { label: (
|
|
222
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(7969, "Trim Final New Lines")), code: 'undoredo.trimFinalNewLines' });
|
|
224
223
|
}
|
|
225
224
|
finally {
|
|
226
225
|
progress.report({ increment: 100 });
|
|
@@ -275,7 +274,7 @@ let InsertFinalNewLineParticipant = class InsertFinalNewLineParticipant {
|
|
|
275
274
|
);
|
|
276
275
|
}))));
|
|
277
276
|
const filteredEdits = allCellEdits.filter(edit => edit !== undefined);
|
|
278
|
-
await this.bulkEditService.apply(filteredEdits, { label: (
|
|
277
|
+
await this.bulkEditService.apply(filteredEdits, { label: ( localize(7970, "Insert Final New Line")), code: 'undoredo.insertFinalNewLine' });
|
|
279
278
|
if (activeCellEditor && selections) {
|
|
280
279
|
activeCellEditor.setSelections(selections);
|
|
281
280
|
}
|
|
@@ -331,7 +330,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
|
|
|
331
330
|
const notebookCodeActionsOnSave = includedActions.filter(x => CodeActionKind.Notebook.contains(x));
|
|
332
331
|
if (notebookCodeActionsOnSave.length) {
|
|
333
332
|
const nbDisposable = ( (new DisposableStore()));
|
|
334
|
-
progress.report({ message: (
|
|
333
|
+
progress.report({ message: ( localize(7971, "Running 'Notebook' code actions")) });
|
|
335
334
|
try {
|
|
336
335
|
const cell = notebookModel.cells[0];
|
|
337
336
|
const ref = await this.textModelService.createModelReference(cell.uri);
|
|
@@ -363,7 +362,7 @@ let CodeActionOnSaveParticipant = class CodeActionOnSaveParticipant {
|
|
|
363
362
|
});
|
|
364
363
|
}
|
|
365
364
|
const cellDisposable = ( (new DisposableStore()));
|
|
366
|
-
progress.report({ message: (
|
|
365
|
+
progress.report({ message: ( localize(7972, "Running 'Cell' code actions")) });
|
|
367
366
|
try {
|
|
368
367
|
await Promise.all(( (notebookModel.cells.map(async (cell) => {
|
|
369
368
|
const ref = await this.textModelService.createModelReference(cell.uri);
|
|
@@ -403,7 +402,7 @@ class CodeActionParticipantUtils {
|
|
|
403
402
|
const configurationService = accessor.get(IConfigurationService);
|
|
404
403
|
const formatDisposable = ( (new DisposableStore()));
|
|
405
404
|
let formatResult = false;
|
|
406
|
-
progress.report({ message: (
|
|
405
|
+
progress.report({ message: ( localize(7973, "Running 'Format' code actions")) });
|
|
407
406
|
try {
|
|
408
407
|
const cell = notebookModel.cells[0];
|
|
409
408
|
const ref = await textModelService.createModelReference(cell.uri);
|
|
@@ -431,9 +430,8 @@ class CodeActionParticipantUtils {
|
|
|
431
430
|
}
|
|
432
431
|
_report() {
|
|
433
432
|
progress.report({
|
|
434
|
-
message: (
|
|
435
|
-
|
|
436
|
-
8,
|
|
433
|
+
message: ( localize(
|
|
434
|
+
7974,
|
|
437
435
|
"Getting code actions from '{0}' ([configure]({1})).",
|
|
438
436
|
( ([...this._names].map(name => `'${name}'`))).join(', '),
|
|
439
437
|
'command:workbench.action.openSettings?%5B%22notebook.codeActionsOnSave%22%5D'
|
|
@@ -473,7 +471,7 @@ class CodeActionParticipantUtils {
|
|
|
473
471
|
logService.warn('Failed to apply code action on save, applied to multiple resources.');
|
|
474
472
|
continue;
|
|
475
473
|
}
|
|
476
|
-
progress.report({ message: (
|
|
474
|
+
progress.report({ message: ( localize(7975, "Applying code action '{0}'.", action.action.title)) });
|
|
477
475
|
await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
478
476
|
if (token.isCancellationRequested) {
|
|
479
477
|
return;
|
|
@@ -497,9 +495,8 @@ class CodeActionParticipantUtils {
|
|
|
497
495
|
}
|
|
498
496
|
_report() {
|
|
499
497
|
progress.report({
|
|
500
|
-
message: (
|
|
501
|
-
|
|
502
|
-
8,
|
|
498
|
+
message: ( localize(
|
|
499
|
+
7975,
|
|
503
500
|
"Getting code actions from '{0}' ([configure]({1})).",
|
|
504
501
|
( ([...this._names].map(name => `'${name}'`))).join(', '),
|
|
505
502
|
'command:workbench.action.openSettings?%5B%22notebook.defaultFormatter%22%5D'
|
|
@@ -526,7 +523,7 @@ class CodeActionParticipantUtils {
|
|
|
526
523
|
if (!action) {
|
|
527
524
|
return false;
|
|
528
525
|
}
|
|
529
|
-
progress.report({ message: (
|
|
526
|
+
progress.report({ message: ( localize(7975, "Applying code action '{0}'.", action.action.title)) });
|
|
530
527
|
await instantiationService.invokeFunction(applyCodeAction, action, ApplyCodeActionReason.OnSave, {}, token);
|
|
531
528
|
if (token.isCancellationRequested) {
|
|
532
529
|
return false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Disposable, DisposableStore, dispose } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
2
|
-
import {
|
|
2
|
+
import { localize2 } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
4
4
|
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
5
5
|
import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
@@ -8,7 +8,6 @@ import { CellStatusbarAlignment } from 'vscode/vscode/vs/workbench/contrib/noteb
|
|
|
8
8
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
9
9
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
10
10
|
|
|
11
|
-
const _moduleId = "vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout";
|
|
12
11
|
class TroubleshootController extends Disposable {
|
|
13
12
|
static { this.id = 'workbench.notebook.troubleshoot'; }
|
|
14
13
|
constructor(_notebookEditor) {
|
|
@@ -95,7 +94,7 @@ registerAction2(class extends Action2 {
|
|
|
95
94
|
constructor() {
|
|
96
95
|
super({
|
|
97
96
|
id: 'notebook.toggleLayoutTroubleshoot',
|
|
98
|
-
title: (
|
|
97
|
+
title: ( localize2(8039, "Toggle Layout Troubleshoot")),
|
|
99
98
|
category: Categories.Developer,
|
|
100
99
|
f1: true
|
|
101
100
|
});
|
|
@@ -114,7 +113,7 @@ registerAction2(class extends Action2 {
|
|
|
114
113
|
constructor() {
|
|
115
114
|
super({
|
|
116
115
|
id: 'notebook.inspectLayout',
|
|
117
|
-
title: (
|
|
116
|
+
title: ( localize2(8040, "Inspect Notebook Layout")),
|
|
118
117
|
category: Categories.Developer,
|
|
119
118
|
f1: true
|
|
120
119
|
});
|
|
@@ -135,7 +134,7 @@ registerAction2(class extends Action2 {
|
|
|
135
134
|
constructor() {
|
|
136
135
|
super({
|
|
137
136
|
id: 'notebook.clearNotebookEdtitorTypeCache',
|
|
138
|
-
title: (
|
|
137
|
+
title: ( localize2(8041, "Clear Notebook Editor Type Cache")),
|
|
139
138
|
category: Categories.Developer,
|
|
140
139
|
f1: true
|
|
141
140
|
});
|