@codingame/monaco-vscode-notebook-service-override 23.2.2 → 24.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +3 -24
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +11 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +19 -31
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +32 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +30 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +86 -86
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +5 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +15 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +15 -15
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +14 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +3 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { NOTEBOOK_EDITOR_FOCUSED, IS_COMPOSITE_NOTEBOOK } from '@codingame/monaco-vscode-
|
|
2
|
+
import { NOTEBOOK_EDITOR_FOCUSED, IS_COMPOSITE_NOTEBOOK } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
3
3
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
5
5
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
@@ -27,51 +27,51 @@ class NotebookAccessibilityHelp {
|
|
|
27
27
|
function getAccessibilityHelpText() {
|
|
28
28
|
return [
|
|
29
29
|
( localize(
|
|
30
|
-
|
|
30
|
+
9546,
|
|
31
31
|
'The notebook view is a collection of code and markdown cells. Code cells can be executed and will produce output directly below the cell.'
|
|
32
32
|
)),
|
|
33
33
|
( localize(
|
|
34
|
-
|
|
34
|
+
9547,
|
|
35
35
|
'The Edit Cell command{0} will focus on the cell input.',
|
|
36
36
|
'<keybinding:notebook.cell.edit>'
|
|
37
37
|
)),
|
|
38
38
|
( localize(
|
|
39
|
-
|
|
39
|
+
9548,
|
|
40
40
|
'The Quit Edit command{0} will set focus on the cell container. The default (Escape) key may need to be pressed twice first exit the virtual cursor if active.',
|
|
41
41
|
'<keybinding:notebook.cell.quitEdit>'
|
|
42
42
|
)),
|
|
43
43
|
( localize(
|
|
44
|
-
|
|
44
|
+
9549,
|
|
45
45
|
'The Focus Output command{0} will set focus in the cell\'s output.',
|
|
46
46
|
'<keybinding:notebook.cell.focusInOutput>'
|
|
47
47
|
)),
|
|
48
48
|
( localize(
|
|
49
|
-
|
|
49
|
+
9550,
|
|
50
50
|
'The Focus Next Cell Editor command{0} will set focus in the next cell\'s editor.',
|
|
51
51
|
'<keybinding:notebook.focusNextEditor>'
|
|
52
52
|
)),
|
|
53
53
|
( localize(
|
|
54
|
-
|
|
54
|
+
9551,
|
|
55
55
|
'The Focus Previous Cell Editor command{0} will set focus in the previous cell\'s editor.',
|
|
56
56
|
'<keybinding:notebook.focusPreviousEditor>'
|
|
57
57
|
)),
|
|
58
58
|
( localize(
|
|
59
|
-
|
|
59
|
+
9552,
|
|
60
60
|
'The up and down arrows will also move focus between cells while focused on the outer cell container.'
|
|
61
61
|
)),
|
|
62
62
|
( localize(
|
|
63
|
-
|
|
63
|
+
9553,
|
|
64
64
|
'The Execute Cell command{0} executes the cell that currently has focus.',
|
|
65
65
|
'<keybinding:notebook.cell.executeAndFocusContainer>'
|
|
66
66
|
)),
|
|
67
67
|
( localize(
|
|
68
|
-
|
|
68
|
+
9554,
|
|
69
69
|
'The Insert Cell Above{0} and Below{1} commands will create new empty code cells.',
|
|
70
70
|
'<keybinding:notebook.cell.insertCodeCellAbove>',
|
|
71
71
|
'<keybinding:notebook.cell.insertCodeCellBelow>'
|
|
72
72
|
)),
|
|
73
73
|
( localize(
|
|
74
|
-
|
|
74
|
+
9555,
|
|
75
75
|
'The Change Cell to Code/Markdown commands are used to switch between cell types.'
|
|
76
76
|
))
|
|
77
77
|
].join('\n');
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
3
3
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
4
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
5
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
6
|
-
import { NOTEBOOK_CELL_LIST_FOCUSED } from '@codingame/monaco-vscode-
|
|
5
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
6
|
+
import { NOTEBOOK_CELL_LIST_FOCUSED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
7
7
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
8
8
|
import { InputFocusedContext } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
9
|
-
import { getAllOutputsText } from '@codingame/monaco-vscode-
|
|
9
|
+
import { getAllOutputsText } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper';
|
|
10
10
|
|
|
11
11
|
class NotebookAccessibleView {
|
|
12
12
|
constructor() {
|
|
@@ -28,7 +28,7 @@ const NotebookPreloadContribution = ( Object.freeze({
|
|
|
28
28
|
localResourceRoots: 'localResourceRoots',
|
|
29
29
|
}));
|
|
30
30
|
const notebookProviderContribution = {
|
|
31
|
-
description: ( localize(
|
|
31
|
+
description: ( localize(9592, 'Contributes notebook document provider.')),
|
|
32
32
|
type: 'array',
|
|
33
33
|
defaultSnippets: [{ body: [{ type: '', displayName: '', 'selector': [{ 'filenamePattern': '' }] }] }],
|
|
34
34
|
items: {
|
|
@@ -41,25 +41,25 @@ const notebookProviderContribution = {
|
|
|
41
41
|
properties: {
|
|
42
42
|
[NotebookEditorContribution.type]: {
|
|
43
43
|
type: 'string',
|
|
44
|
-
description: ( localize(
|
|
44
|
+
description: ( localize(9593, 'Type of the notebook.')),
|
|
45
45
|
},
|
|
46
46
|
[NotebookEditorContribution.displayName]: {
|
|
47
47
|
type: 'string',
|
|
48
|
-
description: ( localize(
|
|
48
|
+
description: ( localize(9594, 'Human readable name of the notebook.')),
|
|
49
49
|
},
|
|
50
50
|
[NotebookEditorContribution.selector]: {
|
|
51
51
|
type: 'array',
|
|
52
|
-
description: ( localize(
|
|
52
|
+
description: ( localize(9595, 'Set of globs that the notebook is for.')),
|
|
53
53
|
items: {
|
|
54
54
|
type: 'object',
|
|
55
55
|
properties: {
|
|
56
56
|
filenamePattern: {
|
|
57
57
|
type: 'string',
|
|
58
|
-
description: ( localize(
|
|
58
|
+
description: ( localize(9596, 'Glob that the notebook is enabled for.')),
|
|
59
59
|
},
|
|
60
60
|
excludeFileNamePattern: {
|
|
61
61
|
type: 'string',
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(9597, 'Glob that the notebook is disabled for.'))
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -67,7 +67,7 @@ const notebookProviderContribution = {
|
|
|
67
67
|
[NotebookEditorContribution.priority]: {
|
|
68
68
|
type: 'string',
|
|
69
69
|
markdownDeprecationMessage: ( localize(
|
|
70
|
-
|
|
70
|
+
9598,
|
|
71
71
|
'Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting.'
|
|
72
72
|
)),
|
|
73
73
|
enum: [
|
|
@@ -76,11 +76,11 @@ const notebookProviderContribution = {
|
|
|
76
76
|
],
|
|
77
77
|
markdownEnumDescriptions: [
|
|
78
78
|
( localize(
|
|
79
|
-
|
|
79
|
+
9599,
|
|
80
80
|
'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
|
|
81
81
|
)),
|
|
82
82
|
( localize(
|
|
83
|
-
|
|
83
|
+
9600,
|
|
84
84
|
'The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command.'
|
|
85
85
|
)),
|
|
86
86
|
],
|
|
@@ -91,7 +91,7 @@ const notebookProviderContribution = {
|
|
|
91
91
|
};
|
|
92
92
|
const defaultRendererSnippet = ( Object.freeze({ id: '', displayName: '', mimeTypes: [''], entrypoint: '' }));
|
|
93
93
|
const notebookRendererContribution = {
|
|
94
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(9601, 'Contributes notebook output renderer provider.')),
|
|
95
95
|
type: 'array',
|
|
96
96
|
defaultSnippets: [{ body: [defaultRendererSnippet] }],
|
|
97
97
|
items: {
|
|
@@ -106,18 +106,18 @@ const notebookRendererContribution = {
|
|
|
106
106
|
properties: {
|
|
107
107
|
[NotebookRendererContribution.id]: {
|
|
108
108
|
type: 'string',
|
|
109
|
-
description: ( localize(
|
|
109
|
+
description: ( localize(9602, 'Unique identifier of the notebook output renderer.')),
|
|
110
110
|
},
|
|
111
111
|
[NotebookRendererContribution.displayName]: {
|
|
112
112
|
type: 'string',
|
|
113
|
-
description: ( localize(
|
|
113
|
+
description: ( localize(9603, 'Human readable name of the notebook output renderer.')),
|
|
114
114
|
},
|
|
115
115
|
[NotebookRendererContribution.hardDependencies]: {
|
|
116
116
|
type: 'array',
|
|
117
117
|
uniqueItems: true,
|
|
118
118
|
items: { type: 'string' },
|
|
119
119
|
markdownDescription: ( localize(
|
|
120
|
-
|
|
120
|
+
9604,
|
|
121
121
|
'List of kernel dependencies the renderer requires. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer can be used.'
|
|
122
122
|
)),
|
|
123
123
|
},
|
|
@@ -126,7 +126,7 @@ const notebookRendererContribution = {
|
|
|
126
126
|
uniqueItems: true,
|
|
127
127
|
items: { type: 'string' },
|
|
128
128
|
markdownDescription: ( localize(
|
|
129
|
-
|
|
129
|
+
9605,
|
|
130
130
|
'List of soft kernel dependencies the renderer can make use of. If any of the dependencies are present in the `NotebookKernel.preloads`, the renderer will be preferred over renderers that don\'t interact with the kernel.'
|
|
131
131
|
)),
|
|
132
132
|
},
|
|
@@ -139,17 +139,17 @@ const notebookRendererContribution = {
|
|
|
139
139
|
],
|
|
140
140
|
enumDescriptions: [
|
|
141
141
|
( localize(
|
|
142
|
-
|
|
142
|
+
9606,
|
|
143
143
|
'Messaging is required. The renderer will only be used when it\'s part of an extension that can be run in an extension host.'
|
|
144
144
|
)),
|
|
145
145
|
( localize(
|
|
146
|
-
|
|
146
|
+
9607,
|
|
147
147
|
'The renderer is better with messaging available, but it\'s not requried.'
|
|
148
148
|
)),
|
|
149
|
-
( localize(
|
|
149
|
+
( localize(9608, 'The renderer does not require messaging.')),
|
|
150
150
|
],
|
|
151
151
|
description: ( localize(
|
|
152
|
-
|
|
152
|
+
9609,
|
|
153
153
|
'Defines how and if the renderer needs to communicate with an extension host, via `createRendererMessaging`. Renderers with stronger messaging requirements may not work in all environments.'
|
|
154
154
|
)),
|
|
155
155
|
},
|
|
@@ -165,13 +165,13 @@ const notebookRendererContribution = {
|
|
|
165
165
|
properties: {
|
|
166
166
|
[NotebookRendererContribution.mimeTypes]: {
|
|
167
167
|
type: 'array',
|
|
168
|
-
description: ( localize(
|
|
168
|
+
description: ( localize(9610, 'Set of globs that the notebook is for.')),
|
|
169
169
|
items: {
|
|
170
170
|
type: 'string'
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
[NotebookRendererContribution.entrypoint]: {
|
|
174
|
-
description: ( localize(
|
|
174
|
+
description: ( localize(9611, 'File to load in the webview to render the extension.')),
|
|
175
175
|
type: 'string',
|
|
176
176
|
},
|
|
177
177
|
}
|
|
@@ -182,17 +182,17 @@ const notebookRendererContribution = {
|
|
|
182
182
|
],
|
|
183
183
|
properties: {
|
|
184
184
|
[NotebookRendererContribution.entrypoint]: {
|
|
185
|
-
description: ( localize(
|
|
185
|
+
description: ( localize(9611, 'File to load in the webview to render the extension.')),
|
|
186
186
|
type: 'object',
|
|
187
187
|
required: ['extends', 'path'],
|
|
188
188
|
properties: {
|
|
189
189
|
extends: {
|
|
190
190
|
type: 'string',
|
|
191
|
-
description: ( localize(
|
|
191
|
+
description: ( localize(9612, 'Existing renderer that this one extends.')),
|
|
192
192
|
},
|
|
193
193
|
path: {
|
|
194
194
|
type: 'string',
|
|
195
|
-
description: ( localize(
|
|
195
|
+
description: ( localize(9611, 'File to load in the webview to render the extension.')),
|
|
196
196
|
},
|
|
197
197
|
}
|
|
198
198
|
},
|
|
@@ -204,7 +204,7 @@ const notebookRendererContribution = {
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
const notebookPreloadContribution = {
|
|
207
|
-
description: ( localize(
|
|
207
|
+
description: ( localize(9613, 'Contributes notebook preloads.')),
|
|
208
208
|
type: 'array',
|
|
209
209
|
defaultSnippets: [{ body: [{ type: '', entrypoint: '' }] }],
|
|
210
210
|
items: {
|
|
@@ -216,17 +216,17 @@ const notebookPreloadContribution = {
|
|
|
216
216
|
properties: {
|
|
217
217
|
[NotebookPreloadContribution.type]: {
|
|
218
218
|
type: 'string',
|
|
219
|
-
description: ( localize(
|
|
219
|
+
description: ( localize(9614, 'Type of the notebook.')),
|
|
220
220
|
},
|
|
221
221
|
[NotebookPreloadContribution.entrypoint]: {
|
|
222
222
|
type: 'string',
|
|
223
|
-
description: ( localize(
|
|
223
|
+
description: ( localize(9615, 'Path to file loaded in the webview.')),
|
|
224
224
|
},
|
|
225
225
|
[NotebookPreloadContribution.localResourceRoots]: {
|
|
226
226
|
type: 'array',
|
|
227
227
|
items: { type: 'string' },
|
|
228
228
|
description: ( localize(
|
|
229
|
-
|
|
229
|
+
9616,
|
|
230
230
|
'Paths to additional resources that should be allowed in the webview.'
|
|
231
231
|
)),
|
|
232
232
|
},
|
|
@@ -273,8 +273,8 @@ class NotebooksDataRenderer extends Disposable {
|
|
|
273
273
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
274
274
|
}
|
|
275
275
|
const headers = [
|
|
276
|
-
( localize(
|
|
277
|
-
( localize(
|
|
276
|
+
( localize(9617, "ID")),
|
|
277
|
+
( localize(9618, "Name")),
|
|
278
278
|
];
|
|
279
279
|
const rows = ( contrib
|
|
280
280
|
.sort((a, b) => a.type.localeCompare(b.type))
|
|
@@ -307,8 +307,8 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
307
307
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
308
308
|
}
|
|
309
309
|
const headers = [
|
|
310
|
-
( localize(
|
|
311
|
-
( localize(
|
|
310
|
+
( localize(9619, "Name")),
|
|
311
|
+
( localize(9620, "Mimetypes")),
|
|
312
312
|
];
|
|
313
313
|
const rows = ( contrib
|
|
314
314
|
.sort((a, b) => a.displayName.localeCompare(b.displayName))
|
|
@@ -329,7 +329,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
329
329
|
}
|
|
330
330
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
331
331
|
id: 'notebooks',
|
|
332
|
-
label: ( localize(
|
|
332
|
+
label: ( localize(9621, "Notebooks")),
|
|
333
333
|
access: {
|
|
334
334
|
canToggle: false
|
|
335
335
|
},
|
|
@@ -337,7 +337,7 @@ class NotebookRenderersDataRenderer extends Disposable {
|
|
|
337
337
|
});
|
|
338
338
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
339
339
|
id: 'notebookRenderer',
|
|
340
|
-
label: ( localize(
|
|
340
|
+
label: ( localize(9622, "Notebook Renderers")),
|
|
341
341
|
access: {
|
|
342
342
|
canToggle: false
|
|
343
343
|
},
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts
CHANGED
|
@@ -8,14 +8,14 @@ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
8
8
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
9
9
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
10
10
|
import { IUriIdentityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service";
|
|
11
|
-
import { EditorPane } from "@codingame/monaco-vscode-
|
|
11
|
+
import { EditorPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorPane";
|
|
12
12
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
13
13
|
import { IEditorOpenContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
14
14
|
import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
|
|
15
15
|
import { IEditorResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service";
|
|
16
16
|
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
17
|
-
import { CellEditState, IBaseCellEditorOptions, ICellOutputViewModel, ICommonCellInfo, IGenericCellViewModel, INotebookEditorCreationOptions } from "@codingame/monaco-vscode-
|
|
18
|
-
import { INotebookDelegateForWebview } from "@codingame/monaco-vscode-
|
|
17
|
+
import { CellEditState, IBaseCellEditorOptions, ICellOutputViewModel, ICommonCellInfo, IGenericCellViewModel, INotebookEditorCreationOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
18
|
+
import { INotebookDelegateForWebview } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView";
|
|
19
19
|
import { NotebookOutputEditorInput } from "./notebookOutputEditorInput.js";
|
|
20
20
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
21
21
|
import { IEditorOptions as ICodeEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions";
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js
CHANGED
|
@@ -12,24 +12,24 @@ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
12
12
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
13
13
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
14
14
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
15
|
-
import { EditorPane } from '@codingame/monaco-vscode-
|
|
15
|
+
import { EditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
16
16
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
17
17
|
import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
18
18
|
import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
|
|
19
19
|
import { NOTEBOOK_OUTPUT_EDITOR_ID, CellUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
20
20
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
21
|
-
import { RenderOutputType } from '@codingame/monaco-vscode-
|
|
22
|
-
import { getDefaultNotebookCreationOptions } from '@codingame/monaco-vscode-
|
|
23
|
-
import { NotebookOptions } from '@codingame/monaco-vscode-
|
|
24
|
-
import { BackLayerWebView } from '@codingame/monaco-vscode-
|
|
21
|
+
import { RenderOutputType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
22
|
+
import { getDefaultNotebookCreationOptions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
23
|
+
import { NotebookOptions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookOptions';
|
|
24
|
+
import { BackLayerWebView } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView';
|
|
25
25
|
import { NotebookOutputEditorInput } from './notebookOutputEditorInput.js';
|
|
26
26
|
import { createBareFontInfoFromRawSettings } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/fontInfoFromSettings';
|
|
27
27
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
28
28
|
import { FontMeasurements } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/config/fontMeasurements';
|
|
29
29
|
import { PixelRatio } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/pixelRatio';
|
|
30
|
-
import { NotebookViewModel } from '@codingame/monaco-vscode-
|
|
31
|
-
import { NotebookEventDispatcher } from '@codingame/monaco-vscode-
|
|
32
|
-
import { ViewContext } from '@codingame/monaco-vscode-
|
|
30
|
+
import { NotebookViewModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl';
|
|
31
|
+
import { NotebookEventDispatcher } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher';
|
|
32
|
+
import { ViewContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/viewModel/viewContext';
|
|
33
33
|
|
|
34
34
|
var NotebookOutputEditor_1;
|
|
35
35
|
class NoopCellEditorOptions extends Disposable {
|
|
@@ -114,7 +114,7 @@ let NotebookOutputEditor = class NotebookOutputEditor extends EditorPane {
|
|
|
114
114
|
if (this.input) {
|
|
115
115
|
return this.input.getName();
|
|
116
116
|
}
|
|
117
|
-
return localize(
|
|
117
|
+
return localize(9652, "Notebook Output Editor");
|
|
118
118
|
}
|
|
119
119
|
async setInput(input, options, context, token) {
|
|
120
120
|
await super.setInput(input, options, context, token);
|
|
@@ -160,13 +160,13 @@ let NotebookOutputEditor = class NotebookOutputEditor extends EditorPane {
|
|
|
160
160
|
}
|
|
161
161
|
_renderMissingRenderer(viewModel, preferredMimeType) {
|
|
162
162
|
if (!viewModel.model.outputs.length) {
|
|
163
|
-
return this._renderMessage(viewModel, ( localize(
|
|
163
|
+
return this._renderMessage(viewModel, ( localize(9653, "Cell has no output")));
|
|
164
164
|
}
|
|
165
165
|
if (!preferredMimeType) {
|
|
166
166
|
const mimeTypes = ( viewModel.model.outputs.map(op => op.mime));
|
|
167
167
|
const mimeTypesMessage = mimeTypes.join(', ');
|
|
168
168
|
return this._renderMessage(viewModel, ( localize(
|
|
169
|
-
|
|
169
|
+
9654,
|
|
170
170
|
"No renderer could be found for output. It has the following mimetypes: {0}",
|
|
171
171
|
mimeTypesMessage
|
|
172
172
|
)));
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { EditorInputCapabilities } from "@codingame/monaco-vscode-api/vscode/vs/
|
|
|
4
4
|
import { EditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput";
|
|
5
5
|
import { IResolvedNotebookEditorModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
6
6
|
import { INotebookEditorModelResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service";
|
|
7
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
7
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
8
8
|
declare class ResolvedNotebookOutputEditorInputModel implements IDisposable {
|
|
9
9
|
readonly resolvedNotebookEditorModel: IResolvedNotebookEditorModel;
|
|
10
10
|
readonly notebookUri: URI;
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js
CHANGED
|
@@ -71,7 +71,7 @@ let NotebookOutputEditorInput = class NotebookOutputEditorInput extends EditorIn
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
getName() {
|
|
74
|
-
return localize(
|
|
74
|
+
return localize(9655, "Notebook Output Preview");
|
|
75
75
|
}
|
|
76
76
|
get editorId() {
|
|
77
77
|
return 'notebookOutputEditor';
|
|
@@ -3,9 +3,9 @@ import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId
|
|
|
3
3
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
4
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
5
5
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
6
|
-
import { isReplEditorControl } from '@codingame/monaco-vscode-
|
|
7
|
-
import { IS_COMPOSITE_NOTEBOOK, NOTEBOOK_CELL_LIST_FOCUSED } from '@codingame/monaco-vscode-
|
|
8
|
-
import { getAllOutputsText } from '@codingame/monaco-vscode-
|
|
6
|
+
import { isReplEditorControl } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/replNotebook/browser/replEditor';
|
|
7
|
+
import { IS_COMPOSITE_NOTEBOOK, NOTEBOOK_CELL_LIST_FOCUSED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
8
|
+
import { getAllOutputsText } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper';
|
|
9
9
|
|
|
10
10
|
class ReplEditorAccessibleView {
|
|
11
11
|
constructor() {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CodeWindow } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/window";
|
|
2
|
-
import { NotebookEditorWidget } from "@codingame/monaco-vscode-
|
|
2
|
+
import { NotebookEditorWidget } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget";
|
|
3
3
|
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
4
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
5
5
|
import { IInstantiationService, ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
6
|
import { IBorrowValue } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService";
|
|
7
7
|
import { INotebookEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
8
|
-
import { INotebookEditor, INotebookEditorCreationOptions } from "@codingame/monaco-vscode-
|
|
8
|
+
import { INotebookEditor, INotebookEditorCreationOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
9
9
|
import { Dimension } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/dom";
|
|
10
10
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
11
11
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { ResourceMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
4
|
-
import { getDefaultNotebookCreationOptions, NotebookEditorWidget } from '@codingame/monaco-vscode-
|
|
4
|
+
import { getDefaultNotebookCreationOptions, NotebookEditorWidget } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
5
5
|
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
7
7
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
|
-
import { NotebookEditorInput, isCompositeNotebookEditorInput, isNotebookEditorInput } from '@codingame/monaco-vscode-
|
|
8
|
+
import { NotebookEditorInput, isCompositeNotebookEditorInput, isNotebookEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
9
9
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
10
10
|
import { GroupModelChangeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
11
11
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
12
12
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
13
|
-
import { MOST_RECENT_REPL_EDITOR, InteractiveWindowOpen } from '@codingame/monaco-vscode-
|
|
13
|
+
import { MOST_RECENT_REPL_EDITOR, InteractiveWindowOpen } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
14
14
|
import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
15
15
|
import { IEditorProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service';
|
|
16
|
-
import { NotebookDiffEditorInput } from '@codingame/monaco-vscode-
|
|
16
|
+
import { NotebookDiffEditorInput } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/notebookDiffEditorInput';
|
|
17
17
|
|
|
18
18
|
let NotebookEditorWidgetService = class NotebookEditorWidgetService {
|
|
19
19
|
constructor(editorGroupService, editorService, contextKeyService, instantiationService) {
|
|
@@ -217,8 +217,7 @@ let NotebookEditorWidgetService = class NotebookEditorWidgetService {
|
|
|
217
217
|
}
|
|
218
218
|
removeNotebookEditor(editor) {
|
|
219
219
|
const notebookUri = editor.getViewModel()?.notebookDocument.uri;
|
|
220
|
-
if (
|
|
221
|
-
this._notebookEditors.delete(editor.getId());
|
|
220
|
+
if (this._notebookEditors.delete(editor.getId())) {
|
|
222
221
|
this._onNotebookEditorsRemove.fire(editor);
|
|
223
222
|
}
|
|
224
223
|
if (this._mostRecentRepl.get() === notebookUri?.toString()) {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/
|
|
|
2
2
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
3
3
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
4
|
import { IWorkspaceTrustRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service";
|
|
5
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
5
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
6
6
|
import { INotebookTextModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
7
7
|
import { ICellExecutionParticipant } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService";
|
|
8
8
|
import { INotebookExecutionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service";
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js
CHANGED
|
@@ -4,7 +4,7 @@ import { toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common
|
|
|
4
4
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
5
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
6
6
|
import { IWorkspaceTrustRequestService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service';
|
|
7
|
-
import { KernelPickerMRUStrategy } from '@codingame/monaco-vscode-
|
|
7
|
+
import { KernelPickerMRUStrategy } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy';
|
|
8
8
|
import { CellKind, NotebookCellExecutionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
9
9
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
10
10
|
import { INotebookKernelService, INotebookKernelHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
@@ -27,7 +27,7 @@ let NotebookExecutionService = class NotebookExecutionService {
|
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
this._logService.debug(`Execution`, `${JSON.stringify(( cellsArr.map(c => c.handle)))}`);
|
|
30
|
-
const message = ( localize(
|
|
30
|
+
const message = ( localize(9656, "Executing a notebook cell will run code from this workspace."));
|
|
31
31
|
const trust = await this._workspaceTrustRequestService.requestWorkspaceTrust({ message });
|
|
32
32
|
if (!trust) {
|
|
33
33
|
return;
|
|
@@ -3,7 +3,7 @@ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
|
3
3
|
import { IAccessibilitySignalService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service";
|
|
4
4
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
5
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
6
|
-
import { ICellExecutionStateChangedEvent, IExecutionStateChangedEvent, INotebookCellExecution, INotebookExecution, INotebookFailStateChangedEvent } from "@codingame/monaco-vscode-
|
|
6
|
+
import { ICellExecutionStateChangedEvent, IExecutionStateChangedEvent, INotebookCellExecution, INotebookExecution, INotebookFailStateChangedEvent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
|
|
7
7
|
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
8
8
|
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
9
9
|
export declare class NotebookExecutionStateService extends Disposable implements INotebookExecutionStateService {
|
|
@@ -12,7 +12,7 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
12
12
|
import { CellUri, NotebookCellExecutionState, CellEditType, NotebookExecutionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
13
13
|
import { CellExecutionUpdateType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService';
|
|
14
14
|
import { INotebookExecutionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service';
|
|
15
|
-
import { NotebookExecutionType } from '@codingame/monaco-vscode-
|
|
15
|
+
import { NotebookExecutionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
16
16
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
17
17
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
18
18
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
@@ -114,7 +114,7 @@ registerAction2(class extends Action2 {
|
|
|
114
114
|
constructor() {
|
|
115
115
|
super({
|
|
116
116
|
id: 'notebook.clearNotebookKernelsMRUCache',
|
|
117
|
-
title: ( localize2(
|
|
117
|
+
title: ( localize2(9657, "Clear Notebook Kernels MRU Cache")),
|
|
118
118
|
category: Categories.Developer,
|
|
119
119
|
f1: true
|
|
120
120
|
});
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
3
|
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
4
|
-
import { IExtensionStatus } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IExtensionStatus } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensionsUtils";
|
|
5
5
|
import { INotebookKeymapService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKeymapService.service";
|
|
6
6
|
import { IWorkbenchExtensionEnablementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service";
|
|
7
7
|
import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service";
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js
CHANGED
|
@@ -7,7 +7,7 @@ import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
|
7
7
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
8
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
9
9
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
10
|
-
import { getInstalledExtensions } from '@codingame/monaco-vscode-
|
|
10
|
+
import { getInstalledExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensionsUtils';
|
|
11
11
|
import { EnablementState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement';
|
|
12
12
|
import { IWorkbenchExtensionEnablementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service';
|
|
13
13
|
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
@@ -16,7 +16,7 @@ import { IExtensionManagementService } from '@codingame/monaco-vscode-api/vscode
|
|
|
16
16
|
import { areSameExtensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagementUtil';
|
|
17
17
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
18
18
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
19
|
-
import { Memento } from '@codingame/monaco-vscode-
|
|
19
|
+
import { Memento } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/memento';
|
|
20
20
|
import { distinct } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
21
21
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
22
22
|
|
|
@@ -75,14 +75,14 @@ let NotebookKeymapService = class NotebookKeymapService extends Disposable {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
this.notificationService.prompt(Severity.Info, ( localize(
|
|
78
|
-
|
|
78
|
+
9658,
|
|
79
79
|
"Disable other keymaps ({0}) to avoid conflicts between keybindings?",
|
|
80
80
|
( distinct(( oldKeymaps.map(k => k.local.manifest.displayName))).map(name => `'${name}'`)).join(', ')
|
|
81
81
|
)), [{
|
|
82
|
-
label: ( localize(
|
|
82
|
+
label: ( localize(9659, "Yes")),
|
|
83
83
|
run: () => onPrompt(true)
|
|
84
84
|
}, {
|
|
85
|
-
label: ( localize(
|
|
85
|
+
label: ( localize(9660, "No")),
|
|
86
86
|
run: () => onPrompt(false)
|
|
87
87
|
}]);
|
|
88
88
|
}
|