File tree 2 files changed +5
-5
lines changed
arduino-ide-extension/src
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
longestPrefixMatch ,
14
14
reconcileSettings ,
15
15
} from './monitor-settings-utils' ;
16
+ import { ILogger } from '@theia/core' ;
16
17
17
18
const MONITOR_SETTINGS_FILE = 'pluggable-monitor-settings.json' ;
18
19
@@ -21,6 +22,9 @@ export class MonitorSettingsProviderImpl implements MonitorSettingsProvider {
21
22
@inject ( EnvVariablesServer )
22
23
protected readonly envVariablesServer : EnvVariablesServer ;
23
24
25
+ @inject ( ILogger )
26
+ protected logger : ILogger ;
27
+
24
28
// deferred used to guarantee file operations are performed after the service is initialized
25
29
protected ready = new Deferred < void > ( ) ;
26
30
@@ -43,8 +47,6 @@ export class MonitorSettingsProviderImpl implements MonitorSettingsProvider {
43
47
// read existing settings
44
48
await this . readSettingsFromFS ( ) ;
45
49
46
- console . log ( this . monitorSettings ) ;
47
-
48
50
// init is done, resolve the deferred and unblock any call that was waiting for it
49
51
this . ready . resolve ( ) ;
50
52
}
@@ -105,7 +107,7 @@ export class MonitorSettingsProviderImpl implements MonitorSettingsProvider {
105
107
try {
106
108
this . monitorSettings = JSON . parse ( rawJson ) ;
107
109
} catch ( error ) {
108
- console . error (
110
+ this . logger . error (
109
111
'Could not parse the pluggable monitor settings file. Using empty file.'
110
112
) ;
111
113
this . monitorSettings = { } ;
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ import { PluggableMonitorSettings } from '../../node/monitor-settings/monitor-se
7
7
8
8
type DeepWriteable < T > = { - readonly [ P in keyof T ] : DeepWriteable < T [ P ] > } ;
9
9
10
- // use(require('chai-string'));
11
-
12
10
describe ( 'longestPrefixMatch' , ( ) => {
13
11
const settings = {
14
12
'arduino:avr:uno-port1-protocol1' : {
You can’t perform that action at this time.
0 commit comments