From fbd8c2cb5b76a21470b943f66249a522b991e178 Mon Sep 17 00:00:00 2001 From: gioboa Date: Thu, 2 Mar 2023 21:42:20 +0100 Subject: [PATCH] remove default WORKING_PROJECT settings Closes #181 --- src/services/configuration.service.ts | 2 +- src/services/store.service.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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);