From 770e0b592a16823d14625ad9b34db1398cb9be36 Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Mon, 1 Feb 2021 12:19:59 +0100 Subject: [PATCH] Log sketchbook watch. Signed-off-by: Akos Kitta --- arduino-ide-extension/src/node/sketches-service-impl.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arduino-ide-extension/src/node/sketches-service-impl.ts b/arduino-ide-extension/src/node/sketches-service-impl.ts index 2e8266cb..30c510ca 100644 --- a/arduino-ide-extension/src/node/sketches-service-impl.ts +++ b/arduino-ide-extension/src/node/sketches-service-impl.ts @@ -197,9 +197,10 @@ export class SketchesServiceImpl implements SketchesService { }); // TODO: no `await` for some reason this blocks the workspace root initialization on Windows inside a bundled electron app. + console.log(`Starting to watch sketchbook at '${sketchbookPath}'.`); watcher.start() - .then(() => console.log(`Initialized NSFW in sketchbook: '${sketchbookPath}. Watching for sketch changes.`)) - .catch(err => console.error(`Failed to initialize NSFW in sketchbook '${sketchbookPath}'. Cannot track sketch changes.`, err)); + .then(() => console.log(`Initialized watcher in sketchbook: '${sketchbookPath}. Watching for sketch changes.`)) + .catch(err => console.error(`Failed to initialize watcher in sketchbook '${sketchbookPath}'. Cannot track sketch changes.`, err)); deferred.resolve(sketches); this.sketchbooks.set(sketchbookPath, sketches);