@theia/plugin-ext 1.23.0-next.31 → 1.23.0-next.36
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-api-rpc.d.ts +2 -0
- package/lib/common/plugin-api-rpc.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.js.map +1 -1
- package/lib/hosted/node-electron/scanner-theia-electron.d.ts.map +1 -1
- package/lib/hosted/node-electron/scanner-theia-electron.js.map +1 -1
- package/lib/main/browser/comments/comment-thread-widget.d.ts.map +1 -1
- package/lib/main/browser/comments/comment-thread-widget.js.map +1 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.d.ts.map +1 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.js.map +1 -1
- package/lib/main/browser/debug/plugin-debug-session-factory.d.ts.map +1 -1
- package/lib/main/browser/debug/plugin-debug-session-factory.js.map +1 -1
- package/lib/main/browser/dialogs/modal-notification.d.ts.map +1 -1
- package/lib/main/browser/dialogs/modal-notification.js.map +1 -1
- package/lib/main/browser/languages-main.d.ts +1 -0
- package/lib/main/browser/languages-main.d.ts.map +1 -1
- package/lib/main/browser/languages-main.js +11 -3
- package/lib/main/browser/languages-main.js.map +1 -1
- package/lib/main/browser/plugin-authentication-service.d.ts.map +1 -1
- package/lib/main/browser/plugin-authentication-service.js.map +1 -1
- package/lib/main/browser/plugin-ext-widget.d.ts.map +1 -1
- package/lib/main/browser/plugin-ext-widget.js.map +1 -1
- package/lib/main/browser/view/plugin-view-widget.d.ts.map +1 -1
- package/lib/main/browser/view/plugin-view-widget.js.map +1 -1
- package/lib/main/browser/view/tree-view-widget.d.ts +0 -2
- package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
- package/lib/main/browser/view/tree-view-widget.js +0 -2
- package/lib/main/browser/view/tree-view-widget.js.map +1 -1
- package/lib/main/browser/webview/webview.d.ts.map +1 -1
- package/lib/main/browser/webview/webview.js.map +1 -1
- package/lib/main/electron-browser/webview/electron-webview-widget-factory.d.ts.map +1 -1
- package/lib/main/electron-browser/webview/electron-webview-widget-factory.js.map +1 -1
- package/lib/plugin/languages/code-action.d.ts +7 -1
- package/lib/plugin/languages/code-action.d.ts.map +1 -1
- package/lib/plugin/languages/code-action.js +36 -2
- package/lib/plugin/languages/code-action.js.map +1 -1
- package/lib/plugin/languages.d.ts +2 -0
- package/lib/plugin/languages.d.ts.map +1 -1
- package/lib/plugin/languages.js +7 -0
- package/lib/plugin/languages.js.map +1 -1
- package/lib/plugin/node/debug/plugin-debug-adapter-session.d.ts.map +1 -1
- package/lib/plugin/node/debug/plugin-debug-adapter-session.js.map +1 -1
- package/lib/plugin/node/env-node-ext.d.ts.map +1 -1
- package/lib/plugin/node/env-node-ext.js.map +1 -1
- package/lib/plugin/plugin-context.d.ts.map +1 -1
- package/lib/plugin/plugin-context.js.map +1 -1
- package/lib/plugin/quick-open.d.ts.map +1 -1
- package/lib/plugin/quick-open.js.map +1 -1
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/types-impl.js.map +1 -1
- package/package.json +23 -23
- package/src/common/plugin-api-rpc-model.ts +1 -0
- package/src/common/plugin-api-rpc.ts +3 -1
- package/src/hosted/node-electron/scanner-theia-electron.ts +1 -1
- package/src/main/browser/comments/comment-thread-widget.tsx +12 -12
- package/src/main/browser/custom-editors/custom-editor-widget.ts +5 -5
- package/src/main/browser/debug/plugin-debug-session-factory.ts +22 -22
- package/src/main/browser/dialogs/modal-notification.ts +1 -1
- package/src/main/browser/languages-main.ts +13 -3
- package/src/main/browser/plugin-authentication-service.ts +2 -2
- package/src/main/browser/plugin-ext-widget.tsx +1 -1
- package/src/main/browser/view/plugin-view-widget.ts +4 -4
- package/src/main/browser/view/tree-view-widget.tsx +14 -17
- package/src/main/browser/webview/webview.ts +5 -5
- package/src/main/electron-browser/webview/electron-webview-widget-factory.ts +2 -2
- package/src/plugin/languages/code-action.ts +46 -3
- package/src/plugin/languages.ts +9 -0
- package/src/plugin/node/debug/plugin-debug-adapter-session.ts +7 -7
- package/src/plugin/node/env-node-ext.ts +1 -1
- package/src/plugin/plugin-context.ts +4 -4
- package/src/plugin/quick-open.ts +13 -11
- package/src/plugin/types-impl.ts +8 -8
|
@@ -1098,7 +1098,7 @@ export class PluginExt<T> extends Plugin<T> implements ExtensionPlugin<T> {
|
|
|
1098
1098
|
extensionUri: theia.Uri;
|
|
1099
1099
|
extensionKind: ExtensionKind;
|
|
1100
1100
|
|
|
1101
|
-
constructor(protected readonly pluginManager: PluginManager, plugin: InternalPlugin) {
|
|
1101
|
+
constructor(protected override readonly pluginManager: PluginManager, plugin: InternalPlugin) {
|
|
1102
1102
|
super(pluginManager, plugin);
|
|
1103
1103
|
|
|
1104
1104
|
this.extensionPath = this.pluginPath;
|
|
@@ -1106,15 +1106,15 @@ export class PluginExt<T> extends Plugin<T> implements ExtensionPlugin<T> {
|
|
|
1106
1106
|
this.extensionKind = ExtensionKind.UI; // stub as a local extension (not running on a remote workspace)
|
|
1107
1107
|
}
|
|
1108
1108
|
|
|
1109
|
-
get isActive(): boolean {
|
|
1109
|
+
override get isActive(): boolean {
|
|
1110
1110
|
return this.pluginManager.isActive(this.id);
|
|
1111
1111
|
}
|
|
1112
1112
|
|
|
1113
|
-
get exports(): T {
|
|
1113
|
+
override get exports(): T {
|
|
1114
1114
|
return <T>this.pluginManager.getPluginExport(this.id);
|
|
1115
1115
|
}
|
|
1116
1116
|
|
|
1117
|
-
activate(): PromiseLike<T> {
|
|
1117
|
+
override activate(): PromiseLike<T> {
|
|
1118
1118
|
return this.pluginManager.activatePlugin(this.id).then(() => this.exports);
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
package/src/plugin/quick-open.ts
CHANGED
|
@@ -492,11 +492,12 @@ export class InputBoxExt extends QuickInputExt implements InputBox {
|
|
|
492
492
|
private _prompt: string | undefined;
|
|
493
493
|
private _validationMessage: string | undefined;
|
|
494
494
|
|
|
495
|
-
constructor(
|
|
496
|
-
readonly
|
|
497
|
-
readonly
|
|
498
|
-
|
|
499
|
-
|
|
495
|
+
constructor(
|
|
496
|
+
override readonly quickOpen: QuickOpenExtImpl,
|
|
497
|
+
override readonly quickOpenMain: QuickOpenMain,
|
|
498
|
+
override readonly plugin: Plugin,
|
|
499
|
+
onDispose: () => void
|
|
500
|
+
) {
|
|
500
501
|
super(quickOpen, quickOpenMain, plugin, onDispose);
|
|
501
502
|
|
|
502
503
|
this.buttons = [];
|
|
@@ -533,7 +534,7 @@ export class InputBoxExt extends QuickInputExt implements InputBox {
|
|
|
533
534
|
}
|
|
534
535
|
}
|
|
535
536
|
|
|
536
|
-
async show(): Promise<void> {
|
|
537
|
+
override async show(): Promise<void> {
|
|
537
538
|
super.show();
|
|
538
539
|
|
|
539
540
|
const update = (value: string) => {
|
|
@@ -584,11 +585,12 @@ export class QuickPickExt<T extends theia.QuickPickItem> extends QuickInputExt i
|
|
|
584
585
|
private readonly _onDidChangeActiveEmitter = new Emitter<T[]>();
|
|
585
586
|
private readonly _onDidChangeSelectionEmitter = new Emitter<T[]>();
|
|
586
587
|
|
|
587
|
-
constructor(
|
|
588
|
-
readonly
|
|
589
|
-
readonly
|
|
590
|
-
|
|
591
|
-
|
|
588
|
+
constructor(
|
|
589
|
+
override readonly quickOpen: QuickOpenExtImpl,
|
|
590
|
+
override readonly quickOpenMain: QuickOpenMain,
|
|
591
|
+
override readonly plugin: Plugin,
|
|
592
|
+
onDispose: () => void
|
|
593
|
+
) {
|
|
592
594
|
super(quickOpen, quickOpenMain, plugin, onDispose);
|
|
593
595
|
this.buttons = [];
|
|
594
596
|
|
package/src/plugin/types-impl.ts
CHANGED
|
@@ -68,7 +68,7 @@ export class URI extends CodeURI implements theia.Uri {
|
|
|
68
68
|
/**
|
|
69
69
|
* Override to create the correct class.
|
|
70
70
|
*/
|
|
71
|
-
with(change: {
|
|
71
|
+
override with(change: {
|
|
72
72
|
scheme?: string;
|
|
73
73
|
authority?: string | null;
|
|
74
74
|
path?: string | null;
|
|
@@ -90,19 +90,19 @@ export class URI extends CodeURI implements theia.Uri {
|
|
|
90
90
|
* Override to create the correct class.
|
|
91
91
|
* @param data
|
|
92
92
|
*/
|
|
93
|
-
static revive(data: UriComponents | CodeURI): URI;
|
|
94
|
-
static revive(data: UriComponents | CodeURI | null): URI | null;
|
|
95
|
-
static revive(data: UriComponents | CodeURI | undefined): URI | undefined
|
|
96
|
-
static revive(data: UriComponents | CodeURI | undefined | null): URI | undefined | null {
|
|
93
|
+
static override revive(data: UriComponents | CodeURI): URI;
|
|
94
|
+
static override revive(data: UriComponents | CodeURI | null): URI | null;
|
|
95
|
+
static override revive(data: UriComponents | CodeURI | undefined): URI | undefined
|
|
96
|
+
static override revive(data: UriComponents | CodeURI | undefined | null): URI | undefined | null {
|
|
97
97
|
const uri = CodeURI.revive(data);
|
|
98
98
|
return uri ? new URI(uri) : undefined;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
static parse(value: string, _strict?: boolean): URI {
|
|
101
|
+
static override parse(value: string, _strict?: boolean): URI {
|
|
102
102
|
return new URI(CodeURI.parse(value, _strict));
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
static file(path: string): URI {
|
|
105
|
+
static override file(path: string): URI {
|
|
106
106
|
return new URI(CodeURI.file(path));
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -111,7 +111,7 @@ export class URI extends CodeURI implements theia.Uri {
|
|
|
111
111
|
* transferring via JSON.stringify(). Making the CodeURI instance
|
|
112
112
|
* makes sure we transfer this object as a vscode-uri URI.
|
|
113
113
|
*/
|
|
114
|
-
toJSON(): UriComponents {
|
|
114
|
+
override toJSON(): UriComponents {
|
|
115
115
|
return CodeURI.from(this).toJSON();
|
|
116
116
|
}
|
|
117
117
|
}
|