File tree 1 file changed +8
-8
lines changed
arduino-ide-extension/src/browser/theia/editor
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
import { inject , injectable } from '@theia/core/shared/inversify' ;
2
2
import URI from '@theia/core/lib/common/uri' ;
3
3
import { EditorWidget } from '@theia/editor/lib/browser' ;
4
- import { LabelProvider } from '@theia/core/lib/browser' ;
4
+ import type { NavigatableWidgetOptions } from '@theia/core/lib/browser' ;
5
5
import { EditorWidgetFactory as TheiaEditorWidgetFactory } from '@theia/editor/lib/browser/editor-widget-factory' ;
6
6
import {
7
7
CurrentSketch ,
@@ -13,16 +13,16 @@ import { nls } from '@theia/core/lib/common';
13
13
@injectable ( )
14
14
export class EditorWidgetFactory extends TheiaEditorWidgetFactory {
15
15
@inject ( SketchesService )
16
- protected readonly sketchesService : SketchesService ;
16
+ private readonly sketchesService : SketchesService ;
17
17
18
18
@inject ( SketchesServiceClientImpl )
19
- protected readonly sketchesServiceClient : SketchesServiceClientImpl ;
19
+ private readonly sketchesServiceClient : SketchesServiceClientImpl ;
20
20
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 ) ;
26
26
return this . maybeUpdateCaption ( widget ) ;
27
27
}
28
28
You can’t perform that action at this time.
0 commit comments