@@ -15,7 +15,7 @@ import { WebSocketProvider } from './web-socket/web-socket-provider';
15
15
import { Port as gRPCPort } from 'arduino-ide-extension/src/node/cli-protocol/cc/arduino/cli/commands/v1/port_pb' ;
16
16
import WebSocketProviderImpl from './web-socket/web-socket-provider-impl' ;
17
17
import {
18
- MonitorSettings ,
18
+ PluggableMonitorSettings ,
19
19
MonitorSettingsProvider ,
20
20
} from './monitor-settings/monitor-settings-provider' ;
21
21
@@ -28,7 +28,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
28
28
29
29
// Settings used by the currently running pluggable monitor.
30
30
// They can be freely modified while running.
31
- protected settings : MonitorSettings ;
31
+ protected settings : PluggableMonitorSettings ;
32
32
33
33
// List of messages received from the running pluggable monitor.
34
34
// These are flushed from time to time to the frontend.
@@ -279,7 +279,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
279
279
*
280
280
* @returns map of current monitor settings
281
281
*/
282
- currentSettings ( ) : MonitorSettings {
282
+ currentSettings ( ) : PluggableMonitorSettings {
283
283
return this . settings ;
284
284
}
285
285
@@ -294,7 +294,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
294
294
private async portMonitorSettings (
295
295
protocol : string ,
296
296
fqbn : string
297
- ) : Promise < MonitorSettings > {
297
+ ) : Promise < PluggableMonitorSettings > {
298
298
await this . coreClientProvider . initialized ;
299
299
const coreClient = await this . coreClient ( ) ;
300
300
const { client, instance } = coreClient ;
@@ -314,7 +314,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
314
314
}
315
315
) ;
316
316
317
- const settings : MonitorSettings = { } ;
317
+ const settings : PluggableMonitorSettings = { } ;
318
318
for ( const iterator of res . getSettingsList ( ) ) {
319
319
settings [ iterator . getSettingId ( ) ] = {
320
320
id : iterator . getSettingId ( ) ,
@@ -335,7 +335,7 @@ export class MonitorService extends CoreClientAware implements Disposable {
335
335
* @param settings map of monitor settings to change
336
336
* @returns a status to verify settings have been sent.
337
337
*/
338
- async changeSettings ( settings : MonitorSettings ) : Promise < Status > {
338
+ async changeSettings ( settings : PluggableMonitorSettings ) : Promise < Status > {
339
339
const config = new MonitorPortConfiguration ( ) ;
340
340
for ( const id in settings ) {
341
341
const s = new MonitorPortSetting ( ) ;
@@ -384,7 +384,9 @@ export class MonitorService extends CoreClientAware implements Disposable {
384
384
this . send ( message . data ) ;
385
385
break ;
386
386
case Monitor . Command . CHANGE_SETTINGS :
387
- const settings : MonitorSettings = JSON . parse ( message . data ) ;
387
+ const settings : PluggableMonitorSettings = JSON . parse (
388
+ message . data
389
+ ) ;
388
390
this . changeSettings ( settings ) ;
389
391
break ;
390
392
}
0 commit comments