Skip to content

Commit fece34b

Browse files
Remove %EXE% template.
1 parent c677186 commit fece34b

File tree

3 files changed

+52
-6
lines changed

3 files changed

+52
-6
lines changed

core/utils.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -477,11 +477,6 @@ def replace_template(arg, project_path=None):
477477
return arg.replace("%USERPROFILE%", windows_get_env_value("USERPROFILE"))
478478
elif "%TSDK_PATH%" in arg:
479479
return arg.replace("%TSDK_PATH%", get_emacs_func_result("get-user-tsdk-path"))
480-
elif "%EXE%" in arg:
481-
if get_os_name() == "windows":
482-
return arg.replace("%EXE%", ".cmd")
483-
else:
484-
return arg.replace("%EXE%", "")
485480
else:
486481
return arg
487482

langserver/volar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "volar",
33
"languageId": "vue",
44
"command": [
5-
"vue-language-server%EXE%",
5+
"vue-language-server",
66
"--stdio"
77
],
88
"project-files": ["package.json"],

langserver/volar_windows.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"name": "volar",
3+
"languageId": "vue",
4+
"command": [
5+
"vue-language-server.cmd",
6+
"--stdio"
7+
],
8+
"project-files": ["package.json"],
9+
"settings": {},
10+
"initializationOptions": {
11+
"typescript": {
12+
"tsdk": "%USERPROFILE%\\AppData\\Roaming\\npm\\node_modules\\typescript\\lib",
13+
},
14+
"vue": {
15+
"hybridMode": false
16+
},
17+
"languageFeatures": {
18+
"references": true,
19+
"implementation": true,
20+
"definition": true,
21+
"typeDefinition": true,
22+
"callHierarchy": true,
23+
"hover": true,
24+
"rename": true,
25+
"renameFileRefactoring": true,
26+
"signatureHelp": true,
27+
"codeAction": true,
28+
"workspaceSymbol": true,
29+
"completion": {
30+
"defaultTagNameCase": "",
31+
"defaultAttrNameCase": "",
32+
"getDocumentNameCasesRequest": false,
33+
"getDocumentSelectionRequest": false
34+
},
35+
"schemaRequestService": {
36+
"getDocumentContentRequest": false
37+
}
38+
},
39+
"documentFeatures": {
40+
"selectionRange": true,
41+
"foldingRange": true,
42+
"linkedEditingRange": true,
43+
"documentSymbol": true,
44+
"documentColor": true,
45+
"documentFormatting": {
46+
"defaultPrintWidth": 100,
47+
"getDocumentPrintWidthRequest": false
48+
}
49+
}
50+
}
51+
}

0 commit comments

Comments
 (0)