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