@codingame/monaco-vscode-notebook-service-override 12.0.1 → 13.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.d.ts +1 -1
- package/index.js +20 -20
- package/package.json +29 -37
- 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 +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +38 -38
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizerService.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.d.ts +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +6 -6
- 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.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.d.ts +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +39 -39
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +26 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariableContextKeys.d.ts +1 -1
- 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.d.ts +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesDataSource.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.d.ts +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +25 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +56 -56
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/profile/notebookProfile.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.d.ts +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +40 -40
- 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 +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +42 -42
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +18 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +51 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +37 -37
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +33 -33
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +35 -35
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +102 -102
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +40 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +13 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.d.ts +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +30 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.d.ts +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +27 -27
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +12 -12
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +20 -20
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.d.ts +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +10 -10
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.d.ts +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +8 -8
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.d.ts +23 -23
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +52 -52
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.d.ts +16 -16
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +27 -27
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.d.ts +9 -9
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +9 -9
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.d.ts +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +11 -11
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import { NOTEBOOK_EDITOR_FOCUSED, IS_COMPOSITE_NOTEBOOK } from '@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
3
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
4
|
-
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
5
|
-
import { AccessibilityVerbositySettingId } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
6
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
7
|
-
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
8
|
-
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
3
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
+
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
5
|
+
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
6
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
7
|
+
import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/services/codeEditorService';
|
|
8
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
9
|
|
|
10
10
|
class NotebookAccessibilityHelp {
|
|
11
11
|
constructor() {
|
|
@@ -27,51 +27,51 @@ class NotebookAccessibilityHelp {
|
|
|
27
27
|
function getAccessibilityHelpText() {
|
|
28
28
|
return [
|
|
29
29
|
( localize(
|
|
30
|
-
|
|
30
|
+
7655,
|
|
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
|
+
7656,
|
|
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
|
+
7657,
|
|
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
|
+
7658,
|
|
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
|
+
7659,
|
|
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
|
+
7660,
|
|
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
|
+
7661,
|
|
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
|
+
7662,
|
|
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
|
+
7663,
|
|
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
|
+
7664,
|
|
75
75
|
'The Change Cell to Code/Markdown commands are used to switch between cell types.'
|
|
76
76
|
))
|
|
77
77
|
].join('\n');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AccessibleViewType, AccessibleContentProvider } from "vscode/vscode/vs/platform/accessibility/browser/accessibleView";
|
|
2
|
-
import { IAccessibleViewImplentation } from "vscode/vscode/vs/platform/accessibility/browser/accessibleViewRegistry";
|
|
3
|
-
import { ServicesAccessor } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
-
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
1
|
+
import { AccessibleViewType, AccessibleContentProvider } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView";
|
|
2
|
+
import { IAccessibleViewImplentation } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry";
|
|
3
|
+
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
5
5
|
export declare class NotebookAccessibleView implements IAccessibleViewImplentation {
|
|
6
6
|
readonly priority = 100;
|
|
7
7
|
readonly name = "notebook";
|
|
8
8
|
readonly type = AccessibleViewType.View;
|
|
9
|
-
readonly when: import("vscode/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
9
|
+
readonly when: import("@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey").ContextKeyExpression | undefined;
|
|
10
10
|
getProvider(accessor: ServicesAccessor): AccessibleContentProvider | undefined;
|
|
11
11
|
}
|
|
12
12
|
export declare function getAccessibleOutputProvider(editorService: IEditorService): AccessibleContentProvider | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from 'vscode/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
3
|
-
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
|
-
import { AccessibilityVerbositySettingId } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
2
|
+
import { AccessibleViewType, AccessibleContentProvider, AccessibleViewProviderId } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleView';
|
|
3
|
+
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
|
+
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
5
5
|
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
6
6
|
import { NOTEBOOK_CELL_LIST_FOCUSED } from '@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
7
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
8
|
-
import { InputFocusedContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
7
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
8
|
+
import { InputFocusedContext } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkeys';
|
|
9
9
|
import { getAllOutputsText } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper';
|
|
10
10
|
|
|
11
11
|
class NotebookAccessibleView {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContributedNotebookRendererEntrypoint, RendererMessagingSpec } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
1
|
+
import { ContributedNotebookRendererEntrypoint, RendererMessagingSpec } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
2
2
|
declare const NotebookEditorContribution: Readonly<{
|
|
3
3
|
type: "type";
|
|
4
4
|
displayName: "displayName";
|
|
@@ -42,7 +42,7 @@ interface INotebookPreloadContribution {
|
|
|
42
42
|
readonly [NotebookPreloadContribution.entrypoint]: string;
|
|
43
43
|
readonly [NotebookPreloadContribution.localResourceRoots]: readonly string[];
|
|
44
44
|
}
|
|
45
|
-
export declare const notebooksExtensionPoint: import("vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry").IExtensionPoint<INotebookEditorContribution[]>;
|
|
46
|
-
export declare const notebookRendererExtensionPoint: import("vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry").IExtensionPoint<INotebookRendererContribution[]>;
|
|
47
|
-
export declare const notebookPreloadExtensionPoint: import("vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry").IExtensionPoint<INotebookPreloadContribution[]>;
|
|
45
|
+
export declare const notebooksExtensionPoint: import("@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry").IExtensionPoint<INotebookEditorContribution[]>;
|
|
46
|
+
export declare const notebookRendererExtensionPoint: import("@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry").IExtensionPoint<INotebookRendererContribution[]>;
|
|
47
|
+
export declare const notebookPreloadExtensionPoint: import("@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry").IExtensionPoint<INotebookPreloadContribution[]>;
|
|
48
48
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
4
|
-
import { NotebookEditorPriority } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
5
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
7
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
|
|
8
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
2
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
|
+
import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
4
|
+
import { NotebookEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
5
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
7
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
|
|
8
|
+
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
9
9
|
|
|
10
10
|
const NotebookEditorContribution = ( Object.freeze({
|
|
11
11
|
type: 'type',
|
|
@@ -28,7 +28,7 @@ const NotebookPreloadContribution = ( Object.freeze({
|
|
|
28
28
|
localResourceRoots: 'localResourceRoots',
|
|
29
29
|
}));
|
|
30
30
|
const notebookProviderContribution = {
|
|
31
|
-
description: ( localize(
|
|
31
|
+
description: ( localize(7701, '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(7702, 'Type of the notebook.')),
|
|
45
45
|
},
|
|
46
46
|
[NotebookEditorContribution.displayName]: {
|
|
47
47
|
type: 'string',
|
|
48
|
-
description: ( localize(
|
|
48
|
+
description: ( localize(7703, 'Human readable name of the notebook.')),
|
|
49
49
|
},
|
|
50
50
|
[NotebookEditorContribution.selector]: {
|
|
51
51
|
type: 'array',
|
|
52
|
-
description: ( localize(
|
|
52
|
+
description: ( localize(7704, '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(7705, 'Glob that the notebook is enabled for.')),
|
|
59
59
|
},
|
|
60
60
|
excludeFileNamePattern: {
|
|
61
61
|
type: 'string',
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(7706, '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
|
+
7707,
|
|
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
|
+
7708,
|
|
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
|
+
7709,
|
|
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(7710, '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(7711, 'Unique identifier of the notebook output renderer.')),
|
|
110
110
|
},
|
|
111
111
|
[NotebookRendererContribution.displayName]: {
|
|
112
112
|
type: 'string',
|
|
113
|
-
description: ( localize(
|
|
113
|
+
description: ( localize(7712, '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
|
+
7713,
|
|
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
|
+
7714,
|
|
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
|
+
7715,
|
|
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
|
+
7716,
|
|
147
147
|
'The renderer is better with messaging available, but it\'s not requried.'
|
|
148
148
|
)),
|
|
149
|
-
( localize(
|
|
149
|
+
( localize(7717, 'The renderer does not require messaging.')),
|
|
150
150
|
],
|
|
151
151
|
description: ( localize(
|
|
152
|
-
|
|
152
|
+
7718,
|
|
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(7719, '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(7720, '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(7720, '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(7721, 'Existing renderer that this one extends.')),
|
|
192
192
|
},
|
|
193
193
|
path: {
|
|
194
194
|
type: 'string',
|
|
195
|
-
description: ( localize(
|
|
195
|
+
description: ( localize(7720, '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(7722, '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(7723, 'Type of the notebook.')),
|
|
220
220
|
},
|
|
221
221
|
[NotebookPreloadContribution.entrypoint]: {
|
|
222
222
|
type: 'string',
|
|
223
|
-
description: ( localize(
|
|
223
|
+
description: ( localize(7724, '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
|
+
7725,
|
|
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(7726, "ID")),
|
|
277
|
+
( localize(7727, "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(7728, "Name")),
|
|
311
|
+
( localize(7729, "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(7730, "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(7731, "Notebook Renderers")),
|
|
341
341
|
access: {
|
|
342
342
|
canToggle: false
|
|
343
343
|
},
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CancellationToken } from "vscode/vscode/vs/base/common/cancellation";
|
|
2
|
-
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
3
|
-
import { Disposable, IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
4
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
5
|
-
import { INotebookCellStatusBarService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service";
|
|
6
|
-
import { INotebookCellStatusBarItemList, INotebookCellStatusBarItemProvider } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
1
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
|
+
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
5
|
+
import { INotebookCellStatusBarService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service";
|
|
6
|
+
import { INotebookCellStatusBarItemList, INotebookCellStatusBarItemProvider } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
7
7
|
export declare class NotebookCellStatusBarService extends Disposable implements INotebookCellStatusBarService {
|
|
8
8
|
readonly _serviceBrand: undefined;
|
|
9
9
|
private readonly _onDidChangeProviders;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { onUnexpectedExternalError } from 'vscode/vscode/vs/base/common/errors';
|
|
3
|
-
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
|
-
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
2
|
+
import { onUnexpectedExternalError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
3
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
|
+
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
5
|
|
|
6
6
|
class NotebookCellStatusBarService extends Disposable {
|
|
7
7
|
constructor() {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { CodeWindow } from "vscode/vscode/vs/base/browser/window";
|
|
1
|
+
import { CodeWindow } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/window";
|
|
2
2
|
import { NotebookEditorWidget } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget";
|
|
3
|
-
import { DisposableStore } from "vscode/vscode/vs/base/common/lifecycle";
|
|
4
|
-
import { IEditorGroupsService } from "vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
5
|
-
import { IInstantiationService, ServicesAccessor } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
+
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
|
+
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
5
|
+
import { IInstantiationService, ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
6
6
|
import { NotebookEditorInput } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput";
|
|
7
|
-
import { IBorrowValue } from "vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService";
|
|
8
|
-
import { INotebookEditorService } from "vscode/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
7
|
+
import { IBorrowValue } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService";
|
|
8
|
+
import { INotebookEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
9
9
|
import { INotebookEditor, INotebookEditorCreationOptions } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
10
|
-
import { Dimension } from "vscode/vscode/vs/base/browser/dom";
|
|
11
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
12
|
-
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
13
|
-
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
14
|
-
import { IEditorProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
|
|
10
|
+
import { Dimension } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/dom";
|
|
11
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
12
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
13
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
14
|
+
import { IEditorProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
|
|
15
15
|
export declare class NotebookEditorWidgetService implements INotebookEditorService {
|
|
16
16
|
private readonly editorGroupService;
|
|
17
17
|
private readonly instantiationService;
|
|
@@ -22,8 +22,8 @@ export declare class NotebookEditorWidgetService implements INotebookEditorServi
|
|
|
22
22
|
private readonly groupListener;
|
|
23
23
|
private readonly _onNotebookEditorAdd;
|
|
24
24
|
private readonly _onNotebookEditorsRemove;
|
|
25
|
-
readonly onDidAddNotebookEditor: import("vscode/vscode/vs/base/common/event").Event<INotebookEditor>;
|
|
26
|
-
readonly onDidRemoveNotebookEditor: import("vscode/vscode/vs/base/common/event").Event<INotebookEditor>;
|
|
25
|
+
readonly onDidAddNotebookEditor: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<INotebookEditor>;
|
|
26
|
+
readonly onDidRemoveNotebookEditor: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<INotebookEditor>;
|
|
27
27
|
private readonly _mostRecentRepl;
|
|
28
28
|
private readonly _borrowableEditors;
|
|
29
29
|
constructor(editorGroupService: IEditorGroupsService, editorService: IEditorService, contextKeyService: IContextKeyService, instantiationService: IInstantiationService);
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { ResourceMap } from 'vscode/vscode/vs/base/common/map';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { ResourceMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
4
4
|
import { getDefaultNotebookCreationOptions, NotebookEditorWidget } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
5
|
-
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
-
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
7
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
5
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
7
|
+
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
8
|
import { NotebookEditorInput, isCompositeNotebookEditorInput, isNotebookEditorInput } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
9
|
-
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
10
|
-
import { GroupModelChangeKind } from 'vscode/vscode/vs/workbench/common/editor';
|
|
11
|
-
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
12
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
9
|
+
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
10
|
+
import { GroupModelChangeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
11
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
12
|
+
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
13
13
|
import { MOST_RECENT_REPL_EDITOR, InteractiveWindowOpen } from '@codingame/monaco-vscode-4a36e358-d94d-55e0-86ee-3bcd543d9d3f-common/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
14
|
-
import { ServiceCollection } from 'vscode/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
15
|
-
import { IEditorProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
|
|
14
|
+
import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
15
|
+
import { IEditorProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service';
|
|
16
16
|
|
|
17
17
|
let NotebookEditorWidgetService = class NotebookEditorWidgetService {
|
|
18
18
|
constructor(editorGroupService, editorService, contextKeyService, instantiationService) {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { IDisposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
3
|
-
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
|
-
import { IWorkspaceTrustRequestService } from "vscode/vscode/vs/platform/workspace/common/workspaceTrust.service";
|
|
1
|
+
import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
3
|
+
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
|
+
import { IWorkspaceTrustRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service";
|
|
5
5
|
import { NotebookCellTextModel } from "@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
6
|
-
import { INotebookTextModel } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
7
|
-
import { ICellExecutionParticipant } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService";
|
|
8
|
-
import { INotebookExecutionService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service";
|
|
9
|
-
import { INotebookExecutionStateService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
10
|
-
import { INotebookKernelHistoryService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service";
|
|
11
|
-
import { INotebookKernelService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service";
|
|
12
|
-
import { INotebookLoggingService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service";
|
|
6
|
+
import { INotebookTextModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
7
|
+
import { ICellExecutionParticipant } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService";
|
|
8
|
+
import { INotebookExecutionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service";
|
|
9
|
+
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
10
|
+
import { INotebookKernelHistoryService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service";
|
|
11
|
+
import { INotebookKernelService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service";
|
|
12
|
+
import { INotebookLoggingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service";
|
|
13
13
|
export declare class NotebookExecutionService implements INotebookExecutionService, IDisposable {
|
|
14
14
|
private readonly _commandService;
|
|
15
15
|
private readonly _notebookKernelService;
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
3
|
-
import { toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import { localize } from 'vscode/vscode/vs/nls';
|
|
5
|
-
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
6
|
-
import { IWorkspaceTrustRequestService } from 'vscode/vscode/vs/platform/workspace/common/workspaceTrust.service';
|
|
2
|
+
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
|
+
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
6
|
+
import { IWorkspaceTrustRequestService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service';
|
|
7
7
|
import { KernelPickerMRUStrategy } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy';
|
|
8
|
-
import { CellKind, NotebookCellExecutionState } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
9
|
-
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
10
|
-
import { INotebookKernelService, INotebookKernelHistoryService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
11
|
-
import { INotebookLoggingService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service';
|
|
8
|
+
import { CellKind, NotebookCellExecutionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
9
|
+
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
10
|
+
import { INotebookKernelService, INotebookKernelHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
11
|
+
import { INotebookLoggingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service';
|
|
12
12
|
|
|
13
13
|
let NotebookExecutionService = class NotebookExecutionService {
|
|
14
14
|
constructor(_commandService, _notebookKernelService, _notebookKernelHistoryService, _workspaceTrustRequestService, _logService, _notebookExecutionStateService) {
|
|
@@ -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(7760, "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;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { URI } from "vscode/vscode/vs/base/common/uri";
|
|
3
|
-
import { IAccessibilitySignalService } from "vscode/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service";
|
|
4
|
-
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
|
-
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
6
|
-
import { ICellExecutionStateChangedEvent, IExecutionStateChangedEvent, INotebookCellExecution, INotebookExecution, INotebookFailStateChangedEvent } from "@codingame/monaco-vscode-
|
|
7
|
-
import { INotebookExecutionStateService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
8
|
-
import { INotebookService } from "vscode/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
+
import { IAccessibilitySignalService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service";
|
|
4
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
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-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
|
|
7
|
+
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
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 {
|
|
10
10
|
private readonly _instantiationService;
|
|
11
11
|
private readonly _logService;
|
|
@@ -19,9 +19,9 @@ export declare class NotebookExecutionStateService extends Disposable implements
|
|
|
19
19
|
private readonly _lastFailedCells;
|
|
20
20
|
private readonly _lastCompletedCellHandles;
|
|
21
21
|
private readonly _onDidChangeExecution;
|
|
22
|
-
onDidChangeExecution: import("vscode/vscode/vs/base/common/event").Event<ICellExecutionStateChangedEvent | IExecutionStateChangedEvent>;
|
|
22
|
+
onDidChangeExecution: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<ICellExecutionStateChangedEvent | IExecutionStateChangedEvent>;
|
|
23
23
|
private readonly _onDidChangeLastRunFailState;
|
|
24
|
-
onDidChangeLastRunFailState: import("vscode/vscode/vs/base/common/event").Event<INotebookFailStateChangedEvent>;
|
|
24
|
+
onDidChangeLastRunFailState: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<INotebookFailStateChangedEvent>;
|
|
25
25
|
constructor(_instantiationService: IInstantiationService, _logService: ILogService, _notebookService: INotebookService, _accessibilitySignalService: IAccessibilitySignalService);
|
|
26
26
|
getLastFailedCellForNotebook(notebook: URI): number | undefined;
|
|
27
27
|
getLastCompletedCellForNotebook(notebook: URI): number | undefined;
|