Skip to content

Commit

Permalink
Remove %EXE% template.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Nov 13, 2024
1 parent c677186 commit fece34b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 6 deletions.
5 changes: 0 additions & 5 deletions core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,6 @@ 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%EXE%",
"vue-language-server",
"--stdio"
],
"project-files": ["package.json"],
Expand Down
51 changes: 51 additions & 0 deletions langserver/volar_windows.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "volar",
"languageId": "vue",
"command": [
"vue-language-server.cmd",
"--stdio"
],
"project-files": ["package.json"],
"settings": {},
"initializationOptions": {
"typescript": {
"tsdk": "%USERPROFILE%\\AppData\\Roaming\\npm\\node_modules\\typescript\\lib",
},
"vue": {
"hybridMode": false
},
"languageFeatures": {
"references": true,
"implementation": true,
"definition": true,
"typeDefinition": true,
"callHierarchy": true,
"hover": true,
"rename": true,
"renameFileRefactoring": true,
"signatureHelp": true,
"codeAction": true,
"workspaceSymbol": true,
"completion": {
"defaultTagNameCase": "",
"defaultAttrNameCase": "",
"getDocumentNameCasesRequest": false,
"getDocumentSelectionRequest": false
},
"schemaRequestService": {
"getDocumentContentRequest": false
}
},
"documentFeatures": {
"selectionRange": true,
"foldingRange": true,
"linkedEditingRange": true,
"documentSymbol": true,
"documentColor": true,
"documentFormatting": {
"defaultPrintWidth": 100,
"getDocumentPrintWidthRequest": false
}
}
}
}

0 comments on commit fece34b

Please sign in to comment.