File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ import VersionBundlesLoader, {
50
50
type VersionBundle ,
51
51
} from "../utils/versionBundles.mjs" ;
52
52
import which from "which" ;
53
- import { homedir } from "os" ;
53
+ import { homedir , platform } from "os" ;
54
54
import { readFile } from "fs/promises" ;
55
55
import { pyenvInstallPython , setupPyenv } from "../utils/pyenvUtil.mjs" ;
56
56
import { existsSync , readdirSync } from "fs" ;
@@ -1354,6 +1354,7 @@ export class NewProjectPanel {
1354
1354
1355
1355
// Restrict the webview to only load specific scripts
1356
1356
const nonce = getNonce ( ) ;
1357
+ const isWindows = process . platform === "win32" ;
1357
1358
1358
1359
return `<!DOCTYPE html>
1359
1360
<html lang="en">
@@ -1570,8 +1571,12 @@ export class NewProjectPanel {
1570
1571
</span>
1571
1572
<input type="text" id="inp-project-location" class="w-full bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-r-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-gray-500 dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="${
1572
1573
! this . _isProjectImport
1573
- ? "C:\\MyProject"
1574
- : "C:\\Project\\To\\Import"
1574
+ ? isWindows
1575
+ ? "C:\\MyProject"
1576
+ : "/home/user/MyProject"
1577
+ : isWindows
1578
+ ? "C:\\Project\\To\\Import"
1579
+ : "/home/user/Project/To/Import"
1575
1580
} " disabled value="${
1576
1581
// support folder names with backslashes on linux and macOS
1577
1582
this . _projectRoot !== undefined && process . platform === "win32"
You can’t perform that action at this time.
0 commit comments