From 8a32b5db2cf0633ff0381ac7c0e9e7f0653ee549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Bene=C5=A1?= Date: Tue, 17 Sep 2024 13:49:05 +0200 Subject: [PATCH] Fix spurious 'Effekt is not installed' message when refusing to update --- src/effektManager.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/effektManager.ts b/src/effektManager.ts index f5e24fb..b8f00a3 100644 --- a/src/effektManager.ts +++ b/src/effektManager.ts @@ -327,7 +327,7 @@ export class EffektManager { return this.installOrUpdateEffekt(version, action); } this.updateStatusBar(); - return ''; + return this.effektVersion || ''; } /** @@ -376,6 +376,8 @@ export class EffektManager { return true; } catch (error) { + this.logMessage("ERROR", `When checking Java version got: ${error}`) + this.showErrorWithLogs( "Java (JRE) is required to run Effekt. " + "Please install Java, then restart VSCode."