@codingame/monaco-vscode-notebook-service-override 1.85.6 → 2.0.0-v2.1
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/notebook.js +1 -1
- package/package.json +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/emptyTextEditorHint/emptyTextEditorHint.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/contributedStatusBarItemController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/statusBarProviders.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/notebookClipboard.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookBreakpoints.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookCellPausing.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/debug/notebookDebugDecorations.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorHint/emptyCellEditorHint.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/editorStatusBar/editorStatusBar.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/execute/executionEditorProgress.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFind.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +23 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/format/formatting.js +16 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/gettingStarted/notebookGettingStarted.js +9 -9
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/kernelDetection/notebookKernelDetection.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/layout/layoutActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/marker/markerProvider.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/navigation/arrow.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariables.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/notebookVariables/notebookVariablesView.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/outline/notebookOutline.js +17 -17
- 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.js +19 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/undoRedo/notebookUndoRedo.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/viewportWarmup/viewportWarmup.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/apiActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/executeActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/layoutActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +47 -47
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +21 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +52 -52
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebook.contribution.js +85 -85
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibility.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookExtensionPoint.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookCellStatusBarServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorServiceImpl.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionServiceImpl.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookExecutionStateServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelHistoryServiceImpl.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKernelServiceImpl.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookKeymapServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookLoggingServiceImpl.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookRendererMessagingServiceImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.js +20 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookWorkerServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookTextModel.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverServiceImpl.js +11 -11
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookOutputRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookProvider.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookSimpleWorker.js +6 -6
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +9 -9
- package/vscode/src/vs/workbench/services/workingCopy/common/abstractFileWorkingCopyManager.js +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopyManager.js +15 -15
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopyManager.js +15 -15
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopy.js +6 -6
- package/vscode/src/vs/workbench/services/workingCopy/common/untitledFileWorkingCopyManager.js +8 -8
- package/workers/notebook.worker.js +1 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import { Disposable, DisposableStore } from '
|
|
4
|
-
import { Schemas } from '
|
|
5
|
-
import { IInstantiationService } from '
|
|
2
|
+
import { scheduleAtNextAnimationFrame, getWindow, append, $, reset } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
|
+
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
5
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
6
|
import { outputEqual, OUTPUT_EDITOR_HEIGHT_MAGIC, PropertyFoldingState, SideBySideDiffElementViewModel, getFormattedMetadataJSON, getFormattedOutputJSON } from './diffElementViewModel.js';
|
|
7
7
|
import { DIFF_CELL_MARGIN, DiffSide, NOTEBOOK_DIFF_CELL_INPUT, NOTEBOOK_DIFF_CELL_PROPERTY, NOTEBOOK_DIFF_CELL_PROPERTY_EXPANDED } from './notebookDiffEditorBrowser.js';
|
|
8
|
-
import { CodeEditorWidget } from '
|
|
9
|
-
import { IModelService } from '
|
|
10
|
-
import { ILanguageService } from '
|
|
8
|
+
import { CodeEditorWidget } from 'vscode/vscode/vs/editor/browser/widget/codeEditorWidget';
|
|
9
|
+
import { IModelService } from 'vscode/vscode/vs/editor/common/services/model';
|
|
10
|
+
import { ILanguageService } from 'vscode/vscode/vs/editor/common/languages/language';
|
|
11
11
|
import { CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
12
|
-
import { IContextMenuService } from '
|
|
13
|
-
import { MenuId, MenuItemAction, IMenuService } from '
|
|
14
|
-
import { IKeybindingService } from '
|
|
15
|
-
import { INotificationService } from '
|
|
16
|
-
import { createAndFillInActionBarActions } from '
|
|
17
|
-
import { IContextKeyService } from '
|
|
12
|
+
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
13
|
+
import { MenuId, MenuItemAction, IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
14
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
15
|
+
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
16
|
+
import { createAndFillInActionBarActions } from 'vscode/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
|
17
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
18
18
|
import { CodiconActionViewItem } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView';
|
|
19
19
|
import { collapsedIcon, expandedIcon } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
20
20
|
import { OutputContainer } from './diffElementOutputs.js';
|
|
21
|
-
import { EditorExtensionsRegistry } from '
|
|
22
|
-
import { ContextMenuController } from '
|
|
23
|
-
import { SnippetController2 } from '
|
|
24
|
-
import { SuggestController } from '
|
|
21
|
+
import { EditorExtensionsRegistry } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
22
|
+
import { ContextMenuController } from 'vscode/vscode/vs/editor/contrib/contextmenu/browser/contextmenu';
|
|
23
|
+
import { SnippetController2 } from 'vscode/vscode/vs/editor/contrib/snippet/browser/snippetController2';
|
|
24
|
+
import { SuggestController } from 'vscode/vscode/vs/editor/contrib/suggest/browser/suggestController';
|
|
25
25
|
import { MenuPreventer } from 'vscode/vscode/vs/workbench/contrib/codeEditor/browser/menuPreventer';
|
|
26
26
|
import { SelectionClipboardContributionID } from 'vscode/vscode/vs/workbench/contrib/codeEditor/browser/selectionClipboard';
|
|
27
27
|
import { TabCompletionController } from 'vscode/vscode/vs/workbench/contrib/snippets/browser/tabCompletion';
|
|
28
|
-
import { renderIcon } from '
|
|
29
|
-
import { ITextModelService } from '
|
|
30
|
-
import { IConfigurationService } from '
|
|
31
|
-
import { IThemeService } from '
|
|
32
|
-
import { WorkbenchToolBar } from '
|
|
33
|
-
import { ITelemetryService } from '
|
|
28
|
+
import { renderIcon } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconLabels';
|
|
29
|
+
import { ITextModelService } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
30
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
31
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
32
|
+
import { WorkbenchToolBar } from 'vscode/vscode/vs/platform/actions/browser/toolbar';
|
|
33
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
34
34
|
import { fixedEditorPadding, fixedDiffEditorOptions, fixedEditorOptions } from './diffCellEditorOptions.js';
|
|
35
|
-
import { IAccessibilityService } from '
|
|
36
|
-
import { DiffEditorWidget } from '
|
|
35
|
+
import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
36
|
+
import { DiffEditorWidget } from 'vscode/vscode/vs/editor/browser/widget/diffEditor/diffEditorWidget';
|
|
37
37
|
|
|
38
38
|
function getOptimizedNestedCodeEditorWidgetOptions() {
|
|
39
39
|
return {
|
|
@@ -66,12 +66,12 @@ let PropertyHeader = class PropertyHeader extends Disposable {
|
|
|
66
66
|
}
|
|
67
67
|
buildHeader() {
|
|
68
68
|
const metadataChanged = this.accessor.checkIfModified(this.cell);
|
|
69
|
-
this._foldingIndicator =
|
|
69
|
+
this._foldingIndicator = append(this.propertyHeaderContainer, $('.property-folding-indicator'));
|
|
70
70
|
this._foldingIndicator.classList.add(this.accessor.prefix);
|
|
71
71
|
this._updateFoldingIcon();
|
|
72
|
-
const metadataStatus =
|
|
73
|
-
this._statusSpan =
|
|
74
|
-
this._description =
|
|
72
|
+
const metadataStatus = append(this.propertyHeaderContainer, $('div.property-status'));
|
|
73
|
+
this._statusSpan = append(metadataStatus, $('span'));
|
|
74
|
+
this._description = append(metadataStatus, $('span.property-description'));
|
|
75
75
|
if (metadataChanged) {
|
|
76
76
|
this._statusSpan.textContent = this.accessor.changedLabel;
|
|
77
77
|
this._statusSpan.style.fontWeight = 'bold';
|
|
@@ -85,7 +85,7 @@ let PropertyHeader = class PropertyHeader extends Disposable {
|
|
|
85
85
|
this._description.textContent = '';
|
|
86
86
|
this.propertyHeaderContainer.classList.remove('modified');
|
|
87
87
|
}
|
|
88
|
-
const cellToolbarContainer =
|
|
88
|
+
const cellToolbarContainer = append(this.propertyHeaderContainer, $('div.property-toolbar'));
|
|
89
89
|
this._toolbar = ( new WorkbenchToolBar(cellToolbarContainer, {
|
|
90
90
|
actionViewItemProvider: action => {
|
|
91
91
|
if (action instanceof MenuItemAction) {
|
|
@@ -175,11 +175,11 @@ let PropertyHeader = class PropertyHeader extends Disposable {
|
|
|
175
175
|
}
|
|
176
176
|
_updateFoldingIcon() {
|
|
177
177
|
if (this.accessor.getFoldingState(this.cell) === PropertyFoldingState.Collapsed) {
|
|
178
|
-
|
|
178
|
+
reset(this._foldingIndicator, renderIcon(collapsedIcon));
|
|
179
179
|
this._propertyExpanded?.set(false);
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
182
|
-
|
|
182
|
+
reset(this._foldingIndicator, renderIcon(expandedIcon));
|
|
183
183
|
this._propertyExpanded?.set(true);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -300,7 +300,7 @@ class AbstractElementRenderer extends Disposable {
|
|
|
300
300
|
if (this.cell.metadataFoldingState === PropertyFoldingState.Expanded) {
|
|
301
301
|
this._metadataInfoContainer.style.display = 'block';
|
|
302
302
|
if (!this._metadataEditorContainer || !this._metadataEditor) {
|
|
303
|
-
this._metadataEditorContainer =
|
|
303
|
+
this._metadataEditorContainer = append(this._metadataInfoContainer, $('.metadata-editor-container'));
|
|
304
304
|
this._buildMetadataEditor();
|
|
305
305
|
}
|
|
306
306
|
else {
|
|
@@ -336,7 +336,7 @@ class AbstractElementRenderer extends Disposable {
|
|
|
336
336
|
}
|
|
337
337
|
_buildOutputRawContainer() {
|
|
338
338
|
if (!this._outputEditorContainer) {
|
|
339
|
-
this._outputEditorContainer =
|
|
339
|
+
this._outputEditorContainer = append(this._outputInfoContainer, $('.output-editor-container'));
|
|
340
340
|
this._buildOutputEditor();
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -746,7 +746,7 @@ let DeletedElement = class DeletedElement extends SingleSideDiffElement {
|
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
748
|
layout(state) {
|
|
749
|
-
|
|
749
|
+
scheduleAtNextAnimationFrame(getWindow(this._diffEditorContainer), () => {
|
|
750
750
|
if (state.editorHeight || state.outerWidth) {
|
|
751
751
|
this._editor.layout({
|
|
752
752
|
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, false),
|
|
@@ -773,9 +773,9 @@ let DeletedElement = class DeletedElement extends SingleSideDiffElement {
|
|
|
773
773
|
}
|
|
774
774
|
_buildOutputRendererContainer() {
|
|
775
775
|
if (!this._outputViewContainer) {
|
|
776
|
-
this._outputViewContainer =
|
|
777
|
-
this._outputEmptyElement =
|
|
778
|
-
const span =
|
|
776
|
+
this._outputViewContainer = append(this._outputInfoContainer, $('.output-view-container'));
|
|
777
|
+
this._outputEmptyElement = append(this._outputViewContainer, $('.output-empty-view'));
|
|
778
|
+
const span = append(this._outputEmptyElement, $('span'));
|
|
779
779
|
span.innerText = 'No outputs to render';
|
|
780
780
|
if (this.cell.original.outputs.length === 0) {
|
|
781
781
|
this._outputEmptyElement.style.display = 'block';
|
|
@@ -870,8 +870,8 @@ let InsertElement = class InsertElement extends SingleSideDiffElement {
|
|
|
870
870
|
}
|
|
871
871
|
_buildOutputRendererContainer() {
|
|
872
872
|
if (!this._outputViewContainer) {
|
|
873
|
-
this._outputViewContainer =
|
|
874
|
-
this._outputEmptyElement =
|
|
873
|
+
this._outputViewContainer = append(this._outputInfoContainer, $('.output-view-container'));
|
|
874
|
+
this._outputEmptyElement = append(this._outputViewContainer, $('.output-empty-view'));
|
|
875
875
|
this._outputEmptyElement.innerText = 'No outputs to render';
|
|
876
876
|
if (this.cell.modified.outputs.length === 0) {
|
|
877
877
|
this._outputEmptyElement.style.display = 'block';
|
|
@@ -910,7 +910,7 @@ let InsertElement = class InsertElement extends SingleSideDiffElement {
|
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
layout(state) {
|
|
913
|
-
|
|
913
|
+
scheduleAtNextAnimationFrame(getWindow(this._diffEditorContainer), () => {
|
|
914
914
|
if (state.editorHeight || state.outerWidth) {
|
|
915
915
|
this._editor.layout({
|
|
916
916
|
width: this.cell.getComputedCellContainerWidth(this.notebookEditor.getLayoutInfo(), false, false),
|
|
@@ -1042,8 +1042,8 @@ let ModifiedElement = class ModifiedElement extends AbstractElementRenderer {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
_buildOutputRendererContainer() {
|
|
1044
1044
|
if (!this._outputViewContainer) {
|
|
1045
|
-
this._outputViewContainer =
|
|
1046
|
-
this._outputEmptyElement =
|
|
1045
|
+
this._outputViewContainer = append(this._outputInfoContainer, $('.output-view-container'));
|
|
1046
|
+
this._outputEmptyElement = append(this._outputViewContainer, $('.output-empty-view'));
|
|
1047
1047
|
this._outputEmptyElement.innerText = 'No outputs to render';
|
|
1048
1048
|
if (!this.cell.checkIfOutputsModified() && this.cell.modified.outputs.length === 0) {
|
|
1049
1049
|
this._outputEmptyElement.style.display = 'block';
|
|
@@ -1061,9 +1061,9 @@ let ModifiedElement = class ModifiedElement extends AbstractElementRenderer {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
this._decorate();
|
|
1063
1063
|
}));
|
|
1064
|
-
this._outputLeftContainer =
|
|
1065
|
-
this._outputRightContainer =
|
|
1066
|
-
this._outputMetadataContainer =
|
|
1064
|
+
this._outputLeftContainer = append(this._outputViewContainer, $('.output-view-container-left'));
|
|
1065
|
+
this._outputRightContainer = append(this._outputViewContainer, $('.output-view-container-right'));
|
|
1066
|
+
this._outputMetadataContainer = append(this._outputViewContainer, $('.output-view-container-metadata'));
|
|
1067
1067
|
const outputModified = this.cell.checkIfOutputsModified();
|
|
1068
1068
|
const outputMetadataChangeOnly = outputModified
|
|
1069
1069
|
&& outputModified.kind === 1
|
|
@@ -1242,7 +1242,7 @@ let ModifiedElement = class ModifiedElement extends AbstractElementRenderer {
|
|
|
1242
1242
|
this.cell.editorHeight = contentHeight;
|
|
1243
1243
|
}
|
|
1244
1244
|
layout(state) {
|
|
1245
|
-
|
|
1245
|
+
scheduleAtNextAnimationFrame(getWindow(this._diffEditorContainer), () => {
|
|
1246
1246
|
if (state.editorHeight) {
|
|
1247
1247
|
this._editorContainer.style.height = `${this.cell.layoutInfo.editorHeight}px`;
|
|
1248
1248
|
this._editor.layout({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Disposable, DisposableStore } from '
|
|
2
|
+
import { $, addStandardDisposableListener, addDisposableListener, EventType, append } from 'vscode/vscode/vs/base/browser/dom';
|
|
3
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
4
|
+
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { SideBySideDiffElementViewModel } from './diffElementViewModel.js';
|
|
6
6
|
import { DiffSide } from './notebookDiffEditorBrowser.js';
|
|
7
7
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService';
|
|
8
|
-
import { ThemeIcon } from '
|
|
8
|
+
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
9
9
|
import { mimetypeIcon } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
10
|
-
import { StandardKeyboardEvent } from '
|
|
11
|
-
import { IQuickInputService } from '
|
|
10
|
+
import { StandardKeyboardEvent } from 'vscode/vscode/vs/base/browser/keyboardEvent';
|
|
11
|
+
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput';
|
|
12
12
|
|
|
13
13
|
class OutputElement extends Disposable {
|
|
14
14
|
constructor(_notebookEditor, _notebookTextModel, _notebookService, _quickInputService, _diffElementViewModel, _diffSide, _nestedCell, _outputContainer, output) {
|
|
@@ -31,24 +31,24 @@ class OutputElement extends Disposable {
|
|
|
31
31
|
const pickedMimeTypeRenderer = mimeTypes[pick];
|
|
32
32
|
if (mimeTypes.length > 1) {
|
|
33
33
|
outputItemDiv.style.position = 'relative';
|
|
34
|
-
const mimeTypePicker =
|
|
34
|
+
const mimeTypePicker = $('.multi-mimetype-output');
|
|
35
35
|
mimeTypePicker.classList.add(...ThemeIcon.asClassNameArray(mimetypeIcon));
|
|
36
36
|
mimeTypePicker.tabIndex = 0;
|
|
37
|
-
mimeTypePicker.title = (
|
|
37
|
+
mimeTypePicker.title = ( localizeWithPath(
|
|
38
38
|
'vs/workbench/contrib/notebook/browser/diff/diffElementOutputs',
|
|
39
39
|
'mimeTypePicker',
|
|
40
40
|
"Choose a different output mimetype, available mimetypes: {0}",
|
|
41
41
|
( mimeTypes.map(mimeType => mimeType.mimeType)).join(', ')
|
|
42
42
|
));
|
|
43
43
|
outputItemDiv.appendChild(mimeTypePicker);
|
|
44
|
-
this.resizeListener.add(
|
|
44
|
+
this.resizeListener.add(addStandardDisposableListener(mimeTypePicker, 'mousedown', async (e) => {
|
|
45
45
|
if (e.leftButton) {
|
|
46
46
|
e.preventDefault();
|
|
47
47
|
e.stopPropagation();
|
|
48
48
|
await this.pickActiveMimeTypeRenderer(this._notebookTextModel, this.output);
|
|
49
49
|
}
|
|
50
50
|
}));
|
|
51
|
-
this.resizeListener.add((
|
|
51
|
+
this.resizeListener.add((addDisposableListener(mimeTypePicker, EventType.KEY_DOWN, async (e) => {
|
|
52
52
|
const event = ( new StandardKeyboardEvent(e));
|
|
53
53
|
if ((event.equals(3 ) || event.equals(10 ))) {
|
|
54
54
|
e.preventDefault();
|
|
@@ -57,8 +57,8 @@ class OutputElement extends Disposable {
|
|
|
57
57
|
}
|
|
58
58
|
})));
|
|
59
59
|
}
|
|
60
|
-
const innerContainer =
|
|
61
|
-
|
|
60
|
+
const innerContainer = $('.output-inner-container');
|
|
61
|
+
append(outputItemDiv, innerContainer);
|
|
62
62
|
if (mimeTypes.length !== 0) {
|
|
63
63
|
const renderer = this._notebookService.getRendererInfo(pickedMimeTypeRenderer.rendererId);
|
|
64
64
|
result = renderer
|
|
@@ -83,7 +83,7 @@ class OutputElement extends Disposable {
|
|
|
83
83
|
}
|
|
84
84
|
_renderMissingRenderer(viewModel, preferredMimeType) {
|
|
85
85
|
if (!viewModel.model.outputs.length) {
|
|
86
|
-
return this._renderMessage(viewModel, (
|
|
86
|
+
return this._renderMessage(viewModel, ( localizeWithPath(
|
|
87
87
|
'vs/workbench/contrib/notebook/browser/diff/diffElementOutputs',
|
|
88
88
|
'empty',
|
|
89
89
|
"Cell has no output"
|
|
@@ -92,7 +92,7 @@ class OutputElement extends Disposable {
|
|
|
92
92
|
if (!preferredMimeType) {
|
|
93
93
|
const mimeTypes = ( viewModel.model.outputs.map(op => op.mime));
|
|
94
94
|
const mimeTypesMessage = mimeTypes.join(', ');
|
|
95
|
-
return this._renderMessage(viewModel, (
|
|
95
|
+
return this._renderMessage(viewModel, ( localizeWithPath(
|
|
96
96
|
'vs/workbench/contrib/notebook/browser/diff/diffElementOutputs',
|
|
97
97
|
'noRenderer.2',
|
|
98
98
|
"No renderer could be found for output. It has the following mimetypes: {0}",
|
|
@@ -103,8 +103,8 @@ class OutputElement extends Disposable {
|
|
|
103
103
|
}
|
|
104
104
|
_renderSearchForMimetype(viewModel, mimeType) {
|
|
105
105
|
const query = `@tag:notebookRenderer ${mimeType}`;
|
|
106
|
-
const p =
|
|
107
|
-
const a =
|
|
106
|
+
const p = $('p', undefined, `No renderer could be found for mimetype "${mimeType}", but one might be available on the Marketplace.`);
|
|
107
|
+
const a = $('a', { href: `command:workbench.extensions.search?%22${query}%22`, class: 'monaco-button monaco-text-button', tabindex: 0, role: 'button', style: 'padding: 8px; text-decoration: none; color: rgb(255, 255, 255); background-color: rgb(14, 99, 156); max-width: 200px;' }, `Search Marketplace`);
|
|
108
108
|
return {
|
|
109
109
|
type: 0 ,
|
|
110
110
|
source: viewModel,
|
|
@@ -112,7 +112,7 @@ class OutputElement extends Disposable {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
_renderMessage(viewModel, message) {
|
|
115
|
-
const el =
|
|
115
|
+
const el = $('p', undefined, message);
|
|
116
116
|
return { type: 0 , source: viewModel, htmlContent: el.outerHTML };
|
|
117
117
|
}
|
|
118
118
|
async pickActiveMimeTypeRenderer(notebookTextModel, viewModel) {
|
|
@@ -123,7 +123,7 @@ class OutputElement extends Disposable {
|
|
|
123
123
|
index: index,
|
|
124
124
|
picked: index === currIndex,
|
|
125
125
|
detail: this.generateRendererInfo(mimeType.rendererId),
|
|
126
|
-
description: index === currIndex ? (
|
|
126
|
+
description: index === currIndex ? ( localizeWithPath(
|
|
127
127
|
'vs/workbench/contrib/notebook/browser/diff/diffElementOutputs',
|
|
128
128
|
'curruentActiveMimeType',
|
|
129
129
|
"Currently Active"
|
|
@@ -133,12 +133,12 @@ class OutputElement extends Disposable {
|
|
|
133
133
|
picker.items = items;
|
|
134
134
|
picker.activeItems = items.filter(item => !!item.picked);
|
|
135
135
|
picker.placeholder = items.length !== mimeTypes.length
|
|
136
|
-
? (
|
|
136
|
+
? ( localizeWithPath(
|
|
137
137
|
'vs/workbench/contrib/notebook/browser/diff/diffElementOutputs',
|
|
138
138
|
'promptChooseMimeTypeInSecure.placeHolder',
|
|
139
139
|
"Select mimetype to render for current output. Rich mimetypes are available only when the notebook is trusted"
|
|
140
140
|
))
|
|
141
|
-
: (
|
|
141
|
+
: ( localizeWithPath(
|
|
142
142
|
'vs/workbench/contrib/notebook/browser/diff/diffElementOutputs',
|
|
143
143
|
'promptChooseMimeType.placeHolder',
|
|
144
144
|
"Select mimetype to render for current output"
|
|
@@ -172,7 +172,7 @@ class OutputElement extends Disposable {
|
|
|
172
172
|
const displayName = renderInfo.displayName !== '' ? renderInfo.displayName : renderInfo.id;
|
|
173
173
|
return `${displayName} (${renderInfo.extensionId.value})`;
|
|
174
174
|
}
|
|
175
|
-
return (
|
|
175
|
+
return ( localizeWithPath(
|
|
176
176
|
'vs/workbench/contrib/notebook/browser/diff/diffElementOutputs',
|
|
177
177
|
'builtinRenderInfo',
|
|
178
178
|
"built-in"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Emitter } from '
|
|
2
|
-
import { hash } from '
|
|
1
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
2
|
+
import { hash } from 'vscode/vscode/vs/base/common/hash';
|
|
3
3
|
import { toFormattedString } from 'vscode/vscode/vs/base/common/jsonFormatter';
|
|
4
|
-
import { Disposable } from '
|
|
5
|
-
import { DiffEditorWidget } from '
|
|
4
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { DiffEditorWidget } from 'vscode/vscode/vs/editor/browser/widget/diffEditor/diffEditorWidget';
|
|
6
6
|
import { fixedEditorPadding } from './diffCellEditorOptions.js';
|
|
7
7
|
import { NotebookDiffViewEventType } from './eventDispatcher.js';
|
|
8
8
|
import { DiffSide, DIFF_CELL_MARGIN } from './notebookDiffEditorBrowser.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Emitter } from '
|
|
3
|
-
import { Disposable } from '
|
|
4
|
-
import { generateUuid } from '
|
|
5
|
-
import { PrefixSumComputer } from '
|
|
2
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
4
|
+
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
5
|
+
import { PrefixSumComputer } from 'vscode/vscode/vs/editor/common/model/prefixSumComputer';
|
|
6
6
|
import { CellOutputViewModel } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel';
|
|
7
7
|
import { INotebookService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookService';
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Emitter } from '
|
|
2
|
-
import { Disposable } from '
|
|
1
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
2
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
3
|
|
|
4
4
|
var NotebookDiffViewEventType;
|
|
5
5
|
( (function(NotebookDiffViewEventType) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { IBulkEditService, ResourceTextEdit } from '
|
|
2
|
-
import { localizeWithPath } from '
|
|
3
|
-
import { registerAction2, Action2, MenuId } from '
|
|
4
|
-
import { IConfigurationService } from '
|
|
5
|
-
import { ContextKeyExpr } from '
|
|
1
|
+
import { IBulkEditService, ResourceTextEdit } from 'vscode/vscode/vs/editor/browser/services/bulkEditService';
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
4
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
5
|
+
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
6
6
|
import { ActiveEditorContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
7
7
|
import { SideBySideDiffElementViewModel } from './diffElementViewModel.js';
|
|
8
8
|
import { NOTEBOOK_DIFF_CELL_PROPERTY, NOTEBOOK_DIFF_CELL_PROPERTY_EXPANDED, NOTEBOOK_DIFF_CELL_INPUT } from './notebookDiffEditorBrowser.js';
|
|
9
9
|
import { NotebookTextDiffEditor } from './notebookDiffEditor.js';
|
|
10
10
|
import { openAsTextIcon, revertIcon, renderOutputIcon, previousChangeIcon, nextChangeIcon } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookIcons';
|
|
11
11
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
12
|
-
import { Registry } from '
|
|
13
|
-
import { Extensions } from '
|
|
12
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
13
|
+
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
14
14
|
import { DEFAULT_EDITOR_ASSOCIATION } from 'vscode/vscode/vs/workbench/common/editor';
|
|
15
15
|
import { NOTEBOOK_DIFF_EDITOR_ID } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
16
16
|
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { findLastIdx } from '
|
|
5
|
-
import { IStorageService } from '
|
|
6
|
-
import { ITelemetryService } from '
|
|
7
|
-
import { registerThemingParticipant, IThemeService } from '
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { append, $ as $$1, addStandardDisposableGenericMouseDownListener, addStandardDisposableGenericMouseUpListener, scheduleAtNextAnimationFrame, getWindow } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
|
+
import { findLastIdx } from 'vscode/vscode/vs/base/common/arraysFind';
|
|
5
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
6
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
7
|
+
import { registerThemingParticipant, IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
8
8
|
import { getDefaultNotebookCreationOptions } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget';
|
|
9
|
-
import { CancellationTokenSource } from '
|
|
9
|
+
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
10
10
|
import { SideBySideDiffElementViewModel, SingleSideDiffElementViewModel } from './diffElementViewModel.js';
|
|
11
|
-
import { IInstantiationService } from '
|
|
11
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
12
|
import { CellDiffSingleSideRenderer, CellDiffSideBySideRenderer, NotebookTextDiffList, NotebookCellTextDiffListDelegate } from './notebookDiffList.js';
|
|
13
|
-
import { IContextKeyService } from '
|
|
14
|
-
import { editorBackground, foreground, focusBorder, diffDiagonalFill } from '
|
|
13
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
14
|
+
import { editorBackground, foreground, focusBorder, diffDiagonalFill } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
15
15
|
import { INotebookEditorWorkerService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/services/notebookWorkerService';
|
|
16
|
-
import { IConfigurationService } from '
|
|
17
|
-
import { BareFontInfo } from '
|
|
18
|
-
import { PixelRatio } from '
|
|
16
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
17
|
+
import { BareFontInfo } from 'vscode/vscode/vs/editor/common/config/fontInfo';
|
|
18
|
+
import { PixelRatio } from 'vscode/vscode/vs/base/browser/browser';
|
|
19
19
|
import { DiffSide, DIFF_CELL_MARGIN } from './notebookDiffEditorBrowser.js';
|
|
20
|
-
import { Emitter, Event } from '
|
|
21
|
-
import { DisposableStore, toDisposable } from '
|
|
20
|
+
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
21
|
+
import { DisposableStore, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
22
22
|
import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
23
23
|
import { NOTEBOOK_DIFF_EDITOR_ID, NotebookSetting, CellUri } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookCommon';
|
|
24
|
-
import { SequencerByKey } from '
|
|
25
|
-
import { generateUuid } from '
|
|
24
|
+
import { SequencerByKey } from 'vscode/vscode/vs/base/common/async';
|
|
25
|
+
import { generateUuid } from 'vscode/vscode/vs/base/common/uuid';
|
|
26
26
|
import { DiffNestedCellViewModel } from './diffNestedCellViewModel.js';
|
|
27
27
|
import { BackLayerWebView } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView';
|
|
28
28
|
import { NotebookDiffEditorEventDispatcher, NotebookDiffLayoutChangedEvent } from './eventDispatcher.js';
|
|
29
|
-
import { FontMeasurements } from '
|
|
29
|
+
import { FontMeasurements } from 'vscode/vscode/vs/editor/browser/config/fontMeasurements';
|
|
30
30
|
import { NotebookOptions } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/notebookOptions';
|
|
31
31
|
import { INotebookExecutionStateService } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
32
32
|
import { cellRangesToIndexes, cellIndexesToRanges } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookRange';
|
|
@@ -34,7 +34,7 @@ import { NotebookDiffOverviewRuler } from './notebookDiffOverviewRuler.js';
|
|
|
34
34
|
import { registerZIndex, ZIndex } from 'vscode/vscode/vs/platform/layout/browser/zIndexRegistry';
|
|
35
35
|
|
|
36
36
|
var NotebookTextDiffEditor_1;
|
|
37
|
-
const $ =
|
|
37
|
+
const $ = $$1;
|
|
38
38
|
class NotebookDiffEditorSelection {
|
|
39
39
|
constructor(selections) {
|
|
40
40
|
this.selections = selections;
|
|
@@ -163,15 +163,15 @@ let NotebookTextDiffEditor = class NotebookTextDiffEditor extends EditorPane {
|
|
|
163
163
|
didResizeOutput(cellId) {
|
|
164
164
|
}
|
|
165
165
|
createEditor(parent) {
|
|
166
|
-
this._rootElement =
|
|
166
|
+
this._rootElement = append(parent, $$1('.notebook-text-diff-editor'));
|
|
167
167
|
this._overflowContainer = document.createElement('div');
|
|
168
168
|
this._overflowContainer.classList.add('notebook-overflow-widget-container', 'monaco-editor');
|
|
169
|
-
|
|
169
|
+
append(parent, this._overflowContainer);
|
|
170
170
|
const renderers = [
|
|
171
171
|
this.instantiationService.createInstance(CellDiffSingleSideRenderer, this),
|
|
172
172
|
this.instantiationService.createInstance(CellDiffSideBySideRenderer, this),
|
|
173
173
|
];
|
|
174
|
-
this._listViewContainer =
|
|
174
|
+
this._listViewContainer = append(this._rootElement, $$1('.notebook-diff-list-view'));
|
|
175
175
|
this._list = this.instantiationService.createInstance(NotebookTextDiffList, 'NotebookTextDiff', this._listViewContainer, this.instantiationService.createInstance(NotebookCellTextDiffListDelegate), renderers, this.contextKeyService, {
|
|
176
176
|
setRowLineHeight: false,
|
|
177
177
|
setRowHeight: false,
|
|
@@ -203,7 +203,7 @@ let NotebookTextDiffEditor = class NotebookTextDiffEditor extends EditorPane {
|
|
|
203
203
|
accessibilityProvider: {
|
|
204
204
|
getAriaLabel() { return null; },
|
|
205
205
|
getWidgetAriaLabel() {
|
|
206
|
-
return (
|
|
206
|
+
return ( localizeWithPath(
|
|
207
207
|
'vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor',
|
|
208
208
|
'notebookTreeAriaLabel',
|
|
209
209
|
"Notebook Text Diff"
|
|
@@ -225,14 +225,14 @@ let NotebookTextDiffEditor = class NotebookTextDiffEditor extends EditorPane {
|
|
|
225
225
|
this._overviewRulerContainer.classList.add('notebook-overview-ruler-container');
|
|
226
226
|
this._rootElement.appendChild(this._overviewRulerContainer);
|
|
227
227
|
this._registerOverviewRuler();
|
|
228
|
-
this._webviewTransparentCover =
|
|
228
|
+
this._webviewTransparentCover = append(this._list.rowsContainer, $('.webview-cover'));
|
|
229
229
|
this._webviewTransparentCover.style.display = 'none';
|
|
230
|
-
this._register(
|
|
230
|
+
this._register(addStandardDisposableGenericMouseDownListener(this._overflowContainer, (e) => {
|
|
231
231
|
if (e.target.classList.contains('slider') && this._webviewTransparentCover) {
|
|
232
232
|
this._webviewTransparentCover.style.display = 'block';
|
|
233
233
|
}
|
|
234
234
|
}));
|
|
235
|
-
this._register(
|
|
235
|
+
this._register(addStandardDisposableGenericMouseUpListener(this._overflowContainer, () => {
|
|
236
236
|
if (this._webviewTransparentCover) {
|
|
237
237
|
this._webviewTransparentCover.style.display = 'none';
|
|
238
238
|
}
|
|
@@ -326,7 +326,7 @@ let NotebookTextDiffEditor = class NotebookTextDiffEditor extends EditorPane {
|
|
|
326
326
|
_attachModel() {
|
|
327
327
|
this._eventDispatcher = ( new NotebookDiffEditorEventDispatcher());
|
|
328
328
|
const updateInsets = () => {
|
|
329
|
-
|
|
329
|
+
scheduleAtNextAnimationFrame(getWindow(this._listViewContainer), () => {
|
|
330
330
|
if (this._isDisposed) {
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
@@ -578,7 +578,7 @@ let NotebookTextDiffEditor = class NotebookTextDiffEditor extends EditorPane {
|
|
|
578
578
|
diffSide = diffElement.type === 'insert' ? DiffSide.Modified : DiffSide.Original;
|
|
579
579
|
}
|
|
580
580
|
const webview = diffSide === DiffSide.Modified ? this._modifiedWebview : this._originalWebview;
|
|
581
|
-
|
|
581
|
+
scheduleAtNextAnimationFrame(getWindow(this._listViewContainer), () => {
|
|
582
582
|
webview?.ackHeight([{ cellId: cellInfo.cellId, outputId, height }]);
|
|
583
583
|
}, 10);
|
|
584
584
|
}
|
|
@@ -590,7 +590,7 @@ let NotebookTextDiffEditor = class NotebookTextDiffEditor extends EditorPane {
|
|
|
590
590
|
this.pendingLayouts.get(cell).dispose();
|
|
591
591
|
}
|
|
592
592
|
let r;
|
|
593
|
-
const layoutDisposable =
|
|
593
|
+
const layoutDisposable = scheduleAtNextAnimationFrame(getWindow(this._listViewContainer), () => {
|
|
594
594
|
this.pendingLayouts.delete(cell);
|
|
595
595
|
relayout(cell, height);
|
|
596
596
|
r();
|