@codingame/monaco-vscode-views-service-override 2.2.2 → 3.1.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 +5 -5
- package/index.js +2 -2
- package/package.json +11 -11
- package/tools/editor.js +31 -8
- package/tools/editorAssets.js +4 -0
- package/tools/views.d.ts +6 -7
- package/tools/views.js +11 -12
- package/views.js +40 -25
- 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
|
@@ -4,19 +4,19 @@ export { ActivityService } from 'vscode/vscode/vs/workbench/services/activity/br
|
|
|
4
4
|
export { ActivitybarPart } from './vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js';
|
|
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
|
-
export { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
8
|
-
export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
9
|
-
export { IView, SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
10
7
|
export { GroupOrientation } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
8
|
+
export { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
11
9
|
export { IResolvedTextEditorModel } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
10
|
+
export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
12
11
|
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
13
|
-
export {
|
|
12
|
+
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
13
|
+
export { IView, SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
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.1.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.1.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.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "3.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-keybindings-service-override": "3.1.0",
|
|
26
|
+
"@codingame/monaco-vscode-files-service-override": "3.1.0",
|
|
27
|
+
"@codingame/monaco-vscode-extensions-service-override": "3.1.0",
|
|
28
|
+
"@codingame/monaco-vscode-environment-service-override": "3.1.0",
|
|
29
|
+
"@codingame/monaco-vscode-layout-service-override": "3.1.0",
|
|
30
|
+
"@codingame/monaco-vscode-host-service-override": "3.1.0",
|
|
31
|
+
"@codingame/monaco-vscode-base-service-override": "3.1.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
|
@@ -12,30 +12,9 @@ import { ActivityService } from 'vscode/vscode/vs/workbench/services/activity/br
|
|
|
12
12
|
export { ActivityService } from 'vscode/vscode/vs/workbench/services/activity/browser/activityService';
|
|
13
13
|
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite';
|
|
14
14
|
export { ActivitybarPart } from 'vscode/vscode/vs/workbench/browser/parts/activitybar/activitybarPart';
|
|
15
|
-
import { ExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/explorerService';
|
|
16
|
-
import { IExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/files';
|
|
17
15
|
import { PanelPart } from 'vscode/vscode/vs/workbench/browser/parts/panel/panelPart';
|
|
18
16
|
export { PanelPart } from 'vscode/vscode/vs/workbench/browser/parts/panel/panelPart';
|
|
19
17
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
20
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/fileCommands';
|
|
21
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/fileActions.contribution';
|
|
22
|
-
import 'vscode/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution';
|
|
23
|
-
import 'vscode/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution';
|
|
24
|
-
import 'vscode/vscode/vs/workbench/browser/actions/listCommands';
|
|
25
|
-
import 'vscode/vscode/vs/workbench/browser/parts/views/media/views.css';
|
|
26
|
-
import 'vscode/vscode/vs/workbench/api/browser/viewsExtensionPoint';
|
|
27
|
-
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.contribution';
|
|
28
|
-
import 'vscode/vscode/vs/workbench/browser/workbench.contribution';
|
|
29
|
-
import 'vscode/vscode/vs/workbench/contrib/customEditor/browser/customEditor.contribution';
|
|
30
|
-
import 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution';
|
|
31
|
-
import 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution';
|
|
32
|
-
import 'vscode/vscode/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution';
|
|
33
|
-
import 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution';
|
|
34
|
-
import 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.contribution';
|
|
35
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution';
|
|
36
|
-
import 'vscode/vscode/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution';
|
|
37
|
-
import 'vscode/vscode/vs/workbench/contrib/sash/browser/sash.contribution';
|
|
38
|
-
import 'vscode/vscode/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker';
|
|
39
18
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
40
19
|
export { GroupOrientation } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
41
20
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
@@ -86,6 +65,8 @@ import { ViewsService } from 'vscode/vscode/vs/workbench/services/views/browser/
|
|
|
86
65
|
import { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
87
66
|
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
88
67
|
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover';
|
|
68
|
+
import { IEditorPaneService } from 'vscode/vscode/vs/workbench/services/editor/common/editorPaneService';
|
|
69
|
+
import { EditorPaneService } from 'vscode/vscode/vs/workbench/services/editor/browser/editorPaneService';
|
|
89
70
|
import { MonacoEditorService, MonacoDelegateEditorGroupsService } from './tools/editor.js';
|
|
90
71
|
import getServiceOverride$1 from '@codingame/monaco-vscode-bulk-edit-service-override';
|
|
91
72
|
import getServiceOverride$2 from '@codingame/monaco-vscode-quickaccess-service-override';
|
|
@@ -93,14 +74,35 @@ import getServiceOverride$3 from '@codingame/monaco-vscode-keybindings-service-o
|
|
|
93
74
|
import { changeUrlDomain } from './tools/url.js';
|
|
94
75
|
import { onRenderWorkbench } from 'vscode/lifecycle';
|
|
95
76
|
import { registerAssets } from 'vscode/assets';
|
|
96
|
-
|
|
77
|
+
import 'vscode/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution';
|
|
78
|
+
import 'vscode/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution';
|
|
79
|
+
import 'vscode/vscode/vs/workbench/browser/actions/listCommands';
|
|
80
|
+
import 'vscode/vscode/vs/workbench/browser/parts/views/media/views.css';
|
|
81
|
+
import 'vscode/vscode/vs/workbench/api/browser/viewsExtensionPoint';
|
|
82
|
+
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.contribution';
|
|
83
|
+
import 'vscode/vscode/vs/workbench/browser/workbench.contribution';
|
|
84
|
+
import 'vscode/vscode/vs/workbench/contrib/customEditor/browser/customEditor.contribution';
|
|
85
|
+
import 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution';
|
|
86
|
+
import 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution';
|
|
87
|
+
import 'vscode/vscode/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution';
|
|
88
|
+
import 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution';
|
|
89
|
+
import 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.contribution';
|
|
90
|
+
import 'vscode/vscode/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution';
|
|
91
|
+
import 'vscode/vscode/vs/workbench/contrib/sash/browser/sash.contribution';
|
|
92
|
+
import 'vscode/vscode/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker';
|
|
93
|
+
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.autosave.contribution';
|
|
94
|
+
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.editorPane.contribution';
|
|
95
|
+
import 'vscode/vscode/vs/workbench/contrib/files/browser/fileCommands.save';
|
|
96
|
+
import 'vscode/vscode/vs/workbench/browser/actions/navigationActions';
|
|
97
|
+
import './tools/editorAssets.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');
|
|
@@ -452,11 +454,15 @@ onRenderWorkbench(async (accessor) => {
|
|
|
452
454
|
const restoreDefaultViewsPromise = (async () => {
|
|
453
455
|
if (initialLayoutState.views.defaults != null && initialLayoutState.views.defaults.length > 0) {
|
|
454
456
|
mark('code/willOpenDefaultViews');
|
|
457
|
+
const locationsRestored = [];
|
|
455
458
|
const tryOpenView = (view) => {
|
|
456
459
|
const location = viewDescriptorService.getViewLocationById(view.id);
|
|
457
460
|
if (location !== null) {
|
|
458
461
|
const container = viewDescriptorService.getViewContainerByViewId(view.id);
|
|
459
462
|
if (container != null) {
|
|
463
|
+
if (view.order >= (locationsRestored[location]?.order ?? 0)) {
|
|
464
|
+
locationsRestored[location] = { id: container.id, order: view.order };
|
|
465
|
+
}
|
|
460
466
|
const containerModel = viewDescriptorService.getViewContainerModel(container);
|
|
461
467
|
containerModel.setCollapsed(view.id, false);
|
|
462
468
|
containerModel.setVisible(view.id, true);
|
|
@@ -483,6 +489,15 @@ onRenderWorkbench(async (accessor) => {
|
|
|
483
489
|
}
|
|
484
490
|
}
|
|
485
491
|
}
|
|
492
|
+
if (locationsRestored[0 ] != null) {
|
|
493
|
+
initialLayoutState.views.containerToRestore.sideBar = locationsRestored[0 ].id;
|
|
494
|
+
}
|
|
495
|
+
if (locationsRestored[1 ] != null) {
|
|
496
|
+
initialLayoutState.views.containerToRestore.panel = locationsRestored[1 ].id;
|
|
497
|
+
}
|
|
498
|
+
if (locationsRestored[2 ] != null) {
|
|
499
|
+
initialLayoutState.views.containerToRestore.auxiliaryBar = locationsRestored[2 ].id;
|
|
500
|
+
}
|
|
486
501
|
mark('code/didOpenDefaultViews');
|
|
487
502
|
}
|
|
488
503
|
})();
|
|
@@ -555,7 +570,6 @@ function getServiceOverride(openEditorFallback, _webviewIframeAlternateDomains,
|
|
|
555
570
|
[( IActivityService.toString())]: new SyncDescriptor(ActivityService, [], true),
|
|
556
571
|
[( IPaneCompositePartService.toString())]: new SyncDescriptor(PaneCompositePartService, [], true),
|
|
557
572
|
[( IHoverService.toString())]: new SyncDescriptor(HoverService, [], true),
|
|
558
|
-
[( IExplorerService.toString())]: new SyncDescriptor(ExplorerService, [], true),
|
|
559
573
|
[( ICodeEditorService.toString())]: new SyncDescriptor(CodeEditorService, [], true),
|
|
560
574
|
[( ITextEditorService.toString())]: new SyncDescriptor(TextEditorService, [], false),
|
|
561
575
|
[( IEditorGroupsService.toString())]: new SyncDescriptor(MonacoEditorParts, [], false),
|
|
@@ -570,7 +584,8 @@ function getServiceOverride(openEditorFallback, _webviewIframeAlternateDomains,
|
|
|
570
584
|
[( IWebviewViewService.toString())]: new SyncDescriptor(WebviewViewService, [], true),
|
|
571
585
|
[( IWebviewWorkbenchService.toString())]: new SyncDescriptor(WebviewEditorService, [], true),
|
|
572
586
|
[( IProgressService.toString())]: new SyncDescriptor(ProgressService, [], true),
|
|
573
|
-
[( IAuxiliaryWindowService.toString())]: new SyncDescriptor(BrowserAuxiliaryWindowService, [], true)
|
|
587
|
+
[( IAuxiliaryWindowService.toString())]: new SyncDescriptor(BrowserAuxiliaryWindowService, [], true),
|
|
588
|
+
[( IEditorPaneService.toString())]: new SyncDescriptor(EditorPaneService, [], true)
|
|
574
589
|
};
|
|
575
590
|
}
|
|
576
591
|
|
|
@@ -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;
|