Skip to content

Commit 47bd248

Browse files
committed
Fix default project location loading
Signed-off-by: paulober <[email protected]>
1 parent 93a1221 commit 47bd248

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/webview/newMicroPythonProjectPanel.mts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,10 @@ print("Finished.")\r\n`;
557557
: "/home/user/MyProject"
558558
}" disabled value="${
559559
// support folder names with backslashes on linux and macOS
560-
this._projectRoot !== undefined && process.platform === "win32"
561-
? this._projectRoot.fsPath.replaceAll("\\", "/")
560+
this._projectRoot !== undefined
561+
? process.platform === "win32"
562+
? this._projectRoot.fsPath.replaceAll("\\", "/")
563+
: this._projectRoot.fsPath
562564
: ""
563565
}"/>
564566
</div>

0 commit comments

Comments
 (0)