We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
await
1 parent a990936 commit f36d261Copy full SHA for f36d261
arduino-ide-extension/src/node/sketches-service-impl.ts
@@ -195,7 +195,12 @@ export class SketchesServiceImpl implements SketchesService {
195
}
196
197
});
198
- await watcher.start();
+
199
+ // TODO: no `await` for some reason this blocks the workspace root initialization on Windows inside a bundled electron app.
200
+ watcher.start()
201
+ .then(() => console.log(`Initialized NSFW in sketchbook: '${sketchbookPath}. Watching for sketch changes.`))
202
+ .catch(err => console.error(`Failed to initialize NSFW in sketchbook '${sketchbookPath}'. Cannot track sketch changes.`, err));
203
204
deferred.resolve(sketches);
205
this.sketchbooks.set(sketchbookPath, sketches);
206
return sketches;
0 commit comments