From b82d5e4f0be9997377dbc60f6e21b7cb2242acce Mon Sep 17 00:00:00 2001 From: Jan Bicker Date: Wed, 28 Aug 2019 08:13:11 +0000 Subject: [PATCH] Use sketch directory as url param when a new created sketch gets opened Signed-off-by: Jan Bicker --- arduino-ide-extension/src/browser/sketch-factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arduino-ide-extension/src/browser/sketch-factory.ts b/arduino-ide-extension/src/browser/sketch-factory.ts index 364c0d6b..2a50aa61 100644 --- a/arduino-ide-extension/src/browser/sketch-factory.ts +++ b/arduino-ide-extension/src/browser/sketch-factory.ts @@ -51,7 +51,7 @@ void loop() { } ` }); const location = new URL(window.location.href); - location.searchParams.set('sketch', sketchFile.toString()); + location.searchParams.set('sketch', sketchDir.toString()); const hash = await this.fileSystem.getFsPath(sketchDir.toString()); if (hash) { location.hash = hash;