@theia/plugin-ext 1.28.0-next.15 → 1.28.0-next.19
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/lib/common/plugin-api-rpc-model.d.ts +1 -0
- package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc-model.js.map +1 -1
- package/lib/common/plugin-protocol.d.ts +2 -0
- package/lib/common/plugin-protocol.d.ts.map +1 -1
- package/lib/common/plugin-protocol.js.map +1 -1
- package/lib/hosted/node/scanners/scanner-theia.d.ts +5 -1
- package/lib/hosted/node/scanners/scanner-theia.d.ts.map +1 -1
- package/lib/hosted/node/scanners/scanner-theia.js +22 -15
- package/lib/hosted/node/scanners/scanner-theia.js.map +1 -1
- package/lib/main/browser/comments/comment-thread-widget.js +5 -5
- package/lib/main/browser/comments/comment-thread-widget.js.map +1 -1
- package/lib/main/browser/menus/menus-contribution-handler.d.ts +24 -88
- package/lib/main/browser/menus/menus-contribution-handler.d.ts.map +1 -1
- package/lib/main/browser/menus/menus-contribution-handler.js +108 -518
- package/lib/main/browser/menus/menus-contribution-handler.js.map +1 -1
- package/lib/main/browser/menus/plugin-menu-command-adapter.d.ts +44 -0
- package/lib/main/browser/menus/plugin-menu-command-adapter.d.ts.map +1 -0
- package/lib/main/browser/menus/plugin-menu-command-adapter.js +272 -0
- package/lib/main/browser/menus/plugin-menu-command-adapter.js.map +1 -0
- package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts +18 -0
- package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts.map +1 -0
- package/lib/main/browser/menus/vscode-theia-menu-mappings.js +88 -0
- package/lib/main/browser/menus/vscode-theia-menu-mappings.js.map +1 -0
- package/lib/main/browser/plugin-ext-frontend-module.d.ts.map +1 -1
- package/lib/main/browser/plugin-ext-frontend-module.js +4 -1
- package/lib/main/browser/plugin-ext-frontend-module.js.map +1 -1
- package/lib/main/browser/plugin-shared-style.d.ts.map +1 -1
- package/lib/main/browser/plugin-shared-style.js +0 -1
- package/lib/main/browser/plugin-shared-style.js.map +1 -1
- package/lib/main/browser/view/tree-view-widget.js +2 -2
- package/lib/main/browser/view/tree-view-widget.js.map +1 -1
- package/lib/plugin/languages/signature.d.ts.map +1 -1
- package/lib/plugin/languages/signature.js +5 -1
- package/lib/plugin/languages/signature.js.map +1 -1
- package/lib/plugin/type-converters.d.ts.map +1 -1
- package/lib/plugin/type-converters.js +4 -2
- package/lib/plugin/type-converters.js.map +1 -1
- package/lib/plugin/types-impl.d.ts +1 -0
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/types-impl.js.map +1 -1
- package/package.json +24 -24
- package/src/common/plugin-api-rpc-model.ts +1 -0
- package/src/common/plugin-protocol.ts +2 -0
- package/src/hosted/node/scanners/scanner-theia.ts +21 -15
- package/src/main/browser/comments/comment-thread-widget.tsx +5 -5
- package/src/main/browser/menus/menus-contribution-handler.ts +104 -578
- package/src/main/browser/menus/plugin-menu-command-adapter.ts +257 -0
- package/src/main/browser/menus/vscode-theia-menu-mappings.ts +85 -0
- package/src/main/browser/plugin-ext-frontend-module.ts +4 -1
- package/src/main/browser/plugin-shared-style.ts +0 -1
- package/src/main/browser/view/tree-view-widget.tsx +2 -2
- package/src/plugin/languages/signature.ts +3 -1
- package/src/plugin/type-converters.ts +4 -2
- package/src/plugin/types-impl.ts +1 -0
|
@@ -1,94 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
6
|
-
import { DeployedPlugin, Menu, ScmCommandArg, TimelineCommandArg } from '../../../common';
|
|
7
|
-
import { ScmService } from '@theia/scm/lib/browser/scm-service';
|
|
8
|
-
import { ResourceContextKey } from '@theia/core/lib/browser/resource-context-key';
|
|
9
|
-
import { ViewContextKeyService } from '../view/view-context-key-service';
|
|
10
|
-
import { WebviewWidget } from '../webview/webview';
|
|
1
|
+
import { Disposable, DisposableCollection, MenuCommandAdapterRegistry, Emitter } from '@theia/core';
|
|
2
|
+
import { DeployedPlugin, IconUrl } from '../../../common';
|
|
3
|
+
import { ContributionPoint } from './vscode-theia-menu-mappings';
|
|
4
|
+
import { PluginMenuCommandAdapter, ReferenceCountingSet } from './plugin-menu-command-adapter';
|
|
11
5
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
12
|
-
import {
|
|
13
|
-
import { QuickCommandService } from '@theia/core/lib/browser';
|
|
14
|
-
declare type CodeEditorWidget = EditorWidget | WebviewWidget;
|
|
15
|
-
export declare class CodeEditorWidgetUtil {
|
|
16
|
-
is(arg: any): arg is CodeEditorWidget;
|
|
17
|
-
getResourceUri(editor: CodeEditorWidget): CodeUri | undefined;
|
|
18
|
-
}
|
|
6
|
+
import { PluginSharedStyle } from '../plugin-shared-style';
|
|
19
7
|
export declare class MenusContributionPointHandler {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
protected readonly
|
|
25
|
-
protected readonly
|
|
26
|
-
protected readonly selectionService: SelectionService;
|
|
27
|
-
protected readonly resourceContextKey: ResourceContextKey;
|
|
28
|
-
protected readonly viewContextKeys: ViewContextKeyService;
|
|
8
|
+
private readonly menuRegistry;
|
|
9
|
+
private readonly commands;
|
|
10
|
+
private readonly tabBarToolbar;
|
|
11
|
+
private readonly codeEditorWidgetUtil;
|
|
12
|
+
protected readonly commandAdapter: PluginMenuCommandAdapter;
|
|
13
|
+
protected readonly commandAdapterRegistry: MenuCommandAdapterRegistry;
|
|
29
14
|
protected readonly contextKeyService: ContextKeyService;
|
|
30
|
-
protected readonly
|
|
15
|
+
protected readonly style: PluginSharedStyle;
|
|
16
|
+
private readonly quickCommandService;
|
|
17
|
+
protected readonly titleContributionContextKeys: ReferenceCountingSet<unknown>;
|
|
18
|
+
protected readonly onDidChangeTitleContributionEmitter: Emitter<void>;
|
|
19
|
+
private initialized;
|
|
20
|
+
private initialize;
|
|
21
|
+
private getMatchingMenu;
|
|
31
22
|
handle(plugin: DeployedPlugin): Disposable;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
protected
|
|
38
|
-
protected static parseMenuPaths(value: string): MenuPath[];
|
|
39
|
-
protected registerCommandPaletteAction(menu: Menu): Disposable;
|
|
40
|
-
protected registerEditorTitleAction(location: string, action: Menu): Disposable;
|
|
41
|
-
protected registerViewTitleAction(location: string, action: Menu): Disposable;
|
|
42
|
-
protected registerViewItemContextAction(menu: MenuTree): Disposable;
|
|
43
|
-
protected registerScmResourceGroupAction(menu: MenuTree): Disposable;
|
|
44
|
-
protected registerScmResourceFolderAction(menu: MenuTree): Disposable;
|
|
45
|
-
protected registerScmResourceStateAction(menu: MenuTree): Disposable;
|
|
46
|
-
protected registerTimelineItemAction(menu: MenuTree): Disposable;
|
|
47
|
-
protected registerCommentThreadAction(menu: MenuTree, plugin: DeployedPlugin): Disposable;
|
|
48
|
-
protected registerCommentTitleAction(menu: MenuTree): Disposable;
|
|
49
|
-
protected registerCommentContextAction(menu: MenuTree): Disposable;
|
|
50
|
-
protected registerDebugCallstackAction(menu: MenuTree): Disposable;
|
|
51
|
-
protected registerTreeMenuAction(menuPath: MenuPath, menu: MenuTree): Disposable;
|
|
52
|
-
protected toTreeArgs(...args: any[]): any[];
|
|
53
|
-
protected registerTitleAction(location: string, action: Menu, handler: CommandHandler): Disposable;
|
|
54
|
-
protected registerScmTitleAction(location: string, action: Menu): Disposable;
|
|
55
|
-
protected registerScmMenuAction(menuPath: MenuPath, menu: MenuTree): Disposable;
|
|
56
|
-
protected toScmArgs(...args: any[]): any[];
|
|
57
|
-
protected toScmArg(arg: any): ScmCommandArg | undefined;
|
|
58
|
-
protected toTimelineArgs(...args: any[]): any[];
|
|
59
|
-
protected toTimelineArg(arg: TimelineItem): TimelineCommandArg;
|
|
60
|
-
protected toCommentArgs(...args: any[]): any[];
|
|
61
|
-
protected registerGlobalMenuAction(menu: MenuTree, location: string, plugin: DeployedPlugin): Disposable;
|
|
62
|
-
protected registerMenuAction(menuPath: MenuPath, menu: MenuTree, handler: (command: string) => CommandHandler): Disposable;
|
|
63
|
-
protected createSyntheticCommandId(command: string, { prefix }: {
|
|
64
|
-
prefix: string;
|
|
65
|
-
}): string;
|
|
66
|
-
protected onDidRegisterCommand(id: string, cb: (command: Command) => void): Disposable;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* MenuTree representing a (sub)menu in the menu tree structure.
|
|
70
|
-
*/
|
|
71
|
-
export declare class MenuTree implements Menu {
|
|
72
|
-
/** The location where the menu item will be open from. */
|
|
73
|
-
readonly id?: string | undefined;
|
|
74
|
-
/** The label of the menu item which leads to the submenu. */
|
|
75
|
-
label?: string | undefined;
|
|
76
|
-
protected _children: MenuTree[];
|
|
77
|
-
command?: string;
|
|
78
|
-
alt?: string;
|
|
79
|
-
group?: string;
|
|
80
|
-
when?: string;
|
|
81
|
-
/** The orders of the menu items which lead to the submenus */
|
|
82
|
-
submenusOrder?: string;
|
|
83
|
-
constructor(menu?: Menu,
|
|
84
|
-
/** The location where the menu item will be open from. */
|
|
85
|
-
id?: string | undefined,
|
|
86
|
-
/** The label of the menu item which leads to the submenu. */
|
|
87
|
-
label?: string | undefined);
|
|
88
|
-
get children(): MenuTree[];
|
|
89
|
-
set children(items: MenuTree[]);
|
|
90
|
-
addChild(node: MenuTree): void;
|
|
91
|
-
get isSubmenu(): boolean;
|
|
23
|
+
private parseGroup;
|
|
24
|
+
private registerCommandPaletteAction;
|
|
25
|
+
protected checkTitleContribution(contributionPoint: ContributionPoint | string, contribution: {
|
|
26
|
+
when?: string;
|
|
27
|
+
}, toDispose: DisposableCollection): void;
|
|
28
|
+
protected toIconClass(url: IconUrl, toDispose: DisposableCollection): string | undefined;
|
|
92
29
|
}
|
|
93
|
-
export {};
|
|
94
30
|
//# sourceMappingURL=menus-contribution-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menus-contribution-handler.d.ts","sourceRoot":"","sources":["../../../../src/main/browser/menus/menus-contribution-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"menus-contribution-handler.d.ts","sourceRoot":"","sources":["../../../../src/main/browser/menus/menus-contribution-handler.ts"],"names":[],"mappings":"AAmBA,OAAO,EAA6B,UAAU,EAAE,oBAAoB,EAAkB,0BAA0B,EAAE,OAAO,EAAwB,MAAM,aAAa,CAAC;AAGrK,OAAO,EAAE,cAAc,EAAE,OAAO,EAAQ,MAAM,iBAAiB,CAAC;AAIhE,OAAO,EACwC,iBAAiB,EAE/D,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,qBACa,6BAA6B;IAEX,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoB;IACnD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkB;IACrC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAwB;IACvD,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAuB;IACxD,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,wBAAwB,CAAC;IAC1D,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE,0BAA0B,CAAC;IAC/E,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACxD,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAEvE,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAE1D,SAAS,CAAC,QAAQ,CAAC,4BAA4B,gCAA8B;IAC7E,SAAS,CAAC,QAAQ,CAAC,mCAAmC,gBAAuB;IAE7E,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,UAAU;IAkBlB,OAAO,CAAC,eAAe;IAIvB,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,UAAU;IA+C1C,OAAO,CAAC,UAAU;IASlB,OAAO,CAAC,4BAA4B;IAOpC,SAAS,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,MAAM,EAAE,YAAY,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,SAAS,EAAE,oBAAoB,GAAG,IAAI;IAavJ,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB,GAAG,MAAM,GAAG,SAAS;CAW3F"}
|