diff --git a/src/services/configuration.service.ts b/src/services/configuration.service.ts index e00512c..11e7259 100644 --- a/src/services/configuration.service.ts +++ b/src/services/configuration.service.ts @@ -51,7 +51,7 @@ export default class ConfigurationService { } // used for get only one setting - public get(entry: string, fallbackValue?: any): any { + public get(entry: string, fallbackValue = ''): any { if (!this.settings) { return fallbackValue; } diff --git a/src/services/store.service.ts b/src/services/store.service.ts index fff8938..3263a44 100644 --- a/src/services/store.service.ts +++ b/src/services/store.service.ts @@ -50,7 +50,6 @@ export default class StoreService { // vscode.window.showWarningMessage("Working project isn't set."); } } catch (err) { - configuration.set(CONFIG.WORKING_PROJECT, ''); setTimeout(() => { statusBar.updateWorkingProjectItem('', true); }, 1000);