From 00944d495e2d319eb46b917953e51cc54fe6ae41 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 19 Dec 2024 17:25:38 +0400 Subject: [PATCH] add vscode-vue-js-language-template for windows --- .../vscode-vue-js-language-server/README.md | 19 +++++++++ .../clientSettings.json | 1 + .../initializationOptions.json | 8 ++++ .../settings.json | 1 + .../template.json | 42 +++++++++++++++++++ 5 files changed, 71 insertions(+) create mode 100644 src/main/resources/templates/vscode-vue-js-language-server/README.md create mode 100644 src/main/resources/templates/vscode-vue-js-language-server/clientSettings.json create mode 100644 src/main/resources/templates/vscode-vue-js-language-server/initializationOptions.json create mode 100644 src/main/resources/templates/vscode-vue-js-language-server/settings.json create mode 100644 src/main/resources/templates/vscode-vue-js-language-server/template.json diff --git a/src/main/resources/templates/vscode-vue-js-language-server/README.md b/src/main/resources/templates/vscode-vue-js-language-server/README.md new file mode 100644 index 000000000..551662820 --- /dev/null +++ b/src/main/resources/templates/vscode-vue-js-language-server/README.md @@ -0,0 +1,19 @@ +You can use [Vue.js Language Server](https://github.com/vuejs/language-tools/tree/master/packages/language-server) by following these instructions: + * [Install Node.js](https://nodejs.org/en/download) + * [Download and install Visual Studio Code](https://code.visualstudio.com/download) + * [Install plugin "Vue - Official"](https://marketplace.visualstudio.com/items?itemName=Vue.volar) + +WARN: in path, set ${user.name} to correct name! + +On windows, see LSP here: + > LSP: "C:/Users/${user.name}/.vscode/extensions/vue.volar-2.1.10/dist/server.js" + +If VS Code install local, see `tsdk` here: + > "C:/Users/${user.name}/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib" + +Else VS Code install to `C:/Program Files`, see `tsdk` here: + > Else, here: "C:/Program Files/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib" + +You can use TextMate, see also: [Vue.js highlight](https://github.com/vuejs/vue-syntax-highlight) + > File -> Settings -> Editor -> TextMate Bundles + > and press "+" `Select Path` to folder with highlight \ No newline at end of file diff --git a/src/main/resources/templates/vscode-vue-js-language-server/clientSettings.json b/src/main/resources/templates/vscode-vue-js-language-server/clientSettings.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/src/main/resources/templates/vscode-vue-js-language-server/clientSettings.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/main/resources/templates/vscode-vue-js-language-server/initializationOptions.json b/src/main/resources/templates/vscode-vue-js-language-server/initializationOptions.json new file mode 100644 index 000000000..df190ed2a --- /dev/null +++ b/src/main/resources/templates/vscode-vue-js-language-server/initializationOptions.json @@ -0,0 +1,8 @@ +{ + "typescript": { + "tsdk": "C:/Users/${user.name}/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib" + }, + "vue": { + "hybridMode": false + } +} \ No newline at end of file diff --git a/src/main/resources/templates/vscode-vue-js-language-server/settings.json b/src/main/resources/templates/vscode-vue-js-language-server/settings.json new file mode 100644 index 000000000..9e26dfeeb --- /dev/null +++ b/src/main/resources/templates/vscode-vue-js-language-server/settings.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/main/resources/templates/vscode-vue-js-language-server/template.json b/src/main/resources/templates/vscode-vue-js-language-server/template.json new file mode 100644 index 000000000..1418b7272 --- /dev/null +++ b/src/main/resources/templates/vscode-vue-js-language-server/template.json @@ -0,0 +1,42 @@ +{ + "id": "vscode-vue-js-language-server", + "name": "Vue.js Language Server", + "programArgs": { + "windows": "node \"C:/Users/${user.name}/.vscode/extensions/vue.volar-2.1.10/dist/server.js\" --stdio", + "default": "node \"C:/Users/${user.name}/.vscode/extensions/vue.volar-2.1.10/dist/server.js\" --stdio" + }, + "fileTypeMappings": [ + { + "fileType": { + "patterns": [ + "*.vue" + ] + }, + "languageId": "vue" + }, + { + "fileType": { + "patterns": [ + "*.js" + ] + }, + "languageId": "javascript" + }, + { + "fileType": { + "patterns": [ + "*.css" + ] + }, + "languageId": "css" + }, + { + "fileType": { + "patterns": [ + "*.ts" + ] + }, + "languageId": "typescript" + } + ] +} \ No newline at end of file