@theia/plugin-ext 1.23.0-next.33 → 1.23.0-next.34
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/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/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/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/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/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/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
|
@@ -118,7 +118,7 @@ export class PluginTree extends TreeImpl {
|
|
|
118
118
|
return this._isEmpty;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
protected async resolveChildren(parent: CompositeTreeNode): Promise<TreeNode[]> {
|
|
121
|
+
protected override async resolveChildren(parent: CompositeTreeNode): Promise<TreeNode[]> {
|
|
122
122
|
if (!this._proxy) {
|
|
123
123
|
return super.resolveChildren(parent);
|
|
124
124
|
}
|
|
@@ -204,7 +204,7 @@ export class PluginTree extends TreeImpl {
|
|
|
204
204
|
export class PluginTreeModel extends TreeModelImpl {
|
|
205
205
|
|
|
206
206
|
@inject(PluginTree)
|
|
207
|
-
protected readonly tree: PluginTree;
|
|
207
|
+
protected override readonly tree: PluginTree;
|
|
208
208
|
|
|
209
209
|
set proxy(proxy: TreeViewsExt | undefined) {
|
|
210
210
|
this.tree.proxy = proxy;
|
|
@@ -242,7 +242,7 @@ export class TreeViewWidget extends TreeViewWelcomeWidget {
|
|
|
242
242
|
readonly identifier: TreeViewWidgetIdentifier;
|
|
243
243
|
|
|
244
244
|
@inject(PluginTreeModel)
|
|
245
|
-
readonly model: PluginTreeModel;
|
|
245
|
+
override readonly model: PluginTreeModel;
|
|
246
246
|
|
|
247
247
|
@inject(ContextKeyService)
|
|
248
248
|
protected readonly contextKeyService: ContextKeyService;
|
|
@@ -250,11 +250,8 @@ export class TreeViewWidget extends TreeViewWelcomeWidget {
|
|
|
250
250
|
@inject(TooltipService)
|
|
251
251
|
protected readonly tooltipService: TooltipService;
|
|
252
252
|
|
|
253
|
-
protected readonly onDidChangeVisibilityEmitter = new Emitter<boolean>();
|
|
254
|
-
readonly onDidChangeVisibility = this.onDidChangeVisibilityEmitter.event;
|
|
255
|
-
|
|
256
253
|
@postConstruct()
|
|
257
|
-
protected init(): void {
|
|
254
|
+
protected override init(): void {
|
|
258
255
|
super.init();
|
|
259
256
|
this.id = this.identifier.id;
|
|
260
257
|
this.addClass('theia-tree-view');
|
|
@@ -265,7 +262,7 @@ export class TreeViewWidget extends TreeViewWelcomeWidget {
|
|
|
265
262
|
this.toDispose.push(this.onDidChangeVisibilityEmitter);
|
|
266
263
|
}
|
|
267
264
|
|
|
268
|
-
protected renderIcon(node: TreeNode, props: NodeProps): React.ReactNode {
|
|
265
|
+
protected override renderIcon(node: TreeNode, props: NodeProps): React.ReactNode {
|
|
269
266
|
const icon = this.toNodeIcon(node);
|
|
270
267
|
if (icon) {
|
|
271
268
|
return <div className={icon + ' theia-tree-view-icon'}></div>;
|
|
@@ -273,7 +270,7 @@ export class TreeViewWidget extends TreeViewWelcomeWidget {
|
|
|
273
270
|
return undefined;
|
|
274
271
|
}
|
|
275
272
|
|
|
276
|
-
protected renderCaption(node: TreeViewNode, props: NodeProps): React.ReactNode {
|
|
273
|
+
protected override renderCaption(node: TreeViewNode, props: NodeProps): React.ReactNode {
|
|
277
274
|
const classes = [TREE_NODE_SEGMENT_CLASS];
|
|
278
275
|
if (!this.hasTrailingSuffixes(node)) {
|
|
279
276
|
classes.push(TREE_NODE_SEGMENT_GROW_CLASS);
|
|
@@ -325,7 +322,7 @@ export class TreeViewWidget extends TreeViewWelcomeWidget {
|
|
|
325
322
|
return React.createElement('div', attrs, ...children);
|
|
326
323
|
}
|
|
327
324
|
|
|
328
|
-
protected renderTailDecorations(node: TreeViewNode, props: NodeProps): React.ReactNode {
|
|
325
|
+
protected override renderTailDecorations(node: TreeViewNode, props: NodeProps): React.ReactNode {
|
|
329
326
|
return this.contextKeys.with({ view: this.id, viewItem: node.contextValue }, () => {
|
|
330
327
|
const menu = this.menus.getMenu(VIEW_ITEM_INLINE_MENU);
|
|
331
328
|
const arg = this.toTreeViewSelection(node);
|
|
@@ -352,30 +349,30 @@ export class TreeViewWidget extends TreeViewWelcomeWidget {
|
|
|
352
349
|
}} />;
|
|
353
350
|
}
|
|
354
351
|
|
|
355
|
-
protected toContextMenuArgs(node: SelectableTreeNode): [TreeViewSelection] {
|
|
352
|
+
protected override toContextMenuArgs(node: SelectableTreeNode): [TreeViewSelection] {
|
|
356
353
|
return [this.toTreeViewSelection(node)];
|
|
357
354
|
}
|
|
358
355
|
|
|
359
|
-
setFlag(flag: Widget.Flag): void {
|
|
356
|
+
override setFlag(flag: Widget.Flag): void {
|
|
360
357
|
super.setFlag(flag);
|
|
361
358
|
if (flag === Widget.Flag.IsVisible) {
|
|
362
359
|
this.onDidChangeVisibilityEmitter.fire(this.isVisible);
|
|
363
360
|
}
|
|
364
361
|
}
|
|
365
362
|
|
|
366
|
-
clearFlag(flag: Widget.Flag): void {
|
|
363
|
+
override clearFlag(flag: Widget.Flag): void {
|
|
367
364
|
super.clearFlag(flag);
|
|
368
365
|
if (flag === Widget.Flag.IsVisible) {
|
|
369
366
|
this.onDidChangeVisibilityEmitter.fire(this.isVisible);
|
|
370
367
|
}
|
|
371
368
|
}
|
|
372
369
|
|
|
373
|
-
handleEnter(event: KeyboardEvent): void {
|
|
370
|
+
override handleEnter(event: KeyboardEvent): void {
|
|
374
371
|
super.handleEnter(event);
|
|
375
372
|
this.tryExecuteCommand();
|
|
376
373
|
}
|
|
377
374
|
|
|
378
|
-
handleClickEvent(node: TreeNode, event: React.MouseEvent<HTMLElement>): void {
|
|
375
|
+
override handleClickEvent(node: TreeNode, event: React.MouseEvent<HTMLElement>): void {
|
|
379
376
|
super.handleClickEvent(node, event);
|
|
380
377
|
// If clicked on item (not collapsable icon) - execute command or toggle expansion if item has no command
|
|
381
378
|
const commandMap = this.findCommands(node);
|
|
@@ -418,7 +415,7 @@ export class TreeViewWidget extends TreeViewWelcomeWidget {
|
|
|
418
415
|
this.update();
|
|
419
416
|
}
|
|
420
417
|
|
|
421
|
-
protected render(): React.ReactNode {
|
|
418
|
+
protected override render(): React.ReactNode {
|
|
422
419
|
const node = React.createElement('div', this.createContainerAttributes(), this.renderSearchInfo(), this.renderTree(this.model));
|
|
423
420
|
this.tooltipService.update();
|
|
424
421
|
return node;
|
|
@@ -431,7 +428,7 @@ export class TreeViewWidget extends TreeViewWelcomeWidget {
|
|
|
431
428
|
return undefined;
|
|
432
429
|
}
|
|
433
430
|
|
|
434
|
-
shouldShowWelcomeView(): boolean {
|
|
431
|
+
override shouldShowWelcomeView(): boolean {
|
|
435
432
|
return (this.model.proxy === undefined || this.model.isTreeEmpty) && this.message === undefined;
|
|
436
433
|
}
|
|
437
434
|
}
|
|
@@ -198,14 +198,14 @@ export class WebviewWidget extends BaseWidget implements StatefulWidget {
|
|
|
198
198
|
}));
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
protected onBeforeAttach(msg: Message): void {
|
|
201
|
+
protected override onBeforeAttach(msg: Message): void {
|
|
202
202
|
super.onBeforeAttach(msg);
|
|
203
203
|
this.doShow();
|
|
204
204
|
// iframe has to be reloaded when moved to another DOM element
|
|
205
205
|
this.toDisposeOnDetach.push(Disposable.create(() => this.forceHide()));
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
protected onAfterAttach(msg: Message): void {
|
|
208
|
+
protected override onAfterAttach(msg: Message): void {
|
|
209
209
|
super.onAfterAttach(msg);
|
|
210
210
|
this.addEventListener(this.node, 'focus', () => {
|
|
211
211
|
if (this.element) {
|
|
@@ -214,12 +214,12 @@ export class WebviewWidget extends BaseWidget implements StatefulWidget {
|
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
protected onBeforeShow(msg: Message): void {
|
|
217
|
+
protected override onBeforeShow(msg: Message): void {
|
|
218
218
|
super.onBeforeShow(msg);
|
|
219
219
|
this.doShow();
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
protected onAfterHide(msg: Message): void {
|
|
222
|
+
protected override onAfterHide(msg: Message): void {
|
|
223
223
|
super.onAfterHide(msg);
|
|
224
224
|
this.doHide();
|
|
225
225
|
}
|
|
@@ -410,7 +410,7 @@ export class WebviewWidget extends BaseWidget implements StatefulWidget {
|
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
protected onActivateRequest(msg: Message): void {
|
|
413
|
+
protected override onActivateRequest(msg: Message): void {
|
|
414
414
|
super.onActivateRequest(msg);
|
|
415
415
|
this.node.focus();
|
|
416
416
|
}
|
|
@@ -23,7 +23,7 @@ import { CustomEditorWidget } from '../../browser/custom-editors/custom-editor-w
|
|
|
23
23
|
|
|
24
24
|
export class ElectronWebviewWidgetFactory extends WebviewWidgetFactory {
|
|
25
25
|
|
|
26
|
-
async createWidget(identifier: WebviewWidgetIdentifier): Promise<WebviewWidget> {
|
|
26
|
+
override async createWidget(identifier: WebviewWidgetIdentifier): Promise<WebviewWidget> {
|
|
27
27
|
const widget = await super.createWidget(identifier);
|
|
28
28
|
await this.attachElectronSecurityCookie(widget.externalEndpoint);
|
|
29
29
|
return widget;
|
|
@@ -47,7 +47,7 @@ export class ElectronWebviewWidgetFactory extends WebviewWidgetFactory {
|
|
|
47
47
|
|
|
48
48
|
export class ElectronCustomEditorWidgetFactory extends CustomEditorWidgetFactory {
|
|
49
49
|
|
|
50
|
-
async createWidget(identifier: WebviewWidgetIdentifier): Promise<CustomEditorWidget> {
|
|
50
|
+
override async createWidget(identifier: WebviewWidgetIdentifier): Promise<CustomEditorWidget> {
|
|
51
51
|
const widget = await super.createWidget(identifier);
|
|
52
52
|
await this.attachElectronSecurityCookie(widget.externalEndpoint);
|
|
53
53
|
return widget;
|
|
@@ -30,7 +30,7 @@ export class PluginDebugAdapterSession extends DebugAdapterSessionImpl {
|
|
|
30
30
|
readonly configuration: theia.DebugConfiguration;
|
|
31
31
|
|
|
32
32
|
constructor(
|
|
33
|
-
readonly debugAdapter: DebugAdapter,
|
|
33
|
+
override readonly debugAdapter: DebugAdapter,
|
|
34
34
|
protected readonly tracker: theia.DebugAdapterTracker,
|
|
35
35
|
protected readonly theiaSession: theia.DebugSession) {
|
|
36
36
|
|
|
@@ -41,14 +41,14 @@ export class PluginDebugAdapterSession extends DebugAdapterSessionImpl {
|
|
|
41
41
|
this.configuration = theiaSession.configuration;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
async start(channel: Channel): Promise<void> {
|
|
44
|
+
override async start(channel: Channel): Promise<void> {
|
|
45
45
|
if (this.tracker.onWillStartSession) {
|
|
46
46
|
this.tracker.onWillStartSession();
|
|
47
47
|
}
|
|
48
48
|
await super.start(channel);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
async stop(): Promise<void> {
|
|
51
|
+
override async stop(): Promise<void> {
|
|
52
52
|
if (this.tracker.onWillStopSession) {
|
|
53
53
|
this.tracker.onWillStopSession();
|
|
54
54
|
}
|
|
@@ -59,14 +59,14 @@ export class PluginDebugAdapterSession extends DebugAdapterSessionImpl {
|
|
|
59
59
|
return this.theiaSession.customRequest(command, args);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
protected onDebugAdapterError(error: Error): void {
|
|
62
|
+
protected override onDebugAdapterError(error: Error): void {
|
|
63
63
|
if (this.tracker.onError) {
|
|
64
64
|
this.tracker.onError(error);
|
|
65
65
|
}
|
|
66
66
|
super.onDebugAdapterError(error);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
protected send(message: string): void {
|
|
69
|
+
protected override send(message: string): void {
|
|
70
70
|
try {
|
|
71
71
|
super.send(message);
|
|
72
72
|
} finally {
|
|
@@ -76,14 +76,14 @@ export class PluginDebugAdapterSession extends DebugAdapterSessionImpl {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
protected write(message: string): void {
|
|
79
|
+
protected override write(message: string): void {
|
|
80
80
|
if (this.tracker.onWillReceiveMessage) {
|
|
81
81
|
this.tracker.onWillReceiveMessage(JSON.parse(message));
|
|
82
82
|
}
|
|
83
83
|
super.write(message);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
protected onDebugAdapterExit(): void {
|
|
86
|
+
protected override onDebugAdapterExit(): void {
|
|
87
87
|
if (this.tracker.onExit) {
|
|
88
88
|
this.tracker.onExit(undefined, undefined);
|
|
89
89
|
}
|
|
@@ -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
|
}
|