@codingame/monaco-vscode-notebook-service-override 37.1.0 → 37.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -0
- package/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.d.ts +22 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +210 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.d.ts +24 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +138 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.d.ts +29 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +194 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.d.ts +27 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +149 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.d.ts +49 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +372 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.d.ts +10 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +26 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.d.ts +9 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +43 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticEditorContrib.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnosticsActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/diagnosticCellStatusBarContrib.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookMulticursor.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/multicursor/notebookSelectionHighlight.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookInlineVariables.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/saveParticipants/saveParticipants.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/sectionActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/variablesActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/replEditorAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/cellEdit.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.d.ts +87 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +352 -0
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/replNotebook/browser/repl.contribution.js +2 -2
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/s
|
|
|
15
15
|
import { IEditorResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service";
|
|
16
16
|
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
17
17
|
import { CellEditState, IBaseCellEditorOptions, ICellOutputViewModel, ICommonCellInfo, IGenericCellViewModel, INotebookEditorCreationOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
18
|
-
import { INotebookDelegateForWebview } from "@codingame/monaco-vscode-
|
|
18
|
+
import { INotebookDelegateForWebview } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView";
|
|
19
19
|
import { NotebookOutputEditorInput } from "./notebookOutputEditorInput.js";
|
|
20
20
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
21
21
|
import { IEditorOptions as ICodeEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions";
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditor.js
CHANGED
|
@@ -19,17 +19,17 @@ import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/w
|
|
|
19
19
|
import { NOTEBOOK_OUTPUT_EDITOR_ID, CellUri } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
20
20
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
21
21
|
import { RenderOutputType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
22
|
-
import { getDefaultNotebookCreationOptions } from '@codingame/monaco-vscode-
|
|
23
|
-
import { NotebookOptions } from '@codingame/monaco-vscode-
|
|
24
|
-
import { BackLayerWebView } from '@codingame/monaco-vscode-
|
|
22
|
+
import { getDefaultNotebookCreationOptions } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
23
|
+
import { NotebookOptions } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookOptions';
|
|
24
|
+
import { BackLayerWebView } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView';
|
|
25
25
|
import { NotebookOutputEditorInput } from './notebookOutputEditorInput.js';
|
|
26
26
|
import { createBareFontInfoFromRawSettings } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/fontInfoFromSettings';
|
|
27
27
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
28
28
|
import { FontMeasurements } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/config/fontMeasurements';
|
|
29
29
|
import { PixelRatio } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/pixelRatio';
|
|
30
|
-
import { NotebookViewModel } from '@codingame/monaco-vscode-
|
|
31
|
-
import { NotebookEventDispatcher } from '@codingame/monaco-vscode-
|
|
32
|
-
import { ViewContext } from '@codingame/monaco-vscode-
|
|
30
|
+
import { NotebookViewModel } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl';
|
|
31
|
+
import { NotebookEventDispatcher } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher';
|
|
32
|
+
import { ViewContext } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/viewContext';
|
|
33
33
|
|
|
34
34
|
var NotebookOutputEditor_1;
|
|
35
35
|
class NoopCellEditorOptions extends Disposable {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/outputEditor/notebookOutputEditorInput.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { EditorInputCapabilities } from "@codingame/monaco-vscode-api/vscode/vs/
|
|
|
4
4
|
import { EditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput";
|
|
5
5
|
import { IResolvedNotebookEditorModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
6
6
|
import { INotebookEditorModelResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service";
|
|
7
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
7
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
8
8
|
declare class ResolvedNotebookOutputEditorInputModel implements IDisposable {
|
|
9
9
|
readonly resolvedNotebookEditorModel: IResolvedNotebookEditorModel;
|
|
10
10
|
readonly notebookUri: URI;
|
|
@@ -5,7 +5,7 @@ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
5
5
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
6
6
|
import { isReplEditorControl } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/replNotebook/browser/replEditor';
|
|
7
7
|
import { IS_COMPOSITE_NOTEBOOK, NOTEBOOK_CELL_LIST_FOCUSED } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookContextKeys';
|
|
8
|
-
import { getAllOutputsText } from '@codingame/monaco-vscode-
|
|
8
|
+
import { getAllOutputsText } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/cellOutputTextHelper';
|
|
9
9
|
|
|
10
10
|
class ReplEditorAccessibleView {
|
|
11
11
|
constructor() {
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CodeWindow } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/window";
|
|
2
|
-
import { NotebookEditorWidget } from "@codingame/monaco-vscode-
|
|
2
|
+
import { NotebookEditorWidget } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget";
|
|
3
3
|
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
4
4
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
5
5
|
import { IInstantiationService, ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { ResourceMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
4
|
-
import { getDefaultNotebookCreationOptions, NotebookEditorWidget } from '@codingame/monaco-vscode-
|
|
4
|
+
import { getDefaultNotebookCreationOptions, NotebookEditorWidget } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
5
5
|
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
7
7
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/
|
|
|
2
2
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
3
3
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
4
4
|
import { IWorkspaceTrustRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service";
|
|
5
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
5
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
6
6
|
import { INotebookTextModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
7
7
|
import { ICellExecutionParticipant } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService";
|
|
8
8
|
import { INotebookExecutionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service";
|
package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js
CHANGED
|
@@ -4,7 +4,7 @@ import { toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common
|
|
|
4
4
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
5
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
6
6
|
import { IWorkspaceTrustRequestService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service';
|
|
7
|
-
import { KernelPickerMRUStrategy } from '@codingame/monaco-vscode-
|
|
7
|
+
import { KernelPickerMRUStrategy } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy';
|
|
8
8
|
import { CellKind, NotebookCellExecutionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
9
9
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
10
10
|
import { INotebookKernelService, INotebookKernelHistoryService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
@@ -3,7 +3,7 @@ import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
|
3
3
|
import { IAccessibilitySignalService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service";
|
|
4
4
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
5
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
6
|
-
import { ICellExecutionStateChangedEvent, IExecutionStateChangedEvent, INotebookCellExecution, INotebookExecution, INotebookFailStateChangedEvent } from "@codingame/monaco-vscode-
|
|
6
|
+
import { ICellExecutionStateChangedEvent, IExecutionStateChangedEvent, INotebookCellExecution, INotebookExecution, INotebookFailStateChangedEvent } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
|
|
7
7
|
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
8
8
|
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
9
9
|
export declare class NotebookExecutionStateService extends Disposable implements INotebookExecutionStateService {
|
|
@@ -12,7 +12,7 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
12
12
|
import { CellUri, NotebookCellExecutionState, CellEditType, NotebookExecutionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
13
13
|
import { CellExecutionUpdateType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService';
|
|
14
14
|
import { INotebookExecutionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionService.service';
|
|
15
|
-
import { NotebookExecutionType } from '@codingame/monaco-vscode-
|
|
15
|
+
import { NotebookExecutionType } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
16
16
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
17
17
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
18
18
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
@@ -7,7 +7,7 @@ import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
7
7
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
8
8
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
9
9
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
10
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
10
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
11
11
|
import { NotebookTextModel } from "../../common/model/notebookTextModel.js";
|
|
12
12
|
import { INotebookContributionData, INotebookRendererInfo, IOrderedMimeType, IOutputDto, NotebookExtensionDescription, INotebookStaticPreloadInfo } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
13
13
|
import { INotebookEditorModelResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
3
3
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
4
4
|
import { MarkerSeverity } from '@codingame/monaco-vscode-api/vscode/vs/platform/markers/common/markers';
|
|
5
|
-
import { executingStateIcon } from '@codingame/monaco-vscode-
|
|
5
|
+
import { executingStateIcon } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
6
6
|
import { CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
7
7
|
import { SymbolKinds } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/languages';
|
|
8
8
|
|
package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js
CHANGED
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { renderAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
4
4
|
import { IOutlineModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/documentSymbols/browser/outlineModel.service';
|
|
5
5
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
|
-
import { getMarkdownHeadersInCell } from '@codingame/monaco-vscode-
|
|
6
|
+
import { getMarkdownHeadersInCell } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/browser/viewModel/foldingModel';
|
|
7
7
|
import { OutlineEntry } from './OutlineEntry.js';
|
|
8
8
|
import { CellKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
9
9
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IResourceUndoRedoElement, UndoRedoElementType } from "@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo";
|
|
2
2
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
3
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
4
4
|
import { ISelectionState, NotebookCellMetadata } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
5
5
|
/**
|
|
6
6
|
* It should not modify Undo/Redo stack
|
|
@@ -11,7 +11,7 @@ import { ILanguageDetectionService } from "@codingame/monaco-vscode-api/vscode/v
|
|
|
11
11
|
import { ICellDto2, ICellEditOperation, INotebookSnapshotOptions, INotebookTextModel, ISelectionState, NotebookCellDefaultCollapseConfig, NotebookData, NotebookDocumentMetadata, NotebookTextModelChangedEvent, NotebookTextModelWillAddRemoveEvent, TransientOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
12
12
|
import { INotebookExecutionStateService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service";
|
|
13
13
|
import { INotebookLoggingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service";
|
|
14
|
-
import { NotebookCellTextModel } from "@codingame/monaco-vscode-
|
|
14
|
+
import { NotebookCellTextModel } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
|
|
15
15
|
export declare class NotebookTextModel extends Disposable implements INotebookTextModel {
|
|
16
16
|
readonly viewType: string;
|
|
17
17
|
readonly uri: URI;
|
|
@@ -22,8 +22,8 @@ import { CellUri, NotebookCellsChangeType, NotebookCellExecutionState, CellEditT
|
|
|
22
22
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
23
23
|
import { INotebookLoggingService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service';
|
|
24
24
|
import { SpliceCellsEdit, CellMetadataEdit, MoveCellEdit } from './cellEdit.js';
|
|
25
|
-
import { NotebookCellOutputTextModel } from '@codingame/monaco-vscode-
|
|
26
|
-
import { NotebookCellTextModel } from '@codingame/monaco-vscode-
|
|
25
|
+
import { NotebookCellOutputTextModel } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel';
|
|
26
|
+
import { NotebookCellTextModel } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel';
|
|
27
27
|
|
|
28
28
|
var NotebookTextModel_1;
|
|
29
29
|
class StackOperation {
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { VSBufferReadableStream } from "@codingame/monaco-vscode-api/vscode/vs/base/common/buffer";
|
|
2
|
+
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
3
|
+
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
4
|
+
import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent";
|
|
5
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
6
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
7
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
8
|
+
import { IWriteFileOptions, IFileStatWithMetadata } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files";
|
|
9
|
+
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
10
|
+
import { IRevertOptions, ISaveOptions, IUntypedEditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
11
|
+
import { EditorModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorModel";
|
|
12
|
+
import { NotebookTextModel } from "./model/notebookTextModel.js";
|
|
13
|
+
import { INotebookEditorModel, INotebookLoadOptions, IResolvedNotebookEditorModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
14
|
+
import { INotebookLoggingService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookLoggingService.service";
|
|
15
|
+
import { INotebookSerializer } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService";
|
|
16
|
+
import { INotebookService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service";
|
|
17
|
+
import { IFilesConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service";
|
|
18
|
+
import { IFileWorkingCopyModelConfiguration, SnapshotContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/fileWorkingCopy";
|
|
19
|
+
import { IFileWorkingCopyManager } from "../../../services/workingCopy/common/fileWorkingCopyManager.js";
|
|
20
|
+
import { IStoredFileWorkingCopyModel, IStoredFileWorkingCopyModelContentChangedEvent, IStoredFileWorkingCopyModelFactory, IStoredFileWorkingCopySaveEvent } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/storedFileWorkingCopy";
|
|
21
|
+
import { IUntitledFileWorkingCopyModel, IUntitledFileWorkingCopyModelContentChangedEvent, IUntitledFileWorkingCopyModelFactory } from "../../../services/workingCopy/common/untitledFileWorkingCopy.js";
|
|
22
|
+
export declare class SimpleNotebookEditorModel extends EditorModel implements INotebookEditorModel {
|
|
23
|
+
readonly resource: URI;
|
|
24
|
+
private readonly _hasAssociatedFilePath;
|
|
25
|
+
readonly viewType: string;
|
|
26
|
+
private readonly _workingCopyManager;
|
|
27
|
+
private readonly _filesConfigurationService;
|
|
28
|
+
private readonly _onDidChangeDirty;
|
|
29
|
+
private readonly _onDidSave;
|
|
30
|
+
private readonly _onDidChangeOrphaned;
|
|
31
|
+
private readonly _onDidChangeReadonly;
|
|
32
|
+
private readonly _onDidRevertUntitled;
|
|
33
|
+
readonly onDidChangeDirty: Event<void>;
|
|
34
|
+
readonly onDidSave: Event<IStoredFileWorkingCopySaveEvent>;
|
|
35
|
+
readonly onDidChangeOrphaned: Event<void>;
|
|
36
|
+
readonly onDidChangeReadonly: Event<void>;
|
|
37
|
+
readonly onDidRevertUntitled: Event<void>;
|
|
38
|
+
private _workingCopy?;
|
|
39
|
+
private readonly _workingCopyListeners;
|
|
40
|
+
private readonly scratchPad;
|
|
41
|
+
constructor(resource: URI, _hasAssociatedFilePath: boolean, viewType: string, _workingCopyManager: IFileWorkingCopyManager<NotebookFileWorkingCopyModel, NotebookFileWorkingCopyModel>, scratchpad: boolean, _filesConfigurationService: IFilesConfigurationService);
|
|
42
|
+
dispose(): void;
|
|
43
|
+
get notebook(): NotebookTextModel | undefined;
|
|
44
|
+
isResolved(): this is IResolvedNotebookEditorModel;
|
|
45
|
+
canDispose(): Promise<boolean>;
|
|
46
|
+
isDirty(): boolean;
|
|
47
|
+
isModified(): boolean;
|
|
48
|
+
isOrphaned(): boolean;
|
|
49
|
+
hasAssociatedFilePath(): boolean;
|
|
50
|
+
isReadonly(): boolean | IMarkdownString;
|
|
51
|
+
get hasErrorState(): boolean;
|
|
52
|
+
revert(options?: IRevertOptions): Promise<void>;
|
|
53
|
+
save(options?: ISaveOptions): Promise<boolean>;
|
|
54
|
+
load(options?: INotebookLoadOptions): Promise<IResolvedNotebookEditorModel>;
|
|
55
|
+
saveAs(target: URI): Promise<IUntypedEditorInput | undefined>;
|
|
56
|
+
private static _isStoredFileWorkingCopy;
|
|
57
|
+
}
|
|
58
|
+
export declare class NotebookFileWorkingCopyModel extends Disposable implements IStoredFileWorkingCopyModel, IUntitledFileWorkingCopyModel {
|
|
59
|
+
private readonly _notebookModel;
|
|
60
|
+
private readonly _notebookService;
|
|
61
|
+
private readonly _configurationService;
|
|
62
|
+
private readonly _telemetryService;
|
|
63
|
+
private readonly _notebookLogService;
|
|
64
|
+
private readonly _onDidChangeContent;
|
|
65
|
+
readonly onDidChangeContent: Event<IStoredFileWorkingCopyModelContentChangedEvent & IUntitledFileWorkingCopyModelContentChangedEvent>;
|
|
66
|
+
readonly onWillDispose: Event<void>;
|
|
67
|
+
readonly configuration: IFileWorkingCopyModelConfiguration | undefined;
|
|
68
|
+
save: ((options: IWriteFileOptions, token: CancellationToken) => Promise<IFileStatWithMetadata>) | undefined;
|
|
69
|
+
constructor(_notebookModel: NotebookTextModel, _notebookService: INotebookService, _configurationService: IConfigurationService, _telemetryService: ITelemetryService, _notebookLogService: INotebookLoggingService);
|
|
70
|
+
private setSaveDelegate;
|
|
71
|
+
dispose(): void;
|
|
72
|
+
get notebookModel(): NotebookTextModel;
|
|
73
|
+
snapshot(context: SnapshotContext, token: CancellationToken): Promise<VSBufferReadableStream>;
|
|
74
|
+
update(stream: VSBufferReadableStream, token: CancellationToken): Promise<void>;
|
|
75
|
+
getNotebookSerializer(): Promise<INotebookSerializer>;
|
|
76
|
+
get versionId(): string;
|
|
77
|
+
pushStackElement(): void;
|
|
78
|
+
}
|
|
79
|
+
export declare class NotebookFileWorkingCopyModelFactory implements IStoredFileWorkingCopyModelFactory<NotebookFileWorkingCopyModel>, IUntitledFileWorkingCopyModelFactory<NotebookFileWorkingCopyModel> {
|
|
80
|
+
private readonly _viewType;
|
|
81
|
+
private readonly _notebookService;
|
|
82
|
+
private readonly _configurationService;
|
|
83
|
+
private readonly _telemetryService;
|
|
84
|
+
private readonly _notebookLogService;
|
|
85
|
+
constructor(_viewType: string, _notebookService: INotebookService, _configurationService: IConfigurationService, _telemetryService: ITelemetryService, _notebookLogService: INotebookLoggingService);
|
|
86
|
+
createModel(resource: URI, stream: VSBufferReadableStream, token: CancellationToken): Promise<NotebookFileWorkingCopyModel>;
|
|
87
|
+
}
|