From ae910c3a4e47c66194d76b7c3208a8f5767a316d Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Mon, 14 Oct 2024 23:02:24 -0400 Subject: [PATCH] Fix fullscreen view and analysis cache --- vscode/src/client/analyzerClient.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vscode/src/client/analyzerClient.ts b/vscode/src/client/analyzerClient.ts index 919b990..a3350f0 100644 --- a/vscode/src/client/analyzerClient.ts +++ b/vscode/src/client/analyzerClient.ts @@ -39,8 +39,13 @@ export class AnalyzerClient { return; } }); + const env = process.env; + + delete env.JAVA_HOME; + this.analyzerServer = spawn(this.getAnalyzerPath(), this.getAnalyzerArgs(), { cwd: this.extContext!.extensionPath, + env, }); this.analyzerServer.stderr.on("data", (data) => { this.outputChannel.appendLine(`${data.toString()}`); @@ -307,7 +312,9 @@ export class AnalyzerClient { // New method to populate webview with stored rulesets public populateWebviewWithStoredRulesets(webview: vscode.Webview): void { const storedRulesets = this.getStoredRulesets(); + console.log("Stored rulesets: ", storedRulesets); if (storedRulesets) { + console.log("senging message to webview"); webview.postMessage({ type: "loadStoredAnalysis", data: storedRulesets,