@codingame/monaco-vscode-views-service-override 2.2.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +11 -11
- package/tools/editor.js +31 -8
- package/tools/views.d.ts +6 -7
- package/tools/views.js +11 -12
- package/views.js +6 -3
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +2 -0
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +4 -1
package/index.d.ts
CHANGED
|
@@ -5,18 +5,18 @@ export { ActivitybarPart } from './vscode/src/vs/workbench/browser/parts/activit
|
|
|
5
5
|
export { IReference } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
6
|
export { PanelPart } from './vscode/src/vs/workbench/browser/parts/panel/panelPart.js';
|
|
7
7
|
export { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
8
|
+
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
8
9
|
export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
9
10
|
export { IView, SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
10
11
|
export { GroupOrientation } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
11
12
|
export { IResolvedTextEditorModel } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
12
13
|
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
13
|
-
export { CustomViewOption, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
14
|
+
export { CustomViewOption, EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
14
15
|
export { IViewContainerDescriptor, IViewDescriptor, ViewContainer, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
15
16
|
export { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
16
17
|
export { EditorInput, IEditorCloseHandler } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
|
|
17
18
|
export { ConfirmResult } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
18
19
|
export { EditorInputFactoryObject, RegisteredEditorInfo, RegisteredEditorOptions, RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
19
|
-
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
20
20
|
export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
|
|
21
21
|
export { AbstractTextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
22
22
|
export { EditorInputCapabilities, IEditorSerializer } from 'vscode/vscode/vs/workbench/common/editor';
|
package/index.js
CHANGED
|
@@ -5,14 +5,14 @@ export { GroupOrientation } from 'vscode/vscode/vs/workbench/services/editor/com
|
|
|
5
5
|
export { RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
6
6
|
export { EditorInputCapabilities } from 'vscode/vscode/vs/workbench/common/editor';
|
|
7
7
|
export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
8
|
-
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
8
|
+
export { EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
9
9
|
export { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
10
10
|
export { ConfirmResult } from './override/vs/platform/dialogs/common/dialogs.js';
|
|
11
|
-
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
12
11
|
export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
|
|
13
12
|
export { AbstractTextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
14
13
|
export { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
|
|
15
14
|
export { SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
15
|
+
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
16
16
|
export { ActivityService } from 'vscode/vscode/vs/workbench/services/activity/browser/activityService';
|
|
17
17
|
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
18
18
|
export { PanelPart } from 'vscode/vscode/vs/workbench/browser/parts/panel/panelPart';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-views-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@3.0.0",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2",
|
|
23
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "
|
|
25
|
-
"@codingame/monaco-vscode-keybindings-service-override": "
|
|
26
|
-
"@codingame/monaco-vscode-files-service-override": "
|
|
27
|
-
"@codingame/monaco-vscode-extensions-service-override": "
|
|
28
|
-
"@codingame/monaco-vscode-environment-service-override": "
|
|
29
|
-
"@codingame/monaco-vscode-layout-service-override": "
|
|
30
|
-
"@codingame/monaco-vscode-host-service-override": "
|
|
31
|
-
"@codingame/monaco-vscode-base-service-override": "
|
|
23
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "3.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "3.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-keybindings-service-override": "3.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-files-service-override": "3.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-extensions-service-override": "3.0.0",
|
|
28
|
+
"@codingame/monaco-vscode-environment-service-override": "3.0.0",
|
|
29
|
+
"@codingame/monaco-vscode-layout-service-override": "3.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-host-service-override": "3.0.0",
|
|
31
|
+
"@codingame/monaco-vscode-base-service-override": "3.0.0"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/tools/editor.js
CHANGED
|
@@ -192,8 +192,8 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
|
|
|
192
192
|
this.onWillOpenEditor = this._onWillOpenEditor.event;
|
|
193
193
|
this.id = --StandaloneEditorGroup_1.idCounter;
|
|
194
194
|
this.index = -1;
|
|
195
|
-
this.label = `standalone editor ${this.
|
|
196
|
-
this.ariaLabel = `standalone editor ${this.
|
|
195
|
+
this.label = `standalone editor ${-this.id}`;
|
|
196
|
+
this.ariaLabel = `standalone editor ${-this.id}`;
|
|
197
197
|
this.previewEditor = null;
|
|
198
198
|
this.isLocked = true;
|
|
199
199
|
this.stickyCount = 0;
|
|
@@ -201,8 +201,22 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
|
|
|
201
201
|
this.findEditors = (resource) => this.pane != null && ( resource.toString()) === ( this.pane.input.resource.toString()) ? [this.pane.input] : [];
|
|
202
202
|
this.getEditorByIndex = (index) => this.pane != null && index === 0 ? this.pane.input : undefined;
|
|
203
203
|
this.getIndexOfEditor = (editorInput) => this.pane != null && this.pane.input === editorInput ? 0 : -1;
|
|
204
|
-
this.openEditor =
|
|
205
|
-
|
|
204
|
+
this.openEditor = async (editor) => {
|
|
205
|
+
if (editor.isDisposed()) {
|
|
206
|
+
return undefined;
|
|
207
|
+
}
|
|
208
|
+
if (editor instanceof TextResourceEditorInput && ( editor.resource.toString()) === this.pane?.input.resource.toString()) {
|
|
209
|
+
this.focus();
|
|
210
|
+
return this.pane;
|
|
211
|
+
}
|
|
212
|
+
return undefined;
|
|
213
|
+
};
|
|
214
|
+
this.openEditors = async (editors) => {
|
|
215
|
+
if (editors.length === 1) {
|
|
216
|
+
return this.openEditor(editors[0].editor);
|
|
217
|
+
}
|
|
218
|
+
return undefined;
|
|
219
|
+
};
|
|
206
220
|
this.isPinned = () => false;
|
|
207
221
|
this.isSticky = () => false;
|
|
208
222
|
this.isActive = () => this.editor.hasWidgetFocus();
|
|
@@ -318,6 +332,7 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
|
|
|
318
332
|
}
|
|
319
333
|
focus() {
|
|
320
334
|
this.editor.focus();
|
|
335
|
+
this.editor.getContainerDomNode().scrollIntoView();
|
|
321
336
|
}
|
|
322
337
|
};
|
|
323
338
|
StandaloneEditorGroup.idCounter = 0;
|
|
@@ -397,15 +412,23 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
|
|
|
397
412
|
const codeEditorService = StandaloneServices.get(ICodeEditorService);
|
|
398
413
|
const handleCodeEditor = (editor) => {
|
|
399
414
|
if (editor instanceof StandaloneEditor) {
|
|
415
|
+
let timeout;
|
|
400
416
|
const onEditorFocused = () => {
|
|
417
|
+
if (timeout != null)
|
|
418
|
+
window.clearTimeout(timeout);
|
|
401
419
|
this.activeGroupOverride = this.additionalGroups.find(group => group.editor === editor);
|
|
402
420
|
this._onDidChangeActiveGroup.fire(this.activeGroup);
|
|
403
421
|
};
|
|
404
422
|
const onEditorBlurred = () => {
|
|
405
|
-
if (
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
423
|
+
if (timeout != null)
|
|
424
|
+
window.clearTimeout(timeout);
|
|
425
|
+
timeout = window.setTimeout(() => {
|
|
426
|
+
timeout = undefined;
|
|
427
|
+
if (this.activeGroupOverride === this.additionalGroups.find(group => group.editor === editor)) {
|
|
428
|
+
this.activeGroupOverride = undefined;
|
|
429
|
+
this._onDidChangeActiveGroup.fire(this.activeGroup);
|
|
430
|
+
}
|
|
431
|
+
}, 100);
|
|
409
432
|
};
|
|
410
433
|
editor.onDidFocusEditorText(onEditorFocused);
|
|
411
434
|
editor.onDidFocusEditorWidget(onEditorFocused);
|
package/tools/views.d.ts
CHANGED
|
@@ -5,11 +5,9 @@ import { IDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
|
5
5
|
import { Dimension } from 'vscode/vscode/vs/base/browser/dom';
|
|
6
6
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
7
7
|
import { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
8
|
+
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
8
9
|
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
9
10
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
10
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
11
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
12
|
-
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
13
11
|
import { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
14
12
|
import { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
15
13
|
export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
@@ -21,19 +19,20 @@ export { EditorInput, IEditorCloseHandler } from 'vscode/vscode/vs/workbench/com
|
|
|
21
19
|
import { IEditorOpenContext, EditorInputCapabilities, Verbosity, IEditorSerializer } from 'vscode/vscode/vs/workbench/common/editor';
|
|
22
20
|
export { EditorInputCapabilities, IEditorSerializer } from 'vscode/vscode/vs/workbench/common/editor';
|
|
23
21
|
import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
24
|
-
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
25
22
|
|
|
26
23
|
type Label = string | {
|
|
27
24
|
short: string;
|
|
28
25
|
medium: string;
|
|
29
26
|
long: string;
|
|
30
27
|
};
|
|
31
|
-
declare abstract class
|
|
28
|
+
declare abstract class InjectedEditorPane extends EditorPane {
|
|
29
|
+
constructor(id: string);
|
|
30
|
+
}
|
|
31
|
+
declare abstract class SimpleEditorPane extends InjectedEditorPane {
|
|
32
32
|
protected container: HTMLElement;
|
|
33
33
|
protected wrapper: HTMLElement;
|
|
34
34
|
protected scrollbar: DomScrollableElement | undefined;
|
|
35
35
|
private inputDisposable;
|
|
36
|
-
constructor(id: string, telemetryService: ITelemetryService, themeService: IThemeService, storageService: IStorageService);
|
|
37
36
|
protected createEditor(parent: HTMLElement): void;
|
|
38
37
|
setInput(input: EditorInput, editorOptions: IEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void>;
|
|
39
38
|
layout(dimension: Dimension): void;
|
|
@@ -103,4 +102,4 @@ declare function getPanelPosition(): Position;
|
|
|
103
102
|
declare const onDidChangeSideBarPosition: Event<string>;
|
|
104
103
|
declare function getSideBarPosition(): Position;
|
|
105
104
|
|
|
106
|
-
export { type CustomViewOption, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
|
105
|
+
export { type CustomViewOption, InjectedEditorPane as EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
package/tools/views.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __decorate, __param } from '../external/tslib/tslib.es6.js';
|
|
2
1
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
2
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/views';
|
|
4
3
|
export { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
@@ -22,11 +21,11 @@ import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/cont
|
|
|
22
21
|
import { BaseActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
23
22
|
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
24
23
|
import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
25
|
-
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
26
24
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
27
25
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
28
26
|
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
29
27
|
import { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
28
|
+
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
30
29
|
import { assertIsDefined, assertAllDefined } from 'vscode/vscode/vs/base/common/types';
|
|
31
30
|
export { ConfirmResult } from '../override/vs/platform/dialogs/common/dialogs.js';
|
|
32
31
|
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
@@ -34,9 +33,14 @@ export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layout
|
|
|
34
33
|
import { StandaloneServices } from 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
35
34
|
import { withReadyServices } from 'vscode/services';
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
constructor(id
|
|
39
|
-
super(id,
|
|
36
|
+
class InjectedEditorPane extends EditorPane {
|
|
37
|
+
constructor(id) {
|
|
38
|
+
super(id, StandaloneServices.get(ITelemetryService), StandaloneServices.get(IThemeService), StandaloneServices.get(IStorageService));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
class SimpleEditorPane extends InjectedEditorPane {
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments);
|
|
40
44
|
this.inputDisposable = this._register(new MutableDisposable());
|
|
41
45
|
}
|
|
42
46
|
createEditor(parent) {
|
|
@@ -76,12 +80,7 @@ let SimpleEditorPane = class SimpleEditorPane extends EditorPane {
|
|
|
76
80
|
this.inputDisposable.clear();
|
|
77
81
|
super.clearInput();
|
|
78
82
|
}
|
|
79
|
-
}
|
|
80
|
-
SimpleEditorPane = __decorate([
|
|
81
|
-
( __param(1, ITelemetryService)),
|
|
82
|
-
( __param(2, IThemeService)),
|
|
83
|
-
( __param(3, IStorageService))
|
|
84
|
-
], SimpleEditorPane);
|
|
83
|
+
}
|
|
85
84
|
class SimpleEditorInput extends EditorInput {
|
|
86
85
|
constructor(resource, closeHandler) {
|
|
87
86
|
super();
|
|
@@ -278,4 +277,4 @@ function getSideBarPosition() {
|
|
|
278
277
|
return StandaloneServices.get(IWorkbenchLayoutService).getSideBarPosition();
|
|
279
278
|
}
|
|
280
279
|
|
|
281
|
-
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
|
280
|
+
export { InjectedEditorPane as EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
package/views.js
CHANGED
|
@@ -86,6 +86,8 @@ import { ViewsService } from 'vscode/vscode/vs/workbench/services/views/browser/
|
|
|
86
86
|
import { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
87
87
|
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
88
88
|
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover';
|
|
89
|
+
import { IEditorPaneService } from 'vscode/vscode/vs/workbench/services/editor/common/editorPaneService';
|
|
90
|
+
import { EditorPaneService } from 'vscode/vscode/vs/workbench/services/editor/browser/editorPaneService';
|
|
89
91
|
import { MonacoEditorService, MonacoDelegateEditorGroupsService } from './tools/editor.js';
|
|
90
92
|
import getServiceOverride$1 from '@codingame/monaco-vscode-bulk-edit-service-override';
|
|
91
93
|
import getServiceOverride$2 from '@codingame/monaco-vscode-quickaccess-service-override';
|
|
@@ -93,14 +95,14 @@ import getServiceOverride$3 from '@codingame/monaco-vscode-keybindings-service-o
|
|
|
93
95
|
import { changeUrlDomain } from './tools/url.js';
|
|
94
96
|
import { onRenderWorkbench } from 'vscode/lifecycle';
|
|
95
97
|
import { registerAssets } from 'vscode/assets';
|
|
96
|
-
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
98
|
+
export { EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
97
99
|
export { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
98
100
|
export { ConfirmResult } from './override/vs/platform/dialogs/common/dialogs.js';
|
|
99
|
-
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
100
101
|
export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
|
|
101
102
|
export { AbstractTextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
102
103
|
export { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
|
|
103
104
|
export { SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
105
|
+
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
104
106
|
|
|
105
107
|
function createPart(id, role, classes) {
|
|
106
108
|
const part = document.createElement(role === 'status' ? 'footer' : 'div');
|
|
@@ -570,7 +572,8 @@ function getServiceOverride(openEditorFallback, _webviewIframeAlternateDomains,
|
|
|
570
572
|
[( IWebviewViewService.toString())]: new SyncDescriptor(WebviewViewService, [], true),
|
|
571
573
|
[( IWebviewWorkbenchService.toString())]: new SyncDescriptor(WebviewEditorService, [], true),
|
|
572
574
|
[( IProgressService.toString())]: new SyncDescriptor(ProgressService, [], true),
|
|
573
|
-
[( IAuxiliaryWindowService.toString())]: new SyncDescriptor(BrowserAuxiliaryWindowService, [], true)
|
|
575
|
+
[( IAuxiliaryWindowService.toString())]: new SyncDescriptor(BrowserAuxiliaryWindowService, [], true),
|
|
576
|
+
[( IEditorPaneService.toString())]: new SyncDescriptor(EditorPaneService, [], true)
|
|
574
577
|
};
|
|
575
578
|
}
|
|
576
579
|
|
|
@@ -6,6 +6,7 @@ import { IActionRunner, IAction } from 'vscode/vscode/vs/base/common/actions';
|
|
|
6
6
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
7
7
|
import { ResolvedKeybinding } from 'vscode/vscode/vs/base/common/keybindings';
|
|
8
8
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { IHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconHoverDelegate';
|
|
9
10
|
|
|
10
11
|
interface IToolBarOptions {
|
|
11
12
|
orientation?: ActionsOrientation;
|
|
@@ -19,6 +20,7 @@ interface IToolBarOptions {
|
|
|
19
20
|
moreIcon?: ThemeIcon;
|
|
20
21
|
allowContextMenu?: boolean;
|
|
21
22
|
skipTelemetry?: boolean;
|
|
23
|
+
hoverDelegate?: IHoverDelegate;
|
|
22
24
|
/**
|
|
23
25
|
* If true, toggled primary items are highlighted with a background color.
|
|
24
26
|
*/
|
|
@@ -15,6 +15,8 @@ import { INotificationService } from 'vscode/vscode/vs/platform/notification/com
|
|
|
15
15
|
import { AnchorAlignment } from 'vscode/vscode/vs/base/browser/ui/contextview/contextview';
|
|
16
16
|
import { WorkbenchToolBar } from '../../../platform/actions/browser/toolbar.js';
|
|
17
17
|
import { IBoundarySashes } from 'vscode/vscode/vs/base/browser/ui/sash/sash';
|
|
18
|
+
import { IBaseActionViewItemOptions } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
19
|
+
import { IHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconHoverDelegate';
|
|
18
20
|
|
|
19
21
|
interface ICompositeTitleLabel {
|
|
20
22
|
/**
|
|
@@ -45,6 +47,7 @@ declare abstract class CompositePart<T extends Composite> extends Part {
|
|
|
45
47
|
protected readonly onDidCompositeClose: Emitter<IComposite>;
|
|
46
48
|
protected toolBar: WorkbenchToolBar | undefined;
|
|
47
49
|
protected titleLabelElement: HTMLElement | undefined;
|
|
50
|
+
protected readonly hoverDelegate: IHoverDelegate;
|
|
48
51
|
private readonly mapCompositeToCompositeContainer;
|
|
49
52
|
private readonly mapActionsBindingToComposite;
|
|
50
53
|
private activeComposite;
|
|
@@ -70,7 +73,7 @@ declare abstract class CompositePart<T extends Composite> extends Part {
|
|
|
70
73
|
protected createTitleArea(parent: HTMLElement): HTMLElement;
|
|
71
74
|
protected createTitleLabel(parent: HTMLElement): ICompositeTitleLabel;
|
|
72
75
|
updateStyles(): void;
|
|
73
|
-
protected actionViewItemProvider(action: IAction): IActionViewItem | undefined;
|
|
76
|
+
protected actionViewItemProvider(action: IAction, options: IBaseActionViewItemOptions): IActionViewItem | undefined;
|
|
74
77
|
protected actionsContextProvider(): unknown;
|
|
75
78
|
protected createContentArea(parent: HTMLElement): HTMLElement;
|
|
76
79
|
getProgressIndicator(id: string): IProgressIndicator | undefined;
|