Skip to content

Commit

Permalink
Add template %EXE%
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Nov 13, 2024
1 parent f6b63f7 commit c677186
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 98 deletions.
5 changes: 5 additions & 0 deletions core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,11 @@ def replace_template(arg, project_path=None):
return arg.replace("%USERPROFILE%", windows_get_env_value("USERPROFILE"))
elif "%TSDK_PATH%" in arg:
return arg.replace("%TSDK_PATH%", get_emacs_func_result("get-user-tsdk-path"))
elif "%EXE%" in arg:
if get_os_name() == "windows":
return arg.replace("%EXE%", ".cmd")
else:
return arg.replace("%EXE%", "")
else:
return arg

Expand Down
2 changes: 1 addition & 1 deletion langserver/volar.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "volar",
"languageId": "vue",
"command": [
"vue-language-server",
"vue-language-server%EXE%",
"--stdio"
],
"project-files": ["package.json"],
Expand Down
50 changes: 0 additions & 50 deletions langserver/volar_darwin.json

This file was deleted.

47 changes: 0 additions & 47 deletions langserver/volar_windows.json

This file was deleted.

0 comments on commit c677186

Please sign in to comment.