1
1
import * as React from '@theia/core/shared/react' ;
2
- import { injectable , inject , postConstruct } from '@theia/core/shared/inversify' ;
2
+ import {
3
+ injectable ,
4
+ inject ,
5
+ postConstruct ,
6
+ } from '@theia/core/shared/inversify' ;
3
7
import { Widget } from '@theia/core/shared/@phosphor/widgets' ;
4
8
import { Message } from '@theia/core/shared/@phosphor/messaging' ;
5
- import { DialogError , ReactWidget } from '@theia/core/lib/browser' ;
6
- import { AbstractDialog , DialogProps } from '@theia/core/lib/browser' ;
9
+ import { DialogError , DialogProps , ReactWidget } from '@theia/core/lib/browser' ;
7
10
import { Settings , SettingsService } from './settings' ;
8
11
import { FileService } from '@theia/filesystem/lib/browser/file-service' ;
9
12
import { WindowService } from '@theia/core/lib/browser/window/window-service' ;
@@ -12,6 +15,7 @@ import { nls } from '@theia/core/lib/common';
12
15
import { SettingsComponent } from './settings-component' ;
13
16
import { AsyncLocalizationProvider } from '@theia/core/lib/common/i18n/localization' ;
14
17
import { AdditionalUrls } from '../../../common/protocol' ;
18
+ import { AbstractDialog } from '../../theia/dialogs/dialogs' ;
15
19
16
20
@injectable ( )
17
21
export class SettingsWidget extends ReactWidget {
@@ -59,6 +63,7 @@ export class SettingsDialog extends AbstractDialog<Promise<Settings>> {
59
63
protected override readonly props : SettingsDialogProps
60
64
) {
61
65
super ( props ) ;
66
+ this . node . classList . add ( 'arduino-settings-dialog-container' ) ;
62
67
this . contentNode . classList . add ( 'arduino-settings-dialog' ) ;
63
68
this . appendCloseButton (
64
69
nls . localize ( 'vscode/issueMainService/cancel' , 'Cancel' )
@@ -73,7 +78,9 @@ export class SettingsDialog extends AbstractDialog<Promise<Settings>> {
73
78
) ;
74
79
}
75
80
76
- protected override async isValid ( settings : Promise < Settings > ) : Promise < DialogError > {
81
+ protected override async isValid (
82
+ settings : Promise < Settings >
83
+ ) : Promise < DialogError > {
77
84
const result = await this . settingsService . validate ( settings ) ;
78
85
if ( typeof result === 'string' ) {
79
86
return result ;
0 commit comments