From 1f26dcc345c20c25d78cda3c0e193a3adeab306d Mon Sep 17 00:00:00 2001 From: paulober <44974737+paulober@users.noreply.github.com> Date: Mon, 19 Aug 2024 18:05:52 +0100 Subject: [PATCH] Fix #44, Replace project location placeholders with platform dependent hints Signed-off-by: paulober <44974737+paulober@users.noreply.github.com> --- src/webview/newProjectPanel.mts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/webview/newProjectPanel.mts b/src/webview/newProjectPanel.mts index 27e2939b..ecab8a14 100644 --- a/src/webview/newProjectPanel.mts +++ b/src/webview/newProjectPanel.mts @@ -50,7 +50,7 @@ import VersionBundlesLoader, { type VersionBundle, } from "../utils/versionBundles.mjs"; import which from "which"; -import { homedir } from "os"; +import { homedir, platform } from "os"; import { readFile } from "fs/promises"; import { pyenvInstallPython, setupPyenv } from "../utils/pyenvUtil.mjs"; import { existsSync, readdirSync } from "fs"; @@ -1354,6 +1354,7 @@ export class NewProjectPanel { // Restrict the webview to only load specific scripts const nonce = getNonce(); + const isWindows = process.platform === "win32"; return ` @@ -1570,8 +1571,12 @@ export class NewProjectPanel {