@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,27 +1,27 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './notebookDiff.css.js';
|
|
3
|
-
import
|
|
4
|
-
import { MouseController, isMonacoEditor } from '
|
|
5
|
-
import { DisposableStore } from '
|
|
6
|
-
import { IConfigurationService } from '
|
|
7
|
-
import { IContextKeyService } from '
|
|
8
|
-
import { IInstantiationService } from '
|
|
9
|
-
import { IKeybindingService } from '
|
|
10
|
-
import { WorkbenchList, IListService } from '
|
|
11
|
-
import { IThemeService } from '
|
|
3
|
+
import { $, append, createStyleSheet } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
|
+
import { MouseController, isMonacoEditor } from 'vscode/vscode/vs/base/browser/ui/list/listWidget';
|
|
5
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
7
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
8
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
|
+
import { IKeybindingService } from 'vscode/vscode/vs/platform/keybinding/common/keybinding';
|
|
10
|
+
import { WorkbenchList, IListService } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
11
|
+
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
12
12
|
import { DIFF_CELL_MARGIN } from './notebookDiffEditorBrowser.js';
|
|
13
13
|
import { InsertElement, DeletedElement, getOptimizedNestedCodeEditorWidgetOptions, ModifiedElement } from './diffComponents.js';
|
|
14
|
-
import { CodeEditorWidget } from '
|
|
15
|
-
import { DiffEditorWidget } from '
|
|
16
|
-
import { MenuItemAction, IMenuService } from '
|
|
17
|
-
import { IContextMenuService } from '
|
|
18
|
-
import { INotificationService } from '
|
|
14
|
+
import { CodeEditorWidget } from 'vscode/vscode/vs/editor/browser/widget/codeEditorWidget';
|
|
15
|
+
import { DiffEditorWidget } from 'vscode/vscode/vs/editor/browser/widget/diffEditor/diffEditorWidget';
|
|
16
|
+
import { MenuItemAction, IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
17
|
+
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
|
|
18
|
+
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
19
19
|
import { CodiconActionViewItem } from 'vscode/vscode/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView';
|
|
20
|
-
import { BareFontInfo } from '
|
|
21
|
-
import { PixelRatio } from '
|
|
22
|
-
import { WorkbenchToolBar } from '
|
|
20
|
+
import { BareFontInfo } from 'vscode/vscode/vs/editor/common/config/fontInfo';
|
|
21
|
+
import { PixelRatio } from 'vscode/vscode/vs/base/browser/browser';
|
|
22
|
+
import { WorkbenchToolBar } from 'vscode/vscode/vs/platform/actions/browser/toolbar';
|
|
23
23
|
import { fixedEditorOptions, fixedDiffEditorOptions } from './diffCellEditorOptions.js';
|
|
24
|
-
import { IAccessibilityService } from '
|
|
24
|
+
import { IAccessibilityService } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
|
|
25
25
|
|
|
26
26
|
var CellDiffSingleSideRenderer_1, CellDiffSideBySideRenderer_1;
|
|
27
27
|
let NotebookCellTextDiffListDelegate = class NotebookCellTextDiffListDelegate {
|
|
@@ -61,22 +61,22 @@ let CellDiffSingleSideRenderer = class CellDiffSingleSideRenderer {
|
|
|
61
61
|
return CellDiffSingleSideRenderer_1.TEMPLATE_ID;
|
|
62
62
|
}
|
|
63
63
|
renderTemplate(container) {
|
|
64
|
-
const body =
|
|
65
|
-
|
|
66
|
-
const diffEditorContainer =
|
|
67
|
-
|
|
68
|
-
const diagonalFill =
|
|
69
|
-
const sourceContainer =
|
|
64
|
+
const body = $('.cell-body');
|
|
65
|
+
append(container, body);
|
|
66
|
+
const diffEditorContainer = $('.cell-diff-editor-container');
|
|
67
|
+
append(body, diffEditorContainer);
|
|
68
|
+
const diagonalFill = append(body, $('.diagonal-fill'));
|
|
69
|
+
const sourceContainer = append(diffEditorContainer, $('.source-container'));
|
|
70
70
|
const editor = this._buildSourceEditor(sourceContainer);
|
|
71
|
-
const metadataHeaderContainer =
|
|
72
|
-
const metadataInfoContainer =
|
|
73
|
-
const outputHeaderContainer =
|
|
74
|
-
const outputInfoContainer =
|
|
75
|
-
const borderContainer =
|
|
76
|
-
const leftBorder =
|
|
77
|
-
const rightBorder =
|
|
78
|
-
const topBorder =
|
|
79
|
-
const bottomBorder =
|
|
71
|
+
const metadataHeaderContainer = append(diffEditorContainer, $('.metadata-header-container'));
|
|
72
|
+
const metadataInfoContainer = append(diffEditorContainer, $('.metadata-info-container'));
|
|
73
|
+
const outputHeaderContainer = append(diffEditorContainer, $('.output-header-container'));
|
|
74
|
+
const outputInfoContainer = append(diffEditorContainer, $('.output-info-container'));
|
|
75
|
+
const borderContainer = append(body, $('.border-container'));
|
|
76
|
+
const leftBorder = append(borderContainer, $('.left-border'));
|
|
77
|
+
const rightBorder = append(borderContainer, $('.right-border'));
|
|
78
|
+
const topBorder = append(borderContainer, $('.top-border'));
|
|
79
|
+
const bottomBorder = append(borderContainer, $('.bottom-border'));
|
|
80
80
|
return {
|
|
81
81
|
body,
|
|
82
82
|
container,
|
|
@@ -95,7 +95,7 @@ let CellDiffSingleSideRenderer = class CellDiffSingleSideRenderer {
|
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
_buildSourceEditor(sourceContainer) {
|
|
98
|
-
const editorContainer =
|
|
98
|
+
const editorContainer = append(sourceContainer, $('.editor-container'));
|
|
99
99
|
const editor = this.instantiationService.createInstance(CodeEditorWidget, editorContainer, {
|
|
100
100
|
...fixedEditorOptions,
|
|
101
101
|
dimension: {
|
|
@@ -148,14 +148,14 @@ let CellDiffSideBySideRenderer = class CellDiffSideBySideRenderer {
|
|
|
148
148
|
return CellDiffSideBySideRenderer_1.TEMPLATE_ID;
|
|
149
149
|
}
|
|
150
150
|
renderTemplate(container) {
|
|
151
|
-
const body =
|
|
152
|
-
|
|
153
|
-
const diffEditorContainer =
|
|
154
|
-
|
|
155
|
-
const sourceContainer =
|
|
151
|
+
const body = $('.cell-body');
|
|
152
|
+
append(container, body);
|
|
153
|
+
const diffEditorContainer = $('.cell-diff-editor-container');
|
|
154
|
+
append(body, diffEditorContainer);
|
|
155
|
+
const sourceContainer = append(diffEditorContainer, $('.source-container'));
|
|
156
156
|
const { editor, editorContainer } = this._buildSourceEditor(sourceContainer);
|
|
157
|
-
const inputToolbarContainer =
|
|
158
|
-
const cellToolbarContainer =
|
|
157
|
+
const inputToolbarContainer = append(sourceContainer, $('.editor-input-toolbar-container'));
|
|
158
|
+
const cellToolbarContainer = append(inputToolbarContainer, $('div.property-toolbar'));
|
|
159
159
|
const toolbar = this.instantiationService.createInstance(WorkbenchToolBar, cellToolbarContainer, {
|
|
160
160
|
actionViewItemProvider: action => {
|
|
161
161
|
if (action instanceof MenuItemAction) {
|
|
@@ -174,15 +174,15 @@ let CellDiffSideBySideRenderer = class CellDiffSideBySideRenderer {
|
|
|
174
174
|
return undefined;
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
|
-
const metadataHeaderContainer =
|
|
178
|
-
const metadataInfoContainer =
|
|
179
|
-
const outputHeaderContainer =
|
|
180
|
-
const outputInfoContainer =
|
|
181
|
-
const borderContainer =
|
|
182
|
-
const leftBorder =
|
|
183
|
-
const rightBorder =
|
|
184
|
-
const topBorder =
|
|
185
|
-
const bottomBorder =
|
|
177
|
+
const metadataHeaderContainer = append(diffEditorContainer, $('.metadata-header-container'));
|
|
178
|
+
const metadataInfoContainer = append(diffEditorContainer, $('.metadata-info-container'));
|
|
179
|
+
const outputHeaderContainer = append(diffEditorContainer, $('.output-header-container'));
|
|
180
|
+
const outputInfoContainer = append(diffEditorContainer, $('.output-info-container'));
|
|
181
|
+
const borderContainer = append(body, $('.border-container'));
|
|
182
|
+
const leftBorder = append(borderContainer, $('.left-border'));
|
|
183
|
+
const rightBorder = append(borderContainer, $('.right-border'));
|
|
184
|
+
const topBorder = append(borderContainer, $('.top-border'));
|
|
185
|
+
const bottomBorder = append(borderContainer, $('.bottom-border'));
|
|
186
186
|
return {
|
|
187
187
|
body,
|
|
188
188
|
container,
|
|
@@ -203,7 +203,7 @@ let CellDiffSideBySideRenderer = class CellDiffSideBySideRenderer {
|
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
_buildSourceEditor(sourceContainer) {
|
|
206
|
-
const editorContainer =
|
|
206
|
+
const editorContainer = append(sourceContainer, $('.editor-container'));
|
|
207
207
|
const editor = this.instantiationService.createInstance(DiffEditorWidget, editorContainer, {
|
|
208
208
|
...fixedDiffEditorOptions,
|
|
209
209
|
padding: {
|
|
@@ -306,7 +306,7 @@ let NotebookTextDiffList = class NotebookTextDiffList extends WorkbenchList {
|
|
|
306
306
|
style(styles) {
|
|
307
307
|
const selectorSuffix = this.view.domId;
|
|
308
308
|
if (!this.styleElement) {
|
|
309
|
-
this.styleElement =
|
|
309
|
+
this.styleElement = createStyleSheet(this.view.domNode);
|
|
310
310
|
}
|
|
311
311
|
const suffix = selectorSuffix && `.${selectorSuffix}`;
|
|
312
312
|
const content = [];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { createFastDomNode } from '
|
|
5
|
-
import { Color } from '
|
|
6
|
-
import { DisposableStore } from '
|
|
7
|
-
import { diffOverviewRulerInserted, diffInserted, defaultInsertColor, diffOverviewRulerRemoved, diffRemoved, defaultRemoveColor } from '
|
|
8
|
-
import { Themable, IThemeService } from '
|
|
2
|
+
import { PixelRatio } from 'vscode/vscode/vs/base/browser/browser';
|
|
3
|
+
import { addStandardDisposableListener, EventType, runAtThisOrScheduleAtNextAnimationFrame, getWindow } from 'vscode/vscode/vs/base/browser/dom';
|
|
4
|
+
import { createFastDomNode } from 'vscode/vscode/vs/base/browser/fastDomNode';
|
|
5
|
+
import { Color } from 'vscode/vscode/vs/base/common/color';
|
|
6
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import { diffOverviewRulerInserted, diffInserted, defaultInsertColor, diffOverviewRulerRemoved, diffRemoved, defaultRemoveColor } from 'vscode/vscode/vs/platform/theme/common/colorRegistry';
|
|
8
|
+
import { Themable, IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
9
9
|
|
|
10
10
|
const MINIMUM_SLIDER_SIZE = 20;
|
|
11
11
|
let NotebookDiffOverviewRuler = class NotebookDiffOverviewRuler extends Themable {
|
|
@@ -31,7 +31,7 @@ let NotebookDiffOverviewRuler = class NotebookDiffOverviewRuler extends Themable
|
|
|
31
31
|
this._overviewViewportDomElement.setPosition('absolute');
|
|
32
32
|
this._overviewViewportDomElement.setWidth(width);
|
|
33
33
|
container.appendChild(this._overviewViewportDomElement.domNode);
|
|
34
|
-
this._register(
|
|
34
|
+
this._register(PixelRatio.onDidChange(() => {
|
|
35
35
|
this._scheduleRender();
|
|
36
36
|
}));
|
|
37
37
|
this._register(this.themeService.onDidColorThemeChange(e => {
|
|
@@ -44,7 +44,7 @@ let NotebookDiffOverviewRuler = class NotebookDiffOverviewRuler extends Themable
|
|
|
44
44
|
this._register(this.notebookEditor.onDidScroll(() => {
|
|
45
45
|
this._renderOverviewViewport();
|
|
46
46
|
}));
|
|
47
|
-
this._register(
|
|
47
|
+
this._register(addStandardDisposableListener(container, EventType.POINTER_DOWN, (e) => {
|
|
48
48
|
this.notebookEditor.delegateVerticalScrollbarPointerDown(e);
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
@@ -80,7 +80,7 @@ let NotebookDiffOverviewRuler = class NotebookDiffOverviewRuler extends Themable
|
|
|
80
80
|
}
|
|
81
81
|
_scheduleRender() {
|
|
82
82
|
if (this._renderAnimationFrame === null) {
|
|
83
|
-
this._renderAnimationFrame =
|
|
83
|
+
this._renderAnimationFrame = runAtThisOrScheduleAtNextAnimationFrame(getWindow(this._domNode.domNode), this._onRenderScheduled.bind(this), 16);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
_onRenderScheduled() {
|
|
@@ -91,7 +91,7 @@ let NotebookDiffOverviewRuler = class NotebookDiffOverviewRuler extends Themable
|
|
|
91
91
|
const layoutInfo = this.notebookEditor.getLayoutInfo();
|
|
92
92
|
const height = layoutInfo.height;
|
|
93
93
|
const contentHeight = ( this._diffElementViewModels.map(view => view.layoutInfo.totalHeight)).reduce((a, b) => a + b, 0);
|
|
94
|
-
const ratio =
|
|
94
|
+
const ratio = PixelRatio.value;
|
|
95
95
|
this._domNode.setWidth(this.width);
|
|
96
96
|
this._domNode.setHeight(height);
|
|
97
97
|
this._domNode.domNode.width = this.width * ratio;
|