@codingame/monaco-vscode-notebook-service-override 11.1.2 → 12.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.d.ts +2 -1
- package/index.js +64 -1
- package/package.json +47 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +43 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +109 -130
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +13 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +72 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +23 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +30 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +76 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +61 -58
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +5 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +4 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +8 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +10 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +52 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/media/notebookFind.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +51 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +21 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +4 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +3 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +6 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +69 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +460 -382
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +124 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +87 -145
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +16 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +8 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +9 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +40 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +112 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +115 -116
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +111 -117
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +11 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +7 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +113 -198
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +25 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +115 -145
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +76 -147
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +45 -77
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +30 -35
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +19 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +59 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +11 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +69 -113
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +194 -184
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +51 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +14 -36
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +57 -56
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +29 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +17 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +46 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +14 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +21 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +7 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +30 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +6 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +134 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +164 -121
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +37 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +6 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +131 -55
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +4 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +12 -10
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +75 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorkerMain.js +2 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +31 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +2 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +78 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +45 -42
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +96 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +57 -54
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +74 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +6 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.d.ts +53 -0
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +2 -1
- package/worker.js +2 -1
- package/workers/notebook.worker.d.ts +1 -0
- package/notebook.js +0 -50
- package/workers/notebook.worker.js +0 -1
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
3
4
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
5
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
5
6
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
6
|
-
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_OUTPUT_FOCUSED } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
7
|
-
import { getNotebookEditorFromEditorPane, expandCellRangesWithHiddenCells, cellRangeToViewCells } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
7
|
+
import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE, NOTEBOOK_OUTPUT_FOCUSED } from '@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
8
|
+
import { getNotebookEditorFromEditorPane, expandCellRangesWithHiddenCells, cellRangeToViewCells } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
8
9
|
import { CopyAction, PasteAction, CutAction } from 'vscode/vscode/vs/editor/contrib/clipboard/browser/clipboard';
|
|
9
10
|
import { IClipboardService } from 'vscode/vscode/vs/platform/clipboard/common/clipboardService.service';
|
|
10
|
-
import { cloneNotebookCellTextModel } from '@codingame/monaco-vscode-
|
|
11
|
-
import { SelectionStateType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
11
|
+
import { cloneNotebookCellTextModel } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
|
|
12
|
+
import { SelectionStateType, CellEditType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
12
13
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
13
14
|
import { isNative } from 'vscode/vscode/vs/base/common/platform';
|
|
14
15
|
import { registerAction2, MenuId, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
15
|
-
import { NotebookCellAction, NotebookAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, NOTEBOOK_OUTPUT_WEBVIEW_ACTION_WEIGHT } from '@codingame/monaco-vscode-
|
|
16
|
+
import { NotebookCellAction, CellOverflowToolbarGroups, NotebookAction, NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT, NOTEBOOK_OUTPUT_WEBVIEW_ACTION_WEIGHT } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/controller/coreActions';
|
|
17
|
+
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
16
18
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
17
19
|
import { InputFocusedContextKey } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
20
|
+
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
18
21
|
import { UndoCommand, RedoCommand } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
19
22
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
20
23
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
@@ -108,10 +111,10 @@ function runPasteCells(editor, activeCell, pasteCells) {
|
|
|
108
111
|
const newFocusIndex = typeof currCellIndex === 'number' ? currCellIndex + 1 : 0;
|
|
109
112
|
textModel.applyEdits([
|
|
110
113
|
{
|
|
111
|
-
editType:
|
|
114
|
+
editType: CellEditType.Replace,
|
|
112
115
|
index: newFocusIndex,
|
|
113
116
|
count: 0,
|
|
114
|
-
cells: (
|
|
117
|
+
cells: ( pasteCells.items.map(cell => cloneNotebookCellTextModel(cell)))
|
|
115
118
|
}
|
|
116
119
|
], true, originalState, () => ({
|
|
117
120
|
kind: SelectionStateType.Index,
|
|
@@ -125,10 +128,10 @@ function runPasteCells(editor, activeCell, pasteCells) {
|
|
|
125
128
|
}
|
|
126
129
|
textModel.applyEdits([
|
|
127
130
|
{
|
|
128
|
-
editType:
|
|
131
|
+
editType: CellEditType.Replace,
|
|
129
132
|
index: 0,
|
|
130
133
|
count: 0,
|
|
131
|
-
cells: (
|
|
134
|
+
cells: ( pasteCells.items.map(cell => cloneNotebookCellTextModel(cell)))
|
|
132
135
|
}
|
|
133
136
|
], true, originalState, () => ({
|
|
134
137
|
kind: SelectionStateType.Index,
|
|
@@ -163,8 +166,8 @@ function runCopyCells(accessor, editor, targetCell) {
|
|
|
163
166
|
if (!selectedCells.length) {
|
|
164
167
|
return false;
|
|
165
168
|
}
|
|
166
|
-
clipboardService.writeText((
|
|
167
|
-
notebookService.setToCopy((
|
|
169
|
+
clipboardService.writeText(( selectedCells.map(cell => cell.getText())).join('\n'));
|
|
170
|
+
notebookService.setToCopy(( selectedCells.map(cell => cell.model)), true);
|
|
168
171
|
return true;
|
|
169
172
|
}
|
|
170
173
|
function runCutCells(accessor, editor, targetCell) {
|
|
@@ -182,11 +185,11 @@ function runCutCells(accessor, editor, targetCell) {
|
|
|
182
185
|
clipboardService.writeText(targetCell.getText());
|
|
183
186
|
const focus = editor.getFocus();
|
|
184
187
|
const newFocus = focus.end <= targetCellIndex ? focus : { start: focus.start - 1, end: focus.end - 1 };
|
|
185
|
-
const newSelections = (
|
|
188
|
+
const newSelections = ( selections.map(
|
|
186
189
|
selection => (selection.end <= targetCellIndex ? selection : { start: selection.start - 1, end: selection.end - 1 })
|
|
187
|
-
))
|
|
190
|
+
));
|
|
188
191
|
textModel.applyEdits([
|
|
189
|
-
{ editType:
|
|
192
|
+
{ editType: CellEditType.Replace, index: targetCellIndex, count: 1, cells: [] }
|
|
190
193
|
], true, { kind: SelectionStateType.Index, focus: editor.getFocus(), selections: selections }, () => ({ kind: SelectionStateType.Index, focus: newFocus, selections: newSelections }), undefined, true);
|
|
191
194
|
notebookService.setToCopy([targetCell.model], false);
|
|
192
195
|
return true;
|
|
@@ -198,11 +201,11 @@ function runCutCells(accessor, editor, targetCell) {
|
|
|
198
201
|
const targetCell = editor.cellAt(focus.start);
|
|
199
202
|
clipboardService.writeText(targetCell.getText());
|
|
200
203
|
const newFocus = focus.end === editor.getLength() ? { start: focus.start - 1, end: focus.end - 1 } : focus;
|
|
201
|
-
const newSelections = (
|
|
204
|
+
const newSelections = ( selections.map(
|
|
202
205
|
selection => (selection.end <= focus.start ? selection : { start: selection.start - 1, end: selection.end - 1 })
|
|
203
|
-
))
|
|
206
|
+
));
|
|
204
207
|
textModel.applyEdits([
|
|
205
|
-
{ editType:
|
|
208
|
+
{ editType: CellEditType.Replace, index: focus.start, count: 1, cells: [] }
|
|
206
209
|
], true, { kind: SelectionStateType.Index, focus: editor.getFocus(), selections: selections }, () => ({ kind: SelectionStateType.Index, focus: newFocus, selections: newSelections }), undefined, true);
|
|
207
210
|
notebookService.setToCopy([targetCell.model], false);
|
|
208
211
|
return true;
|
|
@@ -212,10 +215,10 @@ function runCutCells(accessor, editor, targetCell) {
|
|
|
212
215
|
if (!selectedCells.length) {
|
|
213
216
|
return false;
|
|
214
217
|
}
|
|
215
|
-
clipboardService.writeText((
|
|
216
|
-
const edits = (
|
|
217
|
-
range => ({ editType:
|
|
218
|
-
))
|
|
218
|
+
clipboardService.writeText(( selectedCells.map(cell => cell.getText())).join('\n'));
|
|
219
|
+
const edits = ( selectionRanges.map(
|
|
220
|
+
range => ({ editType: CellEditType.Replace, index: range.start, count: range.end - range.start, cells: [] })
|
|
221
|
+
));
|
|
219
222
|
const firstSelectIndex = selectionRanges[0].start;
|
|
220
223
|
const newFocusedCellIndex = firstSelectIndex < textModel.cells.length - 1
|
|
221
224
|
? firstSelectIndex
|
|
@@ -227,7 +230,7 @@ function runCutCells(accessor, editor, targetCell) {
|
|
|
227
230
|
selections: [{ start: newFocusedCellIndex, end: newFocusedCellIndex + 1 }]
|
|
228
231
|
};
|
|
229
232
|
}, undefined, true);
|
|
230
|
-
notebookService.setToCopy((
|
|
233
|
+
notebookService.setToCopy(( selectedCells.map(cell => cell.model)), false);
|
|
231
234
|
return true;
|
|
232
235
|
}
|
|
233
236
|
let NotebookClipboardContribution = class NotebookClipboardContribution extends Disposable {
|
|
@@ -335,10 +338,10 @@ let NotebookClipboardContribution = class NotebookClipboardContribution extends
|
|
|
335
338
|
return runCutCells(accessor, editor, undefined);
|
|
336
339
|
}
|
|
337
340
|
};
|
|
338
|
-
NotebookClipboardContribution = (
|
|
339
|
-
(
|
|
340
|
-
], NotebookClipboardContribution))
|
|
341
|
-
registerWorkbenchContribution2(NotebookClipboardContribution.ID, NotebookClipboardContribution,
|
|
341
|
+
NotebookClipboardContribution = ( __decorate([
|
|
342
|
+
( __param(0, IEditorService))
|
|
343
|
+
], NotebookClipboardContribution));
|
|
344
|
+
registerWorkbenchContribution2(NotebookClipboardContribution.ID, NotebookClipboardContribution, WorkbenchPhase.BlockRestore);
|
|
342
345
|
const COPY_CELL_COMMAND_ID = 'notebook.cell.copy';
|
|
343
346
|
const CUT_CELL_COMMAND_ID = 'notebook.cell.cut';
|
|
344
347
|
const PASTE_CELL_COMMAND_ID = 'notebook.cell.paste';
|
|
@@ -347,18 +350,18 @@ registerAction2(class extends NotebookCellAction {
|
|
|
347
350
|
constructor() {
|
|
348
351
|
super({
|
|
349
352
|
id: COPY_CELL_COMMAND_ID,
|
|
350
|
-
title: ( localize(
|
|
353
|
+
title: ( localize(7315, "Copy Cell")),
|
|
351
354
|
menu: {
|
|
352
355
|
id: MenuId.NotebookCellTitle,
|
|
353
356
|
when: NOTEBOOK_EDITOR_FOCUSED,
|
|
354
|
-
group:
|
|
357
|
+
group: CellOverflowToolbarGroups.Copy,
|
|
355
358
|
order: 2,
|
|
356
359
|
},
|
|
357
360
|
keybinding: isNative ? undefined : {
|
|
358
|
-
primary:
|
|
359
|
-
win: { primary:
|
|
360
|
-
when: (
|
|
361
|
-
weight:
|
|
361
|
+
primary: KeyMod.CtrlCmd | KeyCode.KeyC,
|
|
362
|
+
win: { primary: KeyMod.CtrlCmd | KeyCode.KeyC, secondary: [KeyMod.CtrlCmd | KeyCode.Insert] },
|
|
363
|
+
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
364
|
+
weight: KeybindingWeight.WorkbenchContrib
|
|
362
365
|
}
|
|
363
366
|
});
|
|
364
367
|
}
|
|
@@ -370,18 +373,18 @@ registerAction2(class extends NotebookCellAction {
|
|
|
370
373
|
constructor() {
|
|
371
374
|
super({
|
|
372
375
|
id: CUT_CELL_COMMAND_ID,
|
|
373
|
-
title: ( localize(
|
|
376
|
+
title: ( localize(7316, "Cut Cell")),
|
|
374
377
|
menu: {
|
|
375
378
|
id: MenuId.NotebookCellTitle,
|
|
376
|
-
when: (
|
|
377
|
-
group:
|
|
379
|
+
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CELL_EDITABLE)),
|
|
380
|
+
group: CellOverflowToolbarGroups.Copy,
|
|
378
381
|
order: 1,
|
|
379
382
|
},
|
|
380
383
|
keybinding: isNative ? undefined : {
|
|
381
|
-
when: (
|
|
382
|
-
primary:
|
|
383
|
-
win: { primary:
|
|
384
|
-
weight:
|
|
384
|
+
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
385
|
+
primary: KeyMod.CtrlCmd | KeyCode.KeyX,
|
|
386
|
+
win: { primary: KeyMod.CtrlCmd | KeyCode.KeyX, secondary: [KeyMod.Shift | KeyCode.Delete] },
|
|
387
|
+
weight: KeybindingWeight.WorkbenchContrib
|
|
385
388
|
}
|
|
386
389
|
});
|
|
387
390
|
}
|
|
@@ -393,19 +396,19 @@ registerAction2(class extends NotebookAction {
|
|
|
393
396
|
constructor() {
|
|
394
397
|
super({
|
|
395
398
|
id: PASTE_CELL_COMMAND_ID,
|
|
396
|
-
title: ( localize(
|
|
399
|
+
title: ( localize(7317, "Paste Cell")),
|
|
397
400
|
menu: {
|
|
398
401
|
id: MenuId.NotebookCellTitle,
|
|
399
|
-
when: (
|
|
400
|
-
group:
|
|
402
|
+
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_EDITOR_EDITABLE)),
|
|
403
|
+
group: CellOverflowToolbarGroups.Copy,
|
|
401
404
|
order: 3,
|
|
402
405
|
},
|
|
403
406
|
keybinding: isNative ? undefined : {
|
|
404
|
-
when: (
|
|
405
|
-
primary:
|
|
406
|
-
win: { primary:
|
|
407
|
-
linux: { primary:
|
|
408
|
-
weight:
|
|
407
|
+
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
408
|
+
primary: KeyMod.CtrlCmd | KeyCode.KeyV,
|
|
409
|
+
win: { primary: KeyMod.CtrlCmd | KeyCode.KeyV, secondary: [KeyMod.Shift | KeyCode.Insert] },
|
|
410
|
+
linux: { primary: KeyMod.CtrlCmd | KeyCode.KeyV, secondary: [KeyMod.Shift | KeyCode.Insert] },
|
|
411
|
+
weight: KeybindingWeight.EditorContrib
|
|
409
412
|
}
|
|
410
413
|
});
|
|
411
414
|
}
|
|
@@ -425,10 +428,10 @@ registerAction2(class extends NotebookCellAction {
|
|
|
425
428
|
constructor() {
|
|
426
429
|
super({
|
|
427
430
|
id: PASTE_CELL_ABOVE_COMMAND_ID,
|
|
428
|
-
title: ( localize(
|
|
431
|
+
title: ( localize(7318, "Paste Cell Above")),
|
|
429
432
|
keybinding: {
|
|
430
|
-
when: (
|
|
431
|
-
primary:
|
|
433
|
+
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
434
|
+
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyV,
|
|
432
435
|
weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT
|
|
433
436
|
},
|
|
434
437
|
});
|
|
@@ -453,10 +456,10 @@ registerAction2(class extends NotebookCellAction {
|
|
|
453
456
|
const newFocusIndex = currCellIndex;
|
|
454
457
|
textModel.applyEdits([
|
|
455
458
|
{
|
|
456
|
-
editType:
|
|
459
|
+
editType: CellEditType.Replace,
|
|
457
460
|
index: currCellIndex,
|
|
458
461
|
count: 0,
|
|
459
|
-
cells: (
|
|
462
|
+
cells: ( pasteCells.items.map(cell => cloneNotebookCellTextModel(cell)))
|
|
460
463
|
}
|
|
461
464
|
], true, originalState, () => ({
|
|
462
465
|
kind: SelectionStateType.Index,
|
|
@@ -469,7 +472,7 @@ registerAction2(class extends Action2 {
|
|
|
469
472
|
constructor() {
|
|
470
473
|
super({
|
|
471
474
|
id: 'workbench.action.toggleNotebookClipboardLog',
|
|
472
|
-
title: ( localize2(
|
|
475
|
+
title: ( localize2(7319, 'Toggle Notebook Clipboard Troubleshooting')),
|
|
473
476
|
category: Categories.Developer,
|
|
474
477
|
f1: true
|
|
475
478
|
});
|
|
@@ -486,10 +489,10 @@ registerAction2(class extends NotebookCellAction {
|
|
|
486
489
|
constructor() {
|
|
487
490
|
super({
|
|
488
491
|
id: 'notebook.cell.output.selectAll',
|
|
489
|
-
title: ( localize(
|
|
492
|
+
title: ( localize(7320, "Select All")),
|
|
490
493
|
keybinding: {
|
|
491
|
-
primary:
|
|
492
|
-
when: (
|
|
494
|
+
primary: KeyMod.CtrlCmd | KeyCode.KeyA,
|
|
495
|
+
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED)),
|
|
493
496
|
weight: NOTEBOOK_OUTPUT_WEBVIEW_ACTION_WEIGHT
|
|
494
497
|
}
|
|
495
498
|
});
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
4
5
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
@@ -6,10 +7,11 @@ import { isEqual } from 'vscode/vscode/vs/base/common/resources';
|
|
|
6
7
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
7
8
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
8
9
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
9
|
-
import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
10
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
10
11
|
import { NotebookCellsChangeType, CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
11
12
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
12
13
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
14
|
+
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
13
15
|
|
|
14
16
|
let NotebookBreakpoints = class NotebookBreakpoints extends Disposable {
|
|
15
17
|
constructor(_debugService, _notebookService, _editorService) {
|
|
@@ -103,4 +105,4 @@ NotebookBreakpoints = ( __decorate([
|
|
|
103
105
|
( __param(1, INotebookService)),
|
|
104
106
|
( __param(2, IEditorService))
|
|
105
107
|
], NotebookBreakpoints));
|
|
106
|
-
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(NotebookBreakpoints,
|
|
108
|
+
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(NotebookBreakpoints, LifecyclePhase.Restored);
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { RunOnceScheduler } from 'vscode/vscode/vs/base/common/async';
|
|
3
4
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
@@ -8,6 +9,7 @@ import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/d
|
|
|
8
9
|
import { CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
9
10
|
import { CellExecutionUpdateType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService';
|
|
10
11
|
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
12
|
+
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
11
13
|
|
|
12
14
|
let NotebookCellPausing = class NotebookCellPausing extends Disposable {
|
|
13
15
|
constructor(_debugService, _notebookExecutionStateService) {
|
|
@@ -64,4 +66,4 @@ NotebookCellPausing = ( __decorate([
|
|
|
64
66
|
( __param(0, IDebugService)),
|
|
65
67
|
( __param(1, INotebookExecutionStateService))
|
|
66
68
|
], NotebookCellPausing));
|
|
67
|
-
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(NotebookCellPausing,
|
|
69
|
+
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(NotebookCellPausing, LifecyclePhase.Restored);
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
|
+
import { IDebugService } from "vscode/vscode/vs/workbench/contrib/debug/common/debug.service";
|
|
4
|
+
import { INotebookEditor, INotebookEditorContribution } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
5
|
+
import { INotebookExecutionStateService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
6
|
+
export declare class PausedCellDecorationContribution extends Disposable implements INotebookEditorContribution {
|
|
7
|
+
private readonly _notebookEditor;
|
|
8
|
+
private readonly _debugService;
|
|
9
|
+
private readonly _notebookExecutionStateService;
|
|
10
|
+
static id: string;
|
|
11
|
+
private _currentTopDecorations;
|
|
12
|
+
private _currentOtherDecorations;
|
|
13
|
+
private _executingCellDecorations;
|
|
14
|
+
constructor(_notebookEditor: INotebookEditor, _debugService: IDebugService, _notebookExecutionStateService: INotebookExecutionStateService);
|
|
15
|
+
private updateExecutionDecorations;
|
|
16
|
+
private setTopFrameDecoration;
|
|
17
|
+
private setFocusedFrameDecoration;
|
|
18
|
+
private setExecutingCellDecorations;
|
|
19
|
+
}
|
|
20
|
+
export declare class NotebookBreakpointDecorations extends Disposable implements INotebookEditorContribution {
|
|
21
|
+
private readonly _notebookEditor;
|
|
22
|
+
private readonly _debugService;
|
|
23
|
+
private readonly _configService;
|
|
24
|
+
static id: string;
|
|
25
|
+
private _currentDecorations;
|
|
26
|
+
constructor(_notebookEditor: INotebookEditor, _debugService: IDebugService, _configService: IConfigurationService);
|
|
27
|
+
private updateDecorations;
|
|
28
|
+
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Delayer } from 'vscode/vscode/vs/base/common/async';
|
|
3
4
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
5
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
5
6
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
|
-
import { debugIconBreakpointForeground } from '@codingame/monaco-vscode-
|
|
7
|
-
import { topStackFrameColor, focusedStackFrameColor } from 'vscode/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
|
|
7
|
+
import { debugIconBreakpointForeground } from '@codingame/monaco-vscode-88aa9a78-75f5-5aaa-89e9-bbdd580b3b5c-common/vscode/vs/workbench/contrib/debug/browser/breakpointEditorContribution';
|
|
8
|
+
import { topStackFrameColor, focusedStackFrameColor } from '@codingame/monaco-vscode-0b087f42-a5a3-5eb9-9bfd-1eebc1bba163-common/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution';
|
|
8
9
|
import { IDebugService } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug.service';
|
|
9
|
-
import { NotebookOverviewRulerLane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
10
|
-
import { registerNotebookContribution } from '@codingame/monaco-vscode-
|
|
11
|
-
import { runningCellRulerDecorationColor } from '@codingame/monaco-vscode-
|
|
10
|
+
import { NotebookOverviewRulerLane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
11
|
+
import { registerNotebookContribution } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorExtensions';
|
|
12
|
+
import { runningCellRulerDecorationColor } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
12
13
|
import { CellUri, NotebookCellExecutionState } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
13
|
-
import { NotebookExecutionType } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
14
|
+
import { NotebookExecutionType } from '@codingame/monaco-vscode-22790577-4553-50b6-978d-0acc75c394cc-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
14
15
|
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
15
16
|
|
|
16
17
|
let PausedCellDecorationContribution = class PausedCellDecorationContribution extends Disposable {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ICodeEditor } from "vscode/vscode/vs/editor/browser/editorBrowser";
|
|
2
|
+
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
3
|
+
import { IConfigurationService } from "vscode/vscode/vs/platform/configuration/common/configuration.service";
|
|
4
|
+
import { IContextMenuService } from "vscode/vscode/vs/platform/contextview/browser/contextView.service";
|
|
5
|
+
import { IHoverService } from "vscode/vscode/vs/platform/hover/browser/hover.service";
|
|
6
|
+
import { IKeybindingService } from "vscode/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
7
|
+
import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
|
|
8
|
+
import { ITelemetryService } from "vscode/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
9
|
+
import { IChatAgentService } from "vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
|
|
10
|
+
import { EmptyTextEditorHintContribution, IEmptyTextEditorHintOptions } from "../../../../codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js";
|
|
11
|
+
import { IInlineChatSessionService } from "vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service";
|
|
12
|
+
import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
13
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
14
|
+
export declare class EmptyCellEditorHintContribution extends EmptyTextEditorHintContribution {
|
|
15
|
+
private readonly _editorService;
|
|
16
|
+
static readonly CONTRIB_ID = "notebook.editor.contrib.emptyCellEditorHint";
|
|
17
|
+
constructor(editor: ICodeEditor, _editorService: IEditorService, editorGroupsService: IEditorGroupsService, commandService: ICommandService, configurationService: IConfigurationService, hoverService: IHoverService, keybindingService: IKeybindingService, inlineChatSessionService: IInlineChatSessionService, chatAgentService: IChatAgentService, telemetryService: ITelemetryService, productService: IProductService, contextMenuService: IContextMenuService);
|
|
18
|
+
protected _getOptions(): IEmptyTextEditorHintOptions;
|
|
19
|
+
protected _shouldRenderHint(): boolean;
|
|
20
|
+
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
3
|
-
import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
4
|
+
import { registerEditorContribution, EditorContributionInstantiation } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
4
5
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
5
6
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
7
|
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
@@ -11,7 +12,7 @@ import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/te
|
|
|
11
12
|
import { IChatAgentService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
12
13
|
import { EmptyTextEditorHintContribution } from '../../../../codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js';
|
|
13
14
|
import { IInlineChatSessionService } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service';
|
|
14
|
-
import { getNotebookEditorFromEditorPane } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
15
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
15
16
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
16
17
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
17
18
|
|
|
@@ -30,10 +31,6 @@ let EmptyCellEditorHintContribution = class EmptyCellEditorHintContribution exte
|
|
|
30
31
|
return { clickable: false };
|
|
31
32
|
}
|
|
32
33
|
_shouldRenderHint() {
|
|
33
|
-
const shouldRenderHint = super._shouldRenderHint();
|
|
34
|
-
if (!shouldRenderHint) {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
34
|
const model = this.editor.getModel();
|
|
38
35
|
if (!model) {
|
|
39
36
|
return false;
|
|
@@ -43,7 +40,11 @@ let EmptyCellEditorHintContribution = class EmptyCellEditorHintContribution exte
|
|
|
43
40
|
return false;
|
|
44
41
|
}
|
|
45
42
|
const activeEditor = getNotebookEditorFromEditorPane(this._editorService.activeEditorPane);
|
|
46
|
-
if (!activeEditor) {
|
|
43
|
+
if (!activeEditor || !activeEditor.isDisposed) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
const shouldRenderHint = super._shouldRenderHint();
|
|
47
|
+
if (!shouldRenderHint) {
|
|
47
48
|
return false;
|
|
48
49
|
}
|
|
49
50
|
const activeCell = activeEditor.getActiveCell();
|
|
@@ -66,6 +67,6 @@ EmptyCellEditorHintContribution = ( __decorate([
|
|
|
66
67
|
( __param(10, IProductService)),
|
|
67
68
|
( __param(11, IContextMenuService))
|
|
68
69
|
], EmptyCellEditorHintContribution));
|
|
69
|
-
registerEditorContribution(EmptyCellEditorHintContribution.CONTRIB_ID, EmptyCellEditorHintContribution,
|
|
70
|
+
registerEditorContribution(EmptyCellEditorHintContribution.CONTRIB_ID, EmptyCellEditorHintContribution, EditorContributionInstantiation.Eager);
|
|
70
71
|
|
|
71
72
|
export { EmptyCellEditorHintContribution };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|