Skip to content

Commit 6e62f09

Browse files
author
Akos Kitta
committed
Notify LS about build complte after verify.
Signed-off-by: Akos Kitta <[email protected]>
1 parent e7c2ddc commit 6e62f09

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Diff for: arduino-ide-extension/src/browser/contributions/verify-sketch.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class VerifySketch extends CoreServiceContribution {
115115
const verbose = this.preferences.get('arduino.compile.verbose');
116116
const compilerWarnings = this.preferences.get('arduino.compile.warnings');
117117
this.outputChannelManager.getChannel('Arduino').clear();
118-
const result = await this.coreService.compile({
118+
const { buildOutputUri } = await this.coreService.compile({
119119
sketch,
120120
board,
121121
optimizeForDebug: this.editorMode.compileForDebug,
@@ -124,7 +124,10 @@ export class VerifySketch extends CoreServiceContribution {
124124
sourceOverride,
125125
compilerWarnings,
126126
});
127-
console.log('THE BUILD CACHE IS AT ' + result.buildOutputUri);
127+
this.commandService.executeCommand(
128+
'arduino.languageserver.notifyBuildDidComplete',
129+
{ fqbn, buildOutputUri }
130+
);
128131
this.messageService.info(
129132
nls.localize('arduino/sketch/doneCompiling', 'Done compiling.'),
130133
{ timeout: 3000 }

Diff for: electron/build/template-package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"theiaPluginsDir": "plugins",
142142
"theiaPlugins": {
143143
"vscode-builtin-cpp": "https://open-vsx.org/api/vscode/cpp/1.52.1/file/vscode.cpp-1.52.1.vsix",
144-
"vscode-arduino-tools": "https://downloads.arduino.cc/vscode-arduino-tools/vscode-arduino-tools-0.0.2-beta.2.vsix",
144+
"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",
145145
"vscode-builtin-json": "https://open-vsx.org/api/vscode/json/1.46.1/file/vscode.json-1.46.1.vsix",
146146
"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",
147147
"cortex-debug": "https://open-vsx.org/api/marus25/cortex-debug/0.3.10/file/marus25.cortex-debug-0.3.10.vsix",

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"theiaPluginsDir": "plugins",
7676
"theiaPlugins": {
7777
"vscode-builtin-cpp": "https://open-vsx.org/api/vscode/cpp/1.52.1/file/vscode.cpp-1.52.1.vsix",
78-
"vscode-arduino-tools": "https://downloads.arduino.cc/vscode-arduino-tools/vscode-arduino-tools-0.0.2-beta.2.vsix",
78+
"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",
7979
"vscode-builtin-json": "https://open-vsx.org/api/vscode/json/1.46.1/file/vscode.json-1.46.1.vsix",
8080
"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",
8181
"cortex-debug": "https://open-vsx.org/api/marus25/cortex-debug/0.3.10/file/marus25.cortex-debug-0.3.10.vsix",

0 commit comments

Comments
 (0)