@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.
Files changed (74) hide show
  1. package/lib/common/plugin-api-rpc-model.d.ts +1 -0
  2. package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
  3. package/lib/common/plugin-api-rpc-model.js.map +1 -1
  4. package/lib/common/plugin-api-rpc.d.ts +2 -0
  5. package/lib/common/plugin-api-rpc.d.ts.map +1 -1
  6. package/lib/common/plugin-api-rpc.js.map +1 -1
  7. package/lib/hosted/node-electron/scanner-theia-electron.d.ts.map +1 -1
  8. package/lib/hosted/node-electron/scanner-theia-electron.js.map +1 -1
  9. package/lib/main/browser/comments/comment-thread-widget.d.ts.map +1 -1
  10. package/lib/main/browser/comments/comment-thread-widget.js.map +1 -1
  11. package/lib/main/browser/custom-editors/custom-editor-widget.d.ts.map +1 -1
  12. package/lib/main/browser/custom-editors/custom-editor-widget.js.map +1 -1
  13. package/lib/main/browser/debug/plugin-debug-session-factory.d.ts.map +1 -1
  14. package/lib/main/browser/debug/plugin-debug-session-factory.js.map +1 -1
  15. package/lib/main/browser/dialogs/modal-notification.d.ts.map +1 -1
  16. package/lib/main/browser/dialogs/modal-notification.js.map +1 -1
  17. package/lib/main/browser/languages-main.d.ts +1 -0
  18. package/lib/main/browser/languages-main.d.ts.map +1 -1
  19. package/lib/main/browser/languages-main.js +11 -3
  20. package/lib/main/browser/languages-main.js.map +1 -1
  21. package/lib/main/browser/plugin-authentication-service.d.ts.map +1 -1
  22. package/lib/main/browser/plugin-authentication-service.js.map +1 -1
  23. package/lib/main/browser/plugin-ext-widget.d.ts.map +1 -1
  24. package/lib/main/browser/plugin-ext-widget.js.map +1 -1
  25. package/lib/main/browser/view/plugin-view-widget.d.ts.map +1 -1
  26. package/lib/main/browser/view/plugin-view-widget.js.map +1 -1
  27. package/lib/main/browser/view/tree-view-widget.d.ts +0 -2
  28. package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
  29. package/lib/main/browser/view/tree-view-widget.js +0 -2
  30. package/lib/main/browser/view/tree-view-widget.js.map +1 -1
  31. package/lib/main/browser/webview/webview.d.ts.map +1 -1
  32. package/lib/main/browser/webview/webview.js.map +1 -1
  33. package/lib/main/electron-browser/webview/electron-webview-widget-factory.d.ts.map +1 -1
  34. package/lib/main/electron-browser/webview/electron-webview-widget-factory.js.map +1 -1
  35. package/lib/plugin/languages/code-action.d.ts +7 -1
  36. package/lib/plugin/languages/code-action.d.ts.map +1 -1
  37. package/lib/plugin/languages/code-action.js +36 -2
  38. package/lib/plugin/languages/code-action.js.map +1 -1
  39. package/lib/plugin/languages.d.ts +2 -0
  40. package/lib/plugin/languages.d.ts.map +1 -1
  41. package/lib/plugin/languages.js +7 -0
  42. package/lib/plugin/languages.js.map +1 -1
  43. package/lib/plugin/node/debug/plugin-debug-adapter-session.d.ts.map +1 -1
  44. package/lib/plugin/node/debug/plugin-debug-adapter-session.js.map +1 -1
  45. package/lib/plugin/node/env-node-ext.d.ts.map +1 -1
  46. package/lib/plugin/node/env-node-ext.js.map +1 -1
  47. package/lib/plugin/plugin-context.d.ts.map +1 -1
  48. package/lib/plugin/plugin-context.js.map +1 -1
  49. package/lib/plugin/quick-open.d.ts.map +1 -1
  50. package/lib/plugin/quick-open.js.map +1 -1
  51. package/lib/plugin/types-impl.d.ts.map +1 -1
  52. package/lib/plugin/types-impl.js.map +1 -1
  53. package/package.json +23 -23
  54. package/src/common/plugin-api-rpc-model.ts +1 -0
  55. package/src/common/plugin-api-rpc.ts +3 -1
  56. package/src/hosted/node-electron/scanner-theia-electron.ts +1 -1
  57. package/src/main/browser/comments/comment-thread-widget.tsx +12 -12
  58. package/src/main/browser/custom-editors/custom-editor-widget.ts +5 -5
  59. package/src/main/browser/debug/plugin-debug-session-factory.ts +22 -22
  60. package/src/main/browser/dialogs/modal-notification.ts +1 -1
  61. package/src/main/browser/languages-main.ts +13 -3
  62. package/src/main/browser/plugin-authentication-service.ts +2 -2
  63. package/src/main/browser/plugin-ext-widget.tsx +1 -1
  64. package/src/main/browser/view/plugin-view-widget.ts +4 -4
  65. package/src/main/browser/view/tree-view-widget.tsx +14 -17
  66. package/src/main/browser/webview/webview.ts +5 -5
  67. package/src/main/electron-browser/webview/electron-webview-widget-factory.ts +2 -2
  68. package/src/plugin/languages/code-action.ts +46 -3
  69. package/src/plugin/languages.ts +9 -0
  70. package/src/plugin/node/debug/plugin-debug-adapter-session.ts +7 -7
  71. package/src/plugin/node/env-node-ext.ts +1 -1
  72. package/src/plugin/plugin-context.ts +4 -4
  73. package/src/plugin/quick-open.ts +13 -11
  74. package/src/plugin/types-impl.ts +8 -8
@@ -43,7 +43,7 @@ export class EnvNodeExtImpl extends EnvExtImpl {
43
43
  /**
44
44
  * override machineID
45
45
  */
46
- get machineId(): string {
46
+ override get machineId(): string {
47
47
  return this.macMachineId;
48
48
  }
49
49
 
@@ -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
  }
@@ -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(readonly quickOpen: QuickOpenExtImpl,
496
- readonly quickOpenMain: QuickOpenMain,
497
- readonly plugin: Plugin,
498
- onDispose: () => void) {
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(readonly quickOpen: QuickOpenExtImpl,
588
- readonly quickOpenMain: QuickOpenMain,
589
- readonly plugin: Plugin,
590
- onDispose: () => void) {
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
 
@@ -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
  }