@@ -9,7 +9,7 @@ import * as vscode from "vscode";
9
9
10
10
import * as constants from "../common/constants" ;
11
11
import * as util from "../common/util" ;
12
- import * as Logger from "../logger/logger" ;
12
+ import * as logger from "../logger/logger" ;
13
13
14
14
import { DeviceContext } from "../deviceContext" ;
15
15
import { IArduinoSettings } from "./arduinoSettings" ;
@@ -177,7 +177,7 @@ export class ArduinoApp {
177
177
const outputPath = path . resolve ( ArduinoWorkspace . rootPath , dc . output ) ;
178
178
const dirPath = path . dirname ( outputPath ) ;
179
179
if ( ! util . directoryExistsSync ( dirPath ) ) {
180
- Logger . notifyUserError ( "InvalidOutPutPath" , new Error ( constants . messages . INVALID_OUTPUT_PATH + outputPath ) ) ;
180
+ logger . notifyUserError ( "InvalidOutPutPath" , new Error ( constants . messages . INVALID_OUTPUT_PATH + outputPath ) ) ;
181
181
return ;
182
182
}
183
183
@@ -237,7 +237,7 @@ export class ArduinoApp {
237
237
const outputPath = path . resolve ( ArduinoWorkspace . rootPath , output || dc . output ) ;
238
238
const dirPath = path . dirname ( outputPath ) ;
239
239
if ( ! util . directoryExistsSync ( dirPath ) ) {
240
- Logger . notifyUserError ( "InvalidOutPutPath" , new Error ( constants . messages . INVALID_OUTPUT_PATH + outputPath ) ) ;
240
+ logger . notifyUserError ( "InvalidOutPutPath" , new Error ( constants . messages . INVALID_OUTPUT_PATH + outputPath ) ) ;
241
241
return false ;
242
242
}
243
243
@@ -382,7 +382,7 @@ export class ArduinoApp {
382
382
deviceContext = util . tryParseJSON ( fs . readFileSync ( configFilePath , "utf8" ) ) ;
383
383
}
384
384
if ( ! deviceContext ) {
385
- Logger . notifyAndThrowUserError ( "arduinoFileError" , new Error ( constants . messages . ARDUINO_FILE_ERROR ) ) ;
385
+ logger . notifyAndThrowUserError ( "arduinoFileError" , new Error ( constants . messages . ARDUINO_FILE_ERROR ) ) ;
386
386
}
387
387
388
388
deviceContext . configurations = deviceContext . configurations || [ ] ;
@@ -799,7 +799,7 @@ export class ArduinoApp {
799
799
private getProgrammerString ( ) : string {
800
800
const selectProgrammer = this . programmerManager . currentProgrammer ;
801
801
if ( ! selectProgrammer ) {
802
- Logger . notifyUserError ( "getProgrammerString" , new Error ( constants . messages . NO_PROGRAMMMER_SELECTED ) ) ;
802
+ logger . notifyUserError ( "getProgrammerString" , new Error ( constants . messages . NO_PROGRAMMMER_SELECTED ) ) ;
803
803
return ;
804
804
}
805
805
return selectProgrammer ;
@@ -808,7 +808,7 @@ export class ArduinoApp {
808
808
private getBoardBuildString ( ) : string {
809
809
const selectedBoard = this . boardManager . currentBoard ;
810
810
if ( ! selectedBoard ) {
811
- Logger . notifyUserError ( "getBoardBuildString" , new Error ( constants . messages . NO_BOARD_SELECTED ) ) ;
811
+ logger . notifyUserError ( "getBoardBuildString" , new Error ( constants . messages . NO_BOARD_SELECTED ) ) ;
812
812
return ;
813
813
}
814
814
return selectedBoard . getBuildConfig ( ) ;
0 commit comments