From fece34b8d9572aab930b3bcb3bbb904b3d9c8e08 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Wed, 13 Nov 2024 21:48:00 +0800 Subject: [PATCH] Remove %EXE% template. --- core/utils.py | 5 ---- langserver/volar.json | 2 +- langserver/volar_windows.json | 51 +++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 6 deletions(-) create mode 100644 langserver/volar_windows.json diff --git a/core/utils.py b/core/utils.py index d0b8ed9588..2186f7b0c7 100755 --- a/core/utils.py +++ b/core/utils.py @@ -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 diff --git a/langserver/volar.json b/langserver/volar.json index fdb0350419..e703b603e6 100644 --- a/langserver/volar.json +++ b/langserver/volar.json @@ -2,7 +2,7 @@ "name": "volar", "languageId": "vue", "command": [ - "vue-language-server%EXE%", + "vue-language-server", "--stdio" ], "project-files": ["package.json"], diff --git a/langserver/volar_windows.json b/langserver/volar_windows.json new file mode 100644 index 0000000000..4eef804ca0 --- /dev/null +++ b/langserver/volar_windows.json @@ -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 + } + } + } +}