@codingame/monaco-vscode-api 33.0.3 → 33.0.4
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/package.json +9 -9
- package/services.js +3 -3
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -746
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +0 -300
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -55
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.d.ts +0 -273
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1963
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.d.ts +0 -50
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -314
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.d.ts +0 -258
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -886
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.d.ts +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -118
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.d.ts +0 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -71
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.d.ts +0 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -40
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +0 -313
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.d.ts +0 -51
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookDeletedCellDecorator.js +0 -265
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.d.ts +0 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiff.js +0 -185
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.d.ts +0 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInlineDiffWidget.js +0 -104
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookInsertedCellDecorator.js +0 -43
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.d.ts +0 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalCellModelFactory.js +0 -41
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookOriginalModelRefFactory.js +0 -69
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css +0 -469
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.d.ts +0 -149
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -933
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts +0 -180
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -32
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.d.ts +0 -102
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -643
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.d.ts +0 -30
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -197
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.d.ts +0 -75
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -539
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -39
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -90
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.d.ts +0 -26
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiff.js +0 -92
package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.d.ts
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { CellLayoutState, ICellOutputViewModel, ICommonCellInfo, IGenericCellViewModel, IInsetRenderOutput, INotebookEditor } from "../notebookBrowser.js";
|
|
2
|
-
import { DiffElementCellViewModelBase, IDiffElementViewModelBase } from "./diffElementViewModel.js";
|
|
3
|
-
import { Event } from "../../../../../base/common/event.js";
|
|
4
|
-
import { BareFontInfo } from "../../../../../editor/common/config/fontInfo.js";
|
|
5
|
-
import { DisposableStore, IDisposable } from "../../../../../base/common/lifecycle.js";
|
|
6
|
-
import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
|
|
7
|
-
import { CodeEditorWidget } from "../../../../../editor/browser/widget/codeEditor/codeEditorWidget.js";
|
|
8
|
-
import { IMouseWheelEvent } from "../../../../../base/browser/mouseEvent.js";
|
|
9
|
-
import { RawContextKey } from "../../../../../platform/contextkey/common/contextkey.js";
|
|
10
|
-
import { NotebookOptions } from "../notebookOptions.js";
|
|
11
|
-
import { NotebookLayoutInfo } from "../notebookViewEvents.js";
|
|
12
|
-
import { WorkbenchToolBar } from "../../../../../platform/actions/browser/toolbar.js";
|
|
13
|
-
import { DiffEditorWidget } from "../../../../../editor/browser/widget/diffEditor/diffEditorWidget.js";
|
|
14
|
-
import { CancellationToken } from "../../../../../base/common/cancellation.js";
|
|
15
|
-
import { IObservable } from "../../../../../base/common/observable.js";
|
|
16
|
-
export declare enum DiffSide {
|
|
17
|
-
Original = 0,
|
|
18
|
-
Modified = 1
|
|
19
|
-
}
|
|
20
|
-
export interface IDiffCellInfo extends ICommonCellInfo {
|
|
21
|
-
diffElement: DiffElementCellViewModelBase;
|
|
22
|
-
}
|
|
23
|
-
export interface INotebookTextDiffEditor {
|
|
24
|
-
notebookOptions: NotebookOptions;
|
|
25
|
-
readonly textModel?: NotebookTextModel;
|
|
26
|
-
inlineNotebookEditor: INotebookEditor | undefined;
|
|
27
|
-
readonly currentChangedIndex: IObservable<number>;
|
|
28
|
-
readonly onMouseUp: Event<{
|
|
29
|
-
readonly event: MouseEvent;
|
|
30
|
-
readonly target: IDiffElementViewModelBase;
|
|
31
|
-
}>;
|
|
32
|
-
readonly onDidScroll: Event<void>;
|
|
33
|
-
readonly onDidDynamicOutputRendered: Event<{
|
|
34
|
-
cell: IGenericCellViewModel;
|
|
35
|
-
output: ICellOutputViewModel;
|
|
36
|
-
}>;
|
|
37
|
-
getOverflowContainerDomNode(): HTMLElement;
|
|
38
|
-
getLayoutInfo(): NotebookLayoutInfo;
|
|
39
|
-
getScrollTop(): number;
|
|
40
|
-
getScrollHeight(): number;
|
|
41
|
-
layoutNotebookCell(cell: IDiffElementViewModelBase, height: number): void;
|
|
42
|
-
createOutput(cellDiffViewModel: DiffElementCellViewModelBase, cellViewModel: IDiffNestedCellViewModel, output: IInsetRenderOutput, getOffset: () => number, diffSide: DiffSide): void;
|
|
43
|
-
showInset(cellDiffViewModel: DiffElementCellViewModelBase, cellViewModel: IDiffNestedCellViewModel, displayOutput: ICellOutputViewModel, diffSide: DiffSide): void;
|
|
44
|
-
removeInset(cellDiffViewModel: DiffElementCellViewModelBase, cellViewModel: IDiffNestedCellViewModel, output: ICellOutputViewModel, diffSide: DiffSide): void;
|
|
45
|
-
hideInset(cellDiffViewModel: DiffElementCellViewModelBase, cellViewModel: IDiffNestedCellViewModel, output: ICellOutputViewModel): void;
|
|
46
|
-
/**
|
|
47
|
-
* Trigger the editor to scroll from scroll event programmatically
|
|
48
|
-
*/
|
|
49
|
-
triggerScroll(event: IMouseWheelEvent): void;
|
|
50
|
-
delegateVerticalScrollbarPointerDown(browserEvent: PointerEvent): void;
|
|
51
|
-
getCellByInfo(cellInfo: ICommonCellInfo): IGenericCellViewModel;
|
|
52
|
-
focusNotebookCell(cell: IGenericCellViewModel, focus: "editor" | "container" | "output"): Promise<void>;
|
|
53
|
-
focusNextNotebookCell(cell: IGenericCellViewModel, focus: "editor" | "container" | "output"): Promise<void>;
|
|
54
|
-
updateOutputHeight(cellInfo: ICommonCellInfo, output: ICellOutputViewModel, height: number, isInit: boolean): void;
|
|
55
|
-
deltaCellOutputContainerClassNames(diffSide: DiffSide, cellId: string, added: string[], removed: string[]): void;
|
|
56
|
-
firstChange(): void;
|
|
57
|
-
lastChange(): void;
|
|
58
|
-
previousChange(): void;
|
|
59
|
-
nextChange(): void;
|
|
60
|
-
toggleInlineView(): void;
|
|
61
|
-
}
|
|
62
|
-
export interface IDiffNestedCellViewModel {
|
|
63
|
-
}
|
|
64
|
-
export interface CellDiffCommonRenderTemplate {
|
|
65
|
-
readonly leftBorder: HTMLElement;
|
|
66
|
-
readonly rightBorder: HTMLElement;
|
|
67
|
-
readonly topBorder: HTMLElement;
|
|
68
|
-
readonly bottomBorder: HTMLElement;
|
|
69
|
-
}
|
|
70
|
-
export interface CellDiffPlaceholderRenderTemplate {
|
|
71
|
-
readonly container: HTMLElement;
|
|
72
|
-
readonly placeholder: HTMLElement;
|
|
73
|
-
readonly body: HTMLElement;
|
|
74
|
-
readonly marginOverlay: IDiffCellMarginOverlay;
|
|
75
|
-
readonly elementDisposables: DisposableStore;
|
|
76
|
-
}
|
|
77
|
-
export interface CellDiffSingleSideRenderTemplate extends CellDiffCommonRenderTemplate {
|
|
78
|
-
readonly container: HTMLElement;
|
|
79
|
-
readonly body: HTMLElement;
|
|
80
|
-
readonly diffEditorContainer: HTMLElement;
|
|
81
|
-
readonly diagonalFill: HTMLElement;
|
|
82
|
-
readonly elementDisposables: DisposableStore;
|
|
83
|
-
readonly cellHeaderContainer: HTMLElement;
|
|
84
|
-
readonly editorContainer: HTMLElement;
|
|
85
|
-
readonly sourceEditor: CodeEditorWidget;
|
|
86
|
-
readonly metadataHeaderContainer: HTMLElement;
|
|
87
|
-
readonly metadataInfoContainer: HTMLElement;
|
|
88
|
-
readonly outputHeaderContainer: HTMLElement;
|
|
89
|
-
readonly outputInfoContainer: HTMLElement;
|
|
90
|
-
}
|
|
91
|
-
export interface NotebookDocumentDiffElementRenderTemplate extends CellDiffCommonRenderTemplate {
|
|
92
|
-
readonly container: HTMLElement;
|
|
93
|
-
readonly body: HTMLElement;
|
|
94
|
-
readonly diffEditorContainer: HTMLElement;
|
|
95
|
-
readonly elementDisposables: DisposableStore;
|
|
96
|
-
readonly cellHeaderContainer: HTMLElement;
|
|
97
|
-
readonly sourceEditor: DiffEditorWidget;
|
|
98
|
-
readonly editorContainer: HTMLElement;
|
|
99
|
-
readonly inputToolbarContainer: HTMLElement;
|
|
100
|
-
readonly toolbar: WorkbenchToolBar;
|
|
101
|
-
readonly marginOverlay: IDiffCellMarginOverlay;
|
|
102
|
-
}
|
|
103
|
-
export interface IDiffCellMarginOverlay extends IDisposable {
|
|
104
|
-
readonly onAction: Event<void>;
|
|
105
|
-
show(): void;
|
|
106
|
-
hide(): void;
|
|
107
|
-
}
|
|
108
|
-
export interface CellDiffSideBySideRenderTemplate extends CellDiffCommonRenderTemplate {
|
|
109
|
-
readonly container: HTMLElement;
|
|
110
|
-
readonly body: HTMLElement;
|
|
111
|
-
readonly diffEditorContainer: HTMLElement;
|
|
112
|
-
readonly elementDisposables: DisposableStore;
|
|
113
|
-
readonly cellHeaderContainer: HTMLElement;
|
|
114
|
-
readonly sourceEditor: DiffEditorWidget;
|
|
115
|
-
readonly editorContainer: HTMLElement;
|
|
116
|
-
readonly inputToolbarContainer: HTMLElement;
|
|
117
|
-
readonly toolbar: WorkbenchToolBar;
|
|
118
|
-
readonly metadataHeaderContainer: HTMLElement;
|
|
119
|
-
readonly metadataInfoContainer: HTMLElement;
|
|
120
|
-
readonly outputHeaderContainer: HTMLElement;
|
|
121
|
-
readonly outputInfoContainer: HTMLElement;
|
|
122
|
-
readonly marginOverlay: IDiffCellMarginOverlay;
|
|
123
|
-
}
|
|
124
|
-
export interface IDiffElementLayoutInfo {
|
|
125
|
-
totalHeight: number;
|
|
126
|
-
width: number;
|
|
127
|
-
editorHeight: number;
|
|
128
|
-
editorMargin: number;
|
|
129
|
-
metadataHeight: number;
|
|
130
|
-
cellStatusHeight: number;
|
|
131
|
-
metadataStatusHeight: number;
|
|
132
|
-
rawOutputHeight: number;
|
|
133
|
-
outputMetadataHeight: number;
|
|
134
|
-
outputTotalHeight: number;
|
|
135
|
-
outputStatusHeight: number;
|
|
136
|
-
bodyMargin: number;
|
|
137
|
-
layoutState: CellLayoutState;
|
|
138
|
-
}
|
|
139
|
-
type IDiffElementSelfLayoutChangeEvent = {
|
|
140
|
-
[K in keyof IDiffElementLayoutInfo]?: boolean;
|
|
141
|
-
};
|
|
142
|
-
export interface CellDiffViewModelLayoutChangeEvent extends IDiffElementSelfLayoutChangeEvent {
|
|
143
|
-
font?: BareFontInfo;
|
|
144
|
-
outerWidth?: boolean;
|
|
145
|
-
metadataEditor?: boolean;
|
|
146
|
-
outputEditor?: boolean;
|
|
147
|
-
outputView?: boolean;
|
|
148
|
-
}
|
|
149
|
-
export declare const DIFF_CELL_MARGIN = 16;
|
|
150
|
-
export declare const NOTEBOOK_DIFF_CELL_INPUT: RawContextKey<boolean>;
|
|
151
|
-
export declare const NOTEBOOK_DIFF_METADATA: RawContextKey<boolean>;
|
|
152
|
-
export declare const NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE_KEY = "notebook.diffEditor.cell.ignoreWhitespace";
|
|
153
|
-
export declare const NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE: RawContextKey<boolean>;
|
|
154
|
-
export declare const NOTEBOOK_DIFF_CELL_PROPERTY: RawContextKey<boolean>;
|
|
155
|
-
export declare const NOTEBOOK_DIFF_CELL_PROPERTY_EXPANDED: RawContextKey<boolean>;
|
|
156
|
-
export declare const NOTEBOOK_DIFF_CELLS_COLLAPSED: RawContextKey<boolean>;
|
|
157
|
-
export declare const NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS: RawContextKey<boolean>;
|
|
158
|
-
export declare const NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN: RawContextKey<boolean>;
|
|
159
|
-
export declare const NOTEBOOK_DIFF_ITEM_KIND: RawContextKey<boolean>;
|
|
160
|
-
export declare const NOTEBOOK_DIFF_ITEM_DIFF_STATE: RawContextKey<boolean>;
|
|
161
|
-
export interface INotebookDiffViewModelUpdateEvent {
|
|
162
|
-
readonly start: number;
|
|
163
|
-
readonly deleteCount: number;
|
|
164
|
-
readonly elements: readonly IDiffElementViewModelBase[];
|
|
165
|
-
readonly firstChangeIndex?: number;
|
|
166
|
-
}
|
|
167
|
-
export interface INotebookDiffViewModel extends IDisposable {
|
|
168
|
-
readonly items: readonly IDiffElementViewModelBase[];
|
|
169
|
-
/**
|
|
170
|
-
* Triggered when ever there's a change in the view model items.
|
|
171
|
-
*/
|
|
172
|
-
readonly onDidChangeItems: Event<INotebookDiffViewModelUpdateEvent>;
|
|
173
|
-
/**
|
|
174
|
-
* Computes the differences and generates the viewmodel.
|
|
175
|
-
* If view models are generated, then the onDidChangeItems is triggered.
|
|
176
|
-
* @param token
|
|
177
|
-
*/
|
|
178
|
-
computeDiff(token: CancellationToken): Promise<void>;
|
|
179
|
-
}
|
|
180
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { RawContextKey } from '../../../../../platform/contextkey/common/contextkey.js';
|
|
3
|
-
import { localize } from '../../../../../nls.js';
|
|
4
|
-
|
|
5
|
-
var DiffSide;
|
|
6
|
-
(function(DiffSide) {
|
|
7
|
-
DiffSide[DiffSide["Original"] = 0] = "Original";
|
|
8
|
-
DiffSide[DiffSide["Modified"] = 1] = "Modified";
|
|
9
|
-
})(DiffSide || (DiffSide = {}));
|
|
10
|
-
const DIFF_CELL_MARGIN = 16;
|
|
11
|
-
const NOTEBOOK_DIFF_CELL_INPUT = ( new RawContextKey("notebook.diffEditor.cell.inputChanged", false));
|
|
12
|
-
const NOTEBOOK_DIFF_METADATA = ( new RawContextKey("notebook.diffEditor.metadataChanged", false));
|
|
13
|
-
const NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE_KEY = "notebook.diffEditor.cell.ignoreWhitespace";
|
|
14
|
-
const NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE = ( new RawContextKey(NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE_KEY, false));
|
|
15
|
-
const NOTEBOOK_DIFF_CELL_PROPERTY = ( new RawContextKey("notebook.diffEditor.cell.property.changed", false));
|
|
16
|
-
const NOTEBOOK_DIFF_CELL_PROPERTY_EXPANDED = ( new RawContextKey("notebook.diffEditor.cell.property.expanded", false));
|
|
17
|
-
const NOTEBOOK_DIFF_CELLS_COLLAPSED = ( new RawContextKey("notebook.diffEditor.allCollapsed", undefined, ( localize(11820, "Whether all cells in notebook diff editor are collapsed"))));
|
|
18
|
-
const NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS = ( new RawContextKey("notebook.diffEditor.hasUnchangedCells", undefined, ( localize(11821, "Whether there are unchanged cells in the notebook diff editor"))));
|
|
19
|
-
const NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN = ( new RawContextKey("notebook.diffEditor.unchangedCellsAreHidden", undefined, ( localize(
|
|
20
|
-
11822,
|
|
21
|
-
"Whether the unchanged cells in the notebook diff editor are hidden"
|
|
22
|
-
))));
|
|
23
|
-
const NOTEBOOK_DIFF_ITEM_KIND = ( new RawContextKey("notebook.diffEditor.item.kind", undefined, ( localize(
|
|
24
|
-
11823,
|
|
25
|
-
"The kind of item in the notebook diff editor, Cell, Metadata or Output"
|
|
26
|
-
))));
|
|
27
|
-
const NOTEBOOK_DIFF_ITEM_DIFF_STATE = ( new RawContextKey("notebook.diffEditor.item.state", undefined, ( localize(
|
|
28
|
-
11824,
|
|
29
|
-
"The diff state of item in the notebook diff editor, delete, insert, modified or unchanged"
|
|
30
|
-
))));
|
|
31
|
-
|
|
32
|
-
export { DIFF_CELL_MARGIN, DiffSide, NOTEBOOK_DIFF_CELLS_COLLAPSED, NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE, NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE_KEY, NOTEBOOK_DIFF_CELL_INPUT, NOTEBOOK_DIFF_CELL_PROPERTY, NOTEBOOK_DIFF_CELL_PROPERTY_EXPANDED, NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS, NOTEBOOK_DIFF_ITEM_DIFF_STATE, NOTEBOOK_DIFF_ITEM_KIND, NOTEBOOK_DIFF_METADATA, NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN };
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { IListMouseEvent, IListRenderer, IListVirtualDelegate } from "../../../../../base/browser/ui/list/list.js";
|
|
2
|
-
import { IListOptions, IListStyles, IStyleController, MouseController } from "../../../../../base/browser/ui/list/listWidget.js";
|
|
3
|
-
import { IDisposable } from "../../../../../base/common/lifecycle.js";
|
|
4
|
-
import { IConfigurationService } from "../../../../../platform/configuration/common/configuration.service.js";
|
|
5
|
-
import { IContextKeyService } from "../../../../../platform/contextkey/common/contextkey.service.js";
|
|
6
|
-
import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js";
|
|
7
|
-
import { IKeybindingService } from "../../../../../platform/keybinding/common/keybinding.service.js";
|
|
8
|
-
import { IWorkbenchListOptions, WorkbenchList } from "../../../../../platform/list/browser/listService.js";
|
|
9
|
-
import { IListService } from "../../../../../platform/list/browser/listService.service.js";
|
|
10
|
-
import { IThemeService } from "../../../../../platform/theme/common/themeService.service.js";
|
|
11
|
-
import { DiffElementPlaceholderViewModel, IDiffElementViewModelBase, NotebookDocumentMetadataViewModel, SideBySideDiffElementViewModel, SingleSideDiffElementViewModel } from "./diffElementViewModel.js";
|
|
12
|
-
import { CellDiffPlaceholderRenderTemplate, CellDiffSideBySideRenderTemplate, CellDiffSingleSideRenderTemplate, INotebookTextDiffEditor, NotebookDocumentDiffElementRenderTemplate } from "./notebookDiffEditorBrowser.js";
|
|
13
|
-
import { IMenuService } from "../../../../../platform/actions/common/actions.service.js";
|
|
14
|
-
import { IContextMenuService } from "../../../../../platform/contextview/browser/contextView.service.js";
|
|
15
|
-
import { INotificationService } from "../../../../../platform/notification/common/notification.service.js";
|
|
16
|
-
import { IMouseWheelEvent } from "../../../../../base/browser/mouseEvent.js";
|
|
17
|
-
import { IAccessibilityService } from "../../../../../platform/accessibility/common/accessibility.service.js";
|
|
18
|
-
export declare class NotebookCellTextDiffListDelegate implements IListVirtualDelegate<IDiffElementViewModelBase> {
|
|
19
|
-
private readonly configurationService;
|
|
20
|
-
private readonly lineHeight;
|
|
21
|
-
constructor(targetWindow: Window, configurationService: IConfigurationService);
|
|
22
|
-
getHeight(element: IDiffElementViewModelBase): number;
|
|
23
|
-
hasDynamicHeight(element: IDiffElementViewModelBase): boolean;
|
|
24
|
-
getTemplateId(element: IDiffElementViewModelBase): string;
|
|
25
|
-
}
|
|
26
|
-
export declare class CellDiffPlaceholderRenderer implements IListRenderer<DiffElementPlaceholderViewModel, CellDiffPlaceholderRenderTemplate> {
|
|
27
|
-
readonly notebookEditor: INotebookTextDiffEditor;
|
|
28
|
-
protected readonly instantiationService: IInstantiationService;
|
|
29
|
-
static readonly TEMPLATE_ID = "cell_diff_placeholder";
|
|
30
|
-
constructor(notebookEditor: INotebookTextDiffEditor, instantiationService: IInstantiationService);
|
|
31
|
-
get templateId(): string;
|
|
32
|
-
renderTemplate(container: HTMLElement): CellDiffPlaceholderRenderTemplate;
|
|
33
|
-
renderElement(element: DiffElementPlaceholderViewModel, index: number, templateData: CellDiffPlaceholderRenderTemplate): void;
|
|
34
|
-
disposeTemplate(templateData: CellDiffPlaceholderRenderTemplate): void;
|
|
35
|
-
disposeElement(element: DiffElementPlaceholderViewModel, index: number, templateData: CellDiffPlaceholderRenderTemplate): void;
|
|
36
|
-
}
|
|
37
|
-
export declare class NotebookDocumentMetadataDiffRenderer implements IListRenderer<NotebookDocumentMetadataViewModel, NotebookDocumentDiffElementRenderTemplate> {
|
|
38
|
-
readonly notebookEditor: INotebookTextDiffEditor;
|
|
39
|
-
protected readonly instantiationService: IInstantiationService;
|
|
40
|
-
protected readonly contextMenuService: IContextMenuService;
|
|
41
|
-
protected readonly keybindingService: IKeybindingService;
|
|
42
|
-
protected readonly menuService: IMenuService;
|
|
43
|
-
protected readonly contextKeyService: IContextKeyService;
|
|
44
|
-
protected readonly notificationService: INotificationService;
|
|
45
|
-
protected readonly themeService: IThemeService;
|
|
46
|
-
protected readonly accessibilityService: IAccessibilityService;
|
|
47
|
-
static readonly TEMPLATE_ID = "notebook_metadata_diff_side_by_side";
|
|
48
|
-
constructor(notebookEditor: INotebookTextDiffEditor, instantiationService: IInstantiationService, contextMenuService: IContextMenuService, keybindingService: IKeybindingService, menuService: IMenuService, contextKeyService: IContextKeyService, notificationService: INotificationService, themeService: IThemeService, accessibilityService: IAccessibilityService);
|
|
49
|
-
get templateId(): string;
|
|
50
|
-
renderTemplate(container: HTMLElement): NotebookDocumentDiffElementRenderTemplate;
|
|
51
|
-
private _buildSourceEditor;
|
|
52
|
-
renderElement(element: NotebookDocumentMetadataViewModel, index: number, templateData: NotebookDocumentDiffElementRenderTemplate): void;
|
|
53
|
-
disposeTemplate(templateData: NotebookDocumentDiffElementRenderTemplate): void;
|
|
54
|
-
disposeElement(element: NotebookDocumentMetadataViewModel, index: number, templateData: NotebookDocumentDiffElementRenderTemplate): void;
|
|
55
|
-
}
|
|
56
|
-
export declare class CellDiffSingleSideRenderer implements IListRenderer<SingleSideDiffElementViewModel, CellDiffSingleSideRenderTemplate | CellDiffSideBySideRenderTemplate> {
|
|
57
|
-
readonly notebookEditor: INotebookTextDiffEditor;
|
|
58
|
-
protected readonly instantiationService: IInstantiationService;
|
|
59
|
-
static readonly TEMPLATE_ID = "cell_diff_single";
|
|
60
|
-
constructor(notebookEditor: INotebookTextDiffEditor, instantiationService: IInstantiationService);
|
|
61
|
-
get templateId(): string;
|
|
62
|
-
renderTemplate(container: HTMLElement): CellDiffSingleSideRenderTemplate;
|
|
63
|
-
private _buildSourceEditor;
|
|
64
|
-
renderElement(element: SingleSideDiffElementViewModel, index: number, templateData: CellDiffSingleSideRenderTemplate): void;
|
|
65
|
-
disposeTemplate(templateData: CellDiffSingleSideRenderTemplate): void;
|
|
66
|
-
disposeElement(element: SingleSideDiffElementViewModel, index: number, templateData: CellDiffSingleSideRenderTemplate): void;
|
|
67
|
-
}
|
|
68
|
-
export declare class CellDiffSideBySideRenderer implements IListRenderer<SideBySideDiffElementViewModel, CellDiffSideBySideRenderTemplate> {
|
|
69
|
-
readonly notebookEditor: INotebookTextDiffEditor;
|
|
70
|
-
protected readonly instantiationService: IInstantiationService;
|
|
71
|
-
protected readonly contextMenuService: IContextMenuService;
|
|
72
|
-
protected readonly keybindingService: IKeybindingService;
|
|
73
|
-
protected readonly menuService: IMenuService;
|
|
74
|
-
protected readonly contextKeyService: IContextKeyService;
|
|
75
|
-
protected readonly notificationService: INotificationService;
|
|
76
|
-
protected readonly themeService: IThemeService;
|
|
77
|
-
protected readonly accessibilityService: IAccessibilityService;
|
|
78
|
-
static readonly TEMPLATE_ID = "cell_diff_side_by_side";
|
|
79
|
-
constructor(notebookEditor: INotebookTextDiffEditor, instantiationService: IInstantiationService, contextMenuService: IContextMenuService, keybindingService: IKeybindingService, menuService: IMenuService, contextKeyService: IContextKeyService, notificationService: INotificationService, themeService: IThemeService, accessibilityService: IAccessibilityService);
|
|
80
|
-
get templateId(): string;
|
|
81
|
-
renderTemplate(container: HTMLElement): CellDiffSideBySideRenderTemplate;
|
|
82
|
-
private _buildSourceEditor;
|
|
83
|
-
renderElement(element: SideBySideDiffElementViewModel, index: number, templateData: CellDiffSideBySideRenderTemplate): void;
|
|
84
|
-
disposeTemplate(templateData: CellDiffSideBySideRenderTemplate): void;
|
|
85
|
-
disposeElement(element: SideBySideDiffElementViewModel, index: number, templateData: CellDiffSideBySideRenderTemplate): void;
|
|
86
|
-
}
|
|
87
|
-
export declare class NotebookMouseController<T> extends MouseController<T> {
|
|
88
|
-
protected onViewPointer(e: IListMouseEvent<T>): void;
|
|
89
|
-
}
|
|
90
|
-
export declare class NotebookTextDiffList extends WorkbenchList<IDiffElementViewModelBase> implements IDisposable, IStyleController {
|
|
91
|
-
private styleElement?;
|
|
92
|
-
get rowsContainer(): HTMLElement;
|
|
93
|
-
constructor(listUser: string, container: HTMLElement, delegate: IListVirtualDelegate<IDiffElementViewModelBase>, renderers: IListRenderer<IDiffElementViewModelBase, CellDiffSingleSideRenderTemplate | CellDiffSideBySideRenderTemplate | CellDiffPlaceholderRenderTemplate | NotebookDocumentDiffElementRenderTemplate>[], contextKeyService: IContextKeyService, options: IWorkbenchListOptions<IDiffElementViewModelBase>, listService: IListService, configurationService: IConfigurationService, instantiationService: IInstantiationService);
|
|
94
|
-
protected createMouseController(options: IListOptions<IDiffElementViewModelBase>): MouseController<IDiffElementViewModelBase>;
|
|
95
|
-
getCellViewScrollTop(element: IDiffElementViewModelBase): number;
|
|
96
|
-
getScrollHeight(): number;
|
|
97
|
-
triggerScrollFromMouseWheelEvent(browserEvent: IMouseWheelEvent): void;
|
|
98
|
-
delegateVerticalScrollbarPointerDown(browserEvent: PointerEvent): void;
|
|
99
|
-
clear(): void;
|
|
100
|
-
updateElementHeight2(element: IDiffElementViewModelBase, size: number): void;
|
|
101
|
-
style(styles: IListStyles): void;
|
|
102
|
-
}
|