fix sketch uri issue.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2020-07-21 18:49:23 +02:00
parent e1d86d0bda
commit 230bacfd01
5 changed files with 31 additions and 14 deletions

View File

@@ -53,8 +53,8 @@ export class VerifySketch extends SketchContribution {
}
async verifySketch(): Promise<void> {
const sketch = await this.currentSketch();
if (!sketch) {
const uri = await this.currentSketchFile();
if (!uri) {
return;
}
try {
@@ -67,7 +67,7 @@ export class VerifySketch extends SketchContribution {
}
const fqbn = await this.boardsDataStore.appendConfigToFqbn(boardsConfig.selectedBoard.fqbn);
await this.coreService.compile({
sketchUri: sketch.uri,
sketchUri: uri,
fqbn,
optimizeForDebug: this.editorMode.compileForDebug
});