Skip to content

Commit 849364d

Browse files
author
Akos Kitta
committed
Aligned the editor widget factory's API to Theia.
Signed-off-by: Akos Kitta <[email protected]>
1 parent 251e2e1 commit 849364d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: arduino-ide-extension/src/browser/theia/editor/editor-widget-factory.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { inject, injectable } from '@theia/core/shared/inversify';
22
import URI from '@theia/core/lib/common/uri';
33
import { EditorWidget } from '@theia/editor/lib/browser';
4-
import { LabelProvider } from '@theia/core/lib/browser';
4+
import type { NavigatableWidgetOptions } from '@theia/core/lib/browser';
55
import { EditorWidgetFactory as TheiaEditorWidgetFactory } from '@theia/editor/lib/browser/editor-widget-factory';
66
import {
77
CurrentSketch,
@@ -13,16 +13,16 @@ import { nls } from '@theia/core/lib/common';
1313
@injectable()
1414
export class EditorWidgetFactory extends TheiaEditorWidgetFactory {
1515
@inject(SketchesService)
16-
protected readonly sketchesService: SketchesService;
16+
private readonly sketchesService: SketchesService;
1717

1818
@inject(SketchesServiceClientImpl)
19-
protected readonly sketchesServiceClient: SketchesServiceClientImpl;
19+
private readonly sketchesServiceClient: SketchesServiceClientImpl;
2020

21-
@inject(LabelProvider)
22-
protected override readonly labelProvider: LabelProvider;
23-
24-
protected override async createEditor(uri: URI): Promise<EditorWidget> {
25-
const widget = await super.createEditor(uri);
21+
protected override async createEditor(
22+
uri: URI,
23+
options: NavigatableWidgetOptions
24+
): Promise<EditorWidget> {
25+
const widget = await super.createEditor(uri, options);
2626
return this.maybeUpdateCaption(widget);
2727
}
2828

0 commit comments

Comments
 (0)