@codingame/monaco-vscode-notebook-service-override 25.1.2 → 26.0.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 +2 -2
- package/package.json +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +112 -94
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +95 -96
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +28 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +15 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +22 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +25 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +37 -44
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +211 -115
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +16 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +5 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +57 -49
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +24 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +78 -76
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +14 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +43 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +65 -34
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +19 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +6 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +15 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +28 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +211 -170
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +158 -156
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +109 -105
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +28 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +26 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +23 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +72 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +233 -186
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +22 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +239 -151
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +85 -86
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +25 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +13 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +8 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +218 -196
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +258 -255
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +106 -98
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +63 -49
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +55 -64
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +21 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +149 -129
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +286 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +82 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +452 -363
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +44 -61
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +9 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +203 -207
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +148 -104
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.js +19 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +9 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +34 -22
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +29 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +70 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +31 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +78 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +37 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +9 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +8 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +214 -119
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +38 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSource.js +24 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.js +2 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +26 -15
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +35 -15
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +468 -258
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +113 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +74 -58
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +7 -10
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookCellMatching.js +72 -16
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWebWorker.js +70 -51
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +195 -149
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/replEditorAccessibilityHelp.js +60 -81
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +7 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +104 -66
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +115 -77
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +42 -26
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +19 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +0 -198
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +0 -333
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +0 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +0 -261
|
@@ -10,14 +10,12 @@ import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
10
10
|
class NotebookAccessibilityHelp {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.priority = 105;
|
|
13
|
-
this.name =
|
|
13
|
+
this.name = "notebook";
|
|
14
14
|
this.when = ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ( IS_COMPOSITE_NOTEBOOK.negate())));
|
|
15
15
|
this.type = AccessibleViewType.Help;
|
|
16
16
|
}
|
|
17
17
|
getProvider(accessor) {
|
|
18
|
-
const activeEditor = accessor.get(ICodeEditorService).getActiveCodeEditor()
|
|
19
|
-
|| accessor.get(ICodeEditorService).getFocusedCodeEditor()
|
|
20
|
-
|| accessor.get(IEditorService).activeEditorPane;
|
|
18
|
+
const activeEditor = accessor.get(ICodeEditorService).getActiveCodeEditor() || accessor.get(ICodeEditorService).getFocusedCodeEditor() || accessor.get(IEditorService).activeEditorPane;
|
|
21
19
|
if (!activeEditor) {
|
|
22
20
|
return;
|
|
23
21
|
}
|
|
@@ -25,66 +23,51 @@ class NotebookAccessibilityHelp {
|
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
25
|
function getAccessibilityHelpText() {
|
|
28
|
-
return [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
'
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
)),
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
))
|
|
67
|
-
( localize(
|
|
68
|
-
9583,
|
|
69
|
-
'The Insert Cell Above{0} and Below{1} commands will create new empty code cells.',
|
|
70
|
-
'<keybinding:notebook.cell.insertCodeCellAbove>',
|
|
71
|
-
'<keybinding:notebook.cell.insertCodeCellBelow>'
|
|
72
|
-
)),
|
|
73
|
-
( localize(
|
|
74
|
-
9584,
|
|
75
|
-
'The Change Cell to Code/Markdown commands are used to switch between cell types.'
|
|
76
|
-
))
|
|
77
|
-
].join('\n');
|
|
26
|
+
return [( localize(
|
|
27
|
+
9895,
|
|
28
|
+
"The notebook view is a collection of code and markdown cells. Code cells can be executed and will produce output directly below the cell."
|
|
29
|
+
)), ( localize(
|
|
30
|
+
9896,
|
|
31
|
+
"The Edit Cell command{0} will focus on the cell input.",
|
|
32
|
+
"<keybinding:notebook.cell.edit>"
|
|
33
|
+
)), ( localize(
|
|
34
|
+
9897,
|
|
35
|
+
"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.",
|
|
36
|
+
"<keybinding:notebook.cell.quitEdit>"
|
|
37
|
+
)), ( localize(
|
|
38
|
+
9898,
|
|
39
|
+
"The Focus Output command{0} will set focus in the cell's output.",
|
|
40
|
+
"<keybinding:notebook.cell.focusInOutput>"
|
|
41
|
+
)), ( localize(
|
|
42
|
+
9899,
|
|
43
|
+
"The Focus Next Cell Editor command{0} will set focus in the next cell's editor.",
|
|
44
|
+
"<keybinding:notebook.focusNextEditor>"
|
|
45
|
+
)), ( localize(
|
|
46
|
+
9900,
|
|
47
|
+
"The Focus Previous Cell Editor command{0} will set focus in the previous cell's editor.",
|
|
48
|
+
"<keybinding:notebook.focusPreviousEditor>"
|
|
49
|
+
)), ( localize(
|
|
50
|
+
9901,
|
|
51
|
+
"The up and down arrows will also move focus between cells while focused on the outer cell container."
|
|
52
|
+
)), ( localize(
|
|
53
|
+
9902,
|
|
54
|
+
"The Execute Cell command{0} executes the cell that currently has focus.",
|
|
55
|
+
"<keybinding:notebook.cell.executeAndFocusContainer>"
|
|
56
|
+
)), ( localize(
|
|
57
|
+
9903,
|
|
58
|
+
"The Insert Cell Above{0} and Below{1} commands will create new empty code cells.",
|
|
59
|
+
"<keybinding:notebook.cell.insertCodeCellAbove>",
|
|
60
|
+
"<keybinding:notebook.cell.insertCodeCellBelow>"
|
|
61
|
+
)), ( localize(
|
|
62
|
+
9904,
|
|
63
|
+
"The Change Cell to Code/Markdown commands are used to switch between cell types."
|
|
64
|
+
))].join("\n");
|
|
78
65
|
}
|
|
79
66
|
function getAccessibilityHelpProvider(accessor, editor) {
|
|
80
67
|
const helpText = getAccessibilityHelpText();
|
|
81
|
-
return ( new AccessibleContentProvider(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
() => helpText,
|
|
85
|
-
() => editor.focus(),
|
|
86
|
-
AccessibilityVerbositySettingId.Notebook
|
|
87
|
-
));
|
|
68
|
+
return ( new AccessibleContentProvider(AccessibleViewProviderId.Notebook, {
|
|
69
|
+
type: AccessibleViewType.Help
|
|
70
|
+
}, () => helpText, () => editor.focus(), AccessibilityVerbositySettingId.Notebook));
|
|
88
71
|
}
|
|
89
72
|
|
|
90
73
|
export { NotebookAccessibilityHelp };
|
|
@@ -11,7 +11,7 @@ import { getAllOutputsText } from '@codingame/monaco-vscode-api/vscode/vs/workbe
|
|
|
11
11
|
class NotebookAccessibleView {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.priority = 100;
|
|
14
|
-
this.name =
|
|
14
|
+
this.name = "notebook";
|
|
15
15
|
this.type = AccessibleViewType.View;
|
|
16
16
|
this.when = ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated())));
|
|
17
17
|
}
|
|
@@ -34,16 +34,14 @@ function getAccessibleOutputProvider(editorService) {
|
|
|
34
34
|
if (!outputContent) {
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
|
-
return ( new AccessibleContentProvider(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
AccessibilityVerbositySettingId.Notebook
|
|
46
|
-
));
|
|
37
|
+
return ( new AccessibleContentProvider(AccessibleViewProviderId.Notebook, {
|
|
38
|
+
type: AccessibleViewType.View
|
|
39
|
+
}, () => {
|
|
40
|
+
return outputContent;
|
|
41
|
+
}, () => {
|
|
42
|
+
notebookEditor?.setFocus(selections[0]);
|
|
43
|
+
notebookEditor.focus();
|
|
44
|
+
}, AccessibilityVerbositySettingId.Notebook));
|
|
47
45
|
}
|
|
48
46
|
|
|
49
47
|
export { NotebookAccessibleView, getAccessibleOutputProvider };
|