Skip to content

Commit a8e5d67

Browse files
Merge pull request #1141 from Yuki61803/master
fix: repair volar windows version and python windows paths
2 parents fb0e319 + 277c922 commit a8e5d67

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,9 @@ def replace_template(arg, project_path=None):
503503
# pyright use `--cancellationReceive` option enable "background analyze" to improve completion performance.
504504
return arg.replace("%FILEHASH%", os.urandom(21).hex())
505505
elif "%USERPROFILE%" in arg:
506-
return arg.replace("%USERPROFILE%", windows_get_env_value("USERPROFILE"))
506+
return arg.replace("%USERPROFILE%", repr(windows_get_env_value("USERPROFILE")).strip("'"))
507507
elif "%TSDK_PATH%" in arg:
508-
return arg.replace("%TSDK_PATH%", get_emacs_func_result("get-user-tsdk-path"))
508+
return arg.replace("%TSDK_PATH%", repr(get_emacs_func_result("get-user-tsdk-path")).strip("'"))
509509
else:
510510
return arg
511511

langserver/volar_windows.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"settings": {},
1010
"initializationOptions": {
1111
"typescript": {
12-
"tsdk": "%USERPROFILE%\\AppData\\Roaming\\npm\\node_modules\\typescript\\lib",
12+
"tsdk": "%USERPROFILE%\\AppData\\Roaming\\npm\\node_modules\\typescript\\lib"
1313
},
1414
"vue": {
1515
"hybridMode": false

0 commit comments

Comments
 (0)