Skip to content

Commit b82d5e4

Browse files
committed
Use sketch directory as url param when a new created sketch gets opened
Signed-off-by: Jan Bicker <jan.bicker@typefox.io>
1 parent 9ae7212 commit b82d5e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-ide-extension/src/browser/sketch-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void loop() {
5151
}
5252
` });
5353
const location = new URL(window.location.href);
54-
location.searchParams.set('sketch', sketchFile.toString());
54+
location.searchParams.set('sketch', sketchDir.toString());
5555
const hash = await this.fileSystem.getFsPath(sketchDir.toString());
5656
if (hash) {
5757
location.hash = hash;

0 commit comments

Comments
 (0)