From 2ddd244249ea0dfd22b8eca66bfc5e20f4aebeb0 Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Thu, 23 Jun 2022 13:09:32 +0200 Subject: [PATCH] Notify LS about build complte after verify. Signed-off-by: Akos Kitta --- .../src/browser/contributions/verify-sketch.ts | 7 +++++-- electron/build/template-package.json | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/arduino-ide-extension/src/browser/contributions/verify-sketch.ts b/arduino-ide-extension/src/browser/contributions/verify-sketch.ts index e3afcf338..b7b284de7 100644 --- a/arduino-ide-extension/src/browser/contributions/verify-sketch.ts +++ b/arduino-ide-extension/src/browser/contributions/verify-sketch.ts @@ -115,7 +115,7 @@ export class VerifySketch extends CoreServiceContribution { const verbose = this.preferences.get('arduino.compile.verbose'); const compilerWarnings = this.preferences.get('arduino.compile.warnings'); this.outputChannelManager.getChannel('Arduino').clear(); - const result = await this.coreService.compile({ + const { buildOutputUri } = await this.coreService.compile({ sketch, board, optimizeForDebug: this.editorMode.compileForDebug, @@ -124,7 +124,10 @@ export class VerifySketch extends CoreServiceContribution { sourceOverride, compilerWarnings, }); - console.log('THE BUILD CACHE IS AT ' + result.buildOutputUri); + this.commandService.executeCommand( + 'arduino.languageserver.notifyBuildDidComplete', + { fqbn, buildOutputUri } + ); this.messageService.info( nls.localize('arduino/sketch/doneCompiling', 'Done compiling.'), { timeout: 3000 } diff --git a/electron/build/template-package.json b/electron/build/template-package.json index caa8087cd..278c86fc2 100644 --- a/electron/build/template-package.json +++ b/electron/build/template-package.json @@ -141,7 +141,7 @@ "theiaPluginsDir": "plugins", "theiaPlugins": { "vscode-builtin-cpp": "https://open-vsx.org/api/vscode/cpp/1.52.1/file/vscode.cpp-1.52.1.vsix", - "vscode-arduino-tools": "https://downloads.arduino.cc/vscode-arduino-tools/vscode-arduino-tools-0.0.2-beta.2.vsix", + "vscode-arduino-tools": "https://github.com/kittaakos/vscode-arduino-tools/raw/arduino/arduino-ide%23714/build-artifacts/vscode-arduino-tools-0.0.2-beta.2.vsix", "vscode-builtin-json": "https://open-vsx.org/api/vscode/json/1.46.1/file/vscode.json-1.46.1.vsix", "vscode-builtin-json-language-features": "https://open-vsx.org/api/vscode/json-language-features/1.46.1/file/vscode.json-language-features-1.46.1.vsix", "cortex-debug": "https://open-vsx.org/api/marus25/cortex-debug/0.3.10/file/marus25.cortex-debug-0.3.10.vsix", diff --git a/package.json b/package.json index f1a8d736a..4cfa9bb2a 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "theiaPluginsDir": "plugins", "theiaPlugins": { "vscode-builtin-cpp": "https://open-vsx.org/api/vscode/cpp/1.52.1/file/vscode.cpp-1.52.1.vsix", - "vscode-arduino-tools": "https://downloads.arduino.cc/vscode-arduino-tools/vscode-arduino-tools-0.0.2-beta.2.vsix", + "vscode-arduino-tools": "https://github.com/kittaakos/vscode-arduino-tools/raw/arduino/arduino-ide%23714/build-artifacts/vscode-arduino-tools-0.0.2-beta.2.vsix", "vscode-builtin-json": "https://open-vsx.org/api/vscode/json/1.46.1/file/vscode.json-1.46.1.vsix", "vscode-builtin-json-language-features": "https://open-vsx.org/api/vscode/json-language-features/1.46.1/file/vscode.json-language-features-1.46.1.vsix", "cortex-debug": "https://open-vsx.org/api/marus25/cortex-debug/0.3.10/file/marus25.cortex-debug-0.3.10.vsix",