@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common 18.4.0 → 19.0.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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common",
|
3
|
-
"version": "
|
3
|
+
"version": "19.0.1",
|
4
4
|
"private": false,
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - common package (bulk-edit, chat, debug, edit-sessions, explorer, extension-gallery, extensions, markers, mcp, outline, output, remote-agent, scm, search, terminal, testing, timeline, user-data-sync, view-common, views, workbench)",
|
6
6
|
"keywords": [],
|
@@ -15,9 +15,9 @@
|
|
15
15
|
},
|
16
16
|
"type": "module",
|
17
17
|
"dependencies": {
|
18
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "
|
19
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "
|
20
|
-
"@codingame/monaco-vscode-api": "
|
18
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "19.0.1",
|
19
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "19.0.1",
|
20
|
+
"@codingame/monaco-vscode-api": "19.0.1"
|
21
21
|
},
|
22
22
|
"exports": {
|
23
23
|
".": {
|
@@ -13,7 +13,6 @@ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform
|
|
13
13
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
14
14
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
15
15
|
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
16
|
-
import { CompositeMenuActions } from "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/actions";
|
17
16
|
import { ViewPane } from "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
18
17
|
import { IViewletViewOptions } from "@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
19
18
|
import { Component } from "@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/common/component";
|
@@ -23,6 +22,7 @@ import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbe
|
|
23
22
|
import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
|
24
23
|
import { IBaseActionViewItemOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionViewItems";
|
25
24
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
25
|
+
import { ViewContainerMenuActions } from "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewMenuActions";
|
26
26
|
export declare const ViewsSubMenu: MenuId;
|
27
27
|
export interface IViewPaneContainerOptions extends IPaneViewOptions {
|
28
28
|
mergeViewWithContainerWhenSingleView: boolean;
|
@@ -71,7 +71,7 @@ export declare class ViewPaneContainer extends Component implements IViewPaneCon
|
|
71
71
|
get views(): IView[];
|
72
72
|
get length(): number;
|
73
73
|
private _menuActions?;
|
74
|
-
get menuActions():
|
74
|
+
get menuActions(): ViewContainerMenuActions | undefined;
|
75
75
|
constructor(id: string, options: IViewPaneContainerOptions, instantiationService: IInstantiationService, configurationService: IConfigurationService, layoutService: IWorkbenchLayoutService, contextMenuService: IContextMenuService, telemetryService: ITelemetryService, extensionService: IExtensionService, themeService: IThemeService, storageService: IStorageService, contextService: IWorkspaceContextService, viewDescriptorService: IViewDescriptorService, logService: ILogService);
|
76
76
|
create(parent: HTMLElement): void;
|
77
77
|
getTitle(): string;
|
@@ -7,15 +7,14 @@ import { Gesture, EventType as EventType$1 } from '@codingame/monaco-vscode-api/
|
|
7
7
|
import { Orientation } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/sash/sash';
|
8
8
|
import { PaneView } from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/base/browser/ui/splitview/paneview';
|
9
9
|
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
10
|
-
import {
|
10
|
+
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
11
11
|
import { KeyChord, KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
12
12
|
import { toDisposable, combinedDisposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
13
|
-
import {
|
13
|
+
import { assertReturnsDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
14
14
|
import * as paneviewlet from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/media/paneviewlet.css';
|
15
15
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
16
16
|
import { createActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/menuEntryActionViewItem';
|
17
17
|
import { MenuId, MenuRegistry, Action2, registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
18
|
-
import { IMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service';
|
19
18
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
20
19
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
21
20
|
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
@@ -38,11 +37,10 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/sear
|
|
38
37
|
import { Themable } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService';
|
39
38
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
40
39
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
41
|
-
import { CompositeMenuActions } from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/actions';
|
42
40
|
import { CompositeDragAndDropObserver, toggleDropEffect } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/dnd';
|
43
41
|
import { Component } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/common/component';
|
44
42
|
import { PANEL_SECTION_DRAG_AND_DROP_BACKGROUND, SIDE_BAR_DRAG_AND_DROP_BACKGROUND, PANEL_SECTION_BORDER, PANEL_SECTION_HEADER_BORDER, SIDE_BAR_SECTION_HEADER_BORDER, PANEL_SECTION_HEADER_BACKGROUND, SIDE_BAR_SECTION_HEADER_BACKGROUND, PANEL_SECTION_HEADER_FOREGROUND, SIDE_BAR_SECTION_HEADER_FOREGROUND } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/theme';
|
45
|
-
import { ViewContainerLocation,
|
43
|
+
import { ViewContainerLocation, ViewVisibilityState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
46
44
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
47
45
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
48
46
|
import { FocusedViewContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
@@ -50,12 +48,13 @@ import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbe
|
|
50
48
|
import { LayoutSettings, isHorizontal } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService';
|
51
49
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
52
50
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
51
|
+
import { ViewContainerMenuActions } from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewMenuActions';
|
53
52
|
|
54
53
|
registerCss(paneviewlet);
|
55
54
|
const ViewsSubMenu = ( new MenuId('Views'));
|
56
55
|
MenuRegistry.appendMenuItem(MenuId.ViewContainerTitle, {
|
57
56
|
submenu: ViewsSubMenu,
|
58
|
-
title: ( localize(
|
57
|
+
title: ( localize(3564, "Views")),
|
59
58
|
order: 1,
|
60
59
|
});
|
61
60
|
var DropDirection;
|
@@ -211,24 +210,9 @@ class ViewPaneDropOverlay extends Themable {
|
|
211
210
|
this._disposed = true;
|
212
211
|
}
|
213
212
|
}
|
214
|
-
let ViewContainerMenuActions = class ViewContainerMenuActions extends CompositeMenuActions {
|
215
|
-
constructor(element, viewContainer, viewDescriptorService, contextKeyService, menuService) {
|
216
|
-
const scopedContextKeyService = contextKeyService.createScoped(element);
|
217
|
-
scopedContextKeyService.createKey('viewContainer', viewContainer.id);
|
218
|
-
const viewContainerLocationKey = scopedContextKeyService.createKey('viewContainerLocation', ViewContainerLocationToString(viewDescriptorService.getViewContainerLocation(viewContainer)));
|
219
|
-
super(MenuId.ViewContainerTitle, MenuId.ViewContainerTitleContext, { shouldForwardArgs: true, renderShortTitle: true }, scopedContextKeyService, menuService);
|
220
|
-
this._register(scopedContextKeyService);
|
221
|
-
this._register(Event.filter(viewDescriptorService.onDidChangeContainerLocation, e => e.viewContainer === viewContainer)(() => viewContainerLocationKey.set(ViewContainerLocationToString(viewDescriptorService.getViewContainerLocation(viewContainer)))));
|
222
|
-
}
|
223
|
-
};
|
224
|
-
ViewContainerMenuActions = ( __decorate([
|
225
|
-
( __param(2, IViewDescriptorService)),
|
226
|
-
( __param(3, IContextKeyService)),
|
227
|
-
( __param(4, IMenuService))
|
228
|
-
], ViewContainerMenuActions));
|
229
213
|
let ViewPaneContainer = class ViewPaneContainer extends Component {
|
230
214
|
get onDidSashChange() {
|
231
|
-
return
|
215
|
+
return assertReturnsDefined(this.paneview).onDidSashChange;
|
232
216
|
}
|
233
217
|
get panes() {
|
234
218
|
return ( this.paneItems.map(i => i.pane));
|
@@ -705,7 +689,7 @@ let ViewPaneContainer = class ViewPaneContainer extends Component {
|
|
705
689
|
store.add(combinedDisposable(pane, onDidFocus, onDidBlur, onDidChangeTitleArea, onDidChange, onDidChangeVisibility));
|
706
690
|
const paneItem = { pane, disposable: store };
|
707
691
|
this.paneItems.splice(index, 0, paneItem);
|
708
|
-
|
692
|
+
assertReturnsDefined(this.paneview).addPane(pane, size, index);
|
709
693
|
let overlay;
|
710
694
|
if (pane.draggableElement) {
|
711
695
|
store.add(CompositeDragAndDropObserver.INSTANCE.registerDraggable(pane.draggableElement, () => { return { type: 'view', id: pane.id }; }, {}));
|
@@ -842,7 +826,7 @@ let ViewPaneContainer = class ViewPaneContainer extends Component {
|
|
842
826
|
if (this.lastFocusedPane === pane) {
|
843
827
|
this.lastFocusedPane = undefined;
|
844
828
|
}
|
845
|
-
|
829
|
+
assertReturnsDefined(this.paneview).removePane(pane);
|
846
830
|
const [paneItem] = this.paneItems.splice(index, 1);
|
847
831
|
paneItem.disposable.dispose();
|
848
832
|
}
|
@@ -859,15 +843,15 @@ let ViewPaneContainer = class ViewPaneContainer extends Component {
|
|
859
843
|
}
|
860
844
|
const [paneItem] = this.paneItems.splice(fromIndex, 1);
|
861
845
|
this.paneItems.splice(toIndex, 0, paneItem);
|
862
|
-
|
846
|
+
assertReturnsDefined(this.paneview).movePane(from, to);
|
863
847
|
this.viewContainerModel.move(fromViewDescriptor.id, toViewDescriptor.id);
|
864
848
|
this.updateTitleArea();
|
865
849
|
}
|
866
850
|
resizePane(pane, size) {
|
867
|
-
|
851
|
+
assertReturnsDefined(this.paneview).resizePane(pane, size);
|
868
852
|
}
|
869
853
|
getPaneSize(pane) {
|
870
|
-
return
|
854
|
+
return assertReturnsDefined(this.paneview).getPaneSize(pane);
|
871
855
|
}
|
872
856
|
updateViewHeaders() {
|
873
857
|
if (this.isViewMergedWithContainer()) {
|
@@ -1009,7 +993,7 @@ registerAction2(class MoveViewUp extends MoveViewPosition {
|
|
1009
993
|
constructor() {
|
1010
994
|
super({
|
1011
995
|
id: 'views.moveViewUp',
|
1012
|
-
title: ( localize(
|
996
|
+
title: ( localize(3565, "Move View Up")),
|
1013
997
|
keybinding: {
|
1014
998
|
primary: KeyChord(KeyMod.CtrlCmd + KeyCode.KeyK, KeyCode.UpArrow),
|
1015
999
|
weight: KeybindingWeight.WorkbenchContrib + 1,
|
@@ -1022,7 +1006,7 @@ registerAction2(class MoveViewLeft extends MoveViewPosition {
|
|
1022
1006
|
constructor() {
|
1023
1007
|
super({
|
1024
1008
|
id: 'views.moveViewLeft',
|
1025
|
-
title: ( localize(
|
1009
|
+
title: ( localize(3566, "Move View Left")),
|
1026
1010
|
keybinding: {
|
1027
1011
|
primary: KeyChord(KeyMod.CtrlCmd + KeyCode.KeyK, KeyCode.LeftArrow),
|
1028
1012
|
weight: KeybindingWeight.WorkbenchContrib + 1,
|
@@ -1035,7 +1019,7 @@ registerAction2(class MoveViewDown extends MoveViewPosition {
|
|
1035
1019
|
constructor() {
|
1036
1020
|
super({
|
1037
1021
|
id: 'views.moveViewDown',
|
1038
|
-
title: ( localize(
|
1022
|
+
title: ( localize(3567, "Move View Down")),
|
1039
1023
|
keybinding: {
|
1040
1024
|
primary: KeyChord(KeyMod.CtrlCmd + KeyCode.KeyK, KeyCode.DownArrow),
|
1041
1025
|
weight: KeybindingWeight.WorkbenchContrib + 1,
|
@@ -1048,7 +1032,7 @@ registerAction2(class MoveViewRight extends MoveViewPosition {
|
|
1048
1032
|
constructor() {
|
1049
1033
|
super({
|
1050
1034
|
id: 'views.moveViewRight',
|
1051
|
-
title: ( localize(
|
1035
|
+
title: ( localize(3568, "Move View Right")),
|
1052
1036
|
keybinding: {
|
1053
1037
|
primary: KeyChord(KeyMod.CtrlCmd + KeyCode.KeyK, KeyCode.RightArrow),
|
1054
1038
|
weight: KeybindingWeight.WorkbenchContrib + 1,
|
@@ -1061,7 +1045,7 @@ registerAction2(class MoveViews extends Action2 {
|
|
1061
1045
|
constructor() {
|
1062
1046
|
super({
|
1063
1047
|
id: 'vscode.moveViews',
|
1064
|
-
title: ( localize(
|
1048
|
+
title: ( localize(3569, "Move Views")),
|
1065
1049
|
});
|
1066
1050
|
}
|
1067
1051
|
async run(accessor, options) {
|