generated from redhat-developer/new-project-template
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added vscode-vue-js-language-template for windows
feat: Added vscode-vue-js-language-template for windows Fixes #710
- Loading branch information
1 parent
246439d
commit d878977
Showing
5 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/main/resources/templates/vue-js-language-server/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
You can use [Vue 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) | ||
* [npm install -g @vue/language-server](https://www.npmjs.com/package/@volar/vue-language-server) | ||
* [npm install -g typescript](https://www.npmjs.com/package/typescript) | ||
|
||
Configure, example on windows: | ||
* Server > Command > `vue-language-server.cmd --stdio` OR `node "C:/Users/${user.name}/AppData/Roaming/npm/node_modules/@vue/language-server/bin/vue-language-server.js" --stdio` | ||
* Mappings > File name patterns > press "+" > File name patterns like "`*.vue`" and language id like "`vue`" | ||
* Configuration: `{}` | ||
* Initialization Options, need set `${user.name}`: | ||
``` JSON | ||
{ | ||
"typescript": { | ||
"tsdk": "C:/Users/${user.name}/AppData/Roaming/npm/node_modules/typescript/lib" | ||
}, | ||
"vue": { | ||
"hybridMode": false | ||
} | ||
} | ||
``` | ||
|
||
You can use [Vue highlight](https://github.com/vuejs/vue-syntax-highlight) in the TextMate by following these instructions: | ||
* Download and unzip in a folder | ||
* File -> Settings -> Editor -> TextMate Bundles | ||
* And press "+" `Select Path` to folder with highlight |
1 change: 1 addition & 0 deletions
1
src/main/resources/templates/vue-js-language-server/clientSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
8 changes: 8 additions & 0 deletions
8
src/main/resources/templates/vue-js-language-server/initializationOptions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"typescript": { | ||
"tsdk": "C:/Users/${user.name}/AppData/Roaming/npm/node_modules/typescript/lib" | ||
}, | ||
"vue": { | ||
"hybridMode": false | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/main/resources/templates/vue-js-language-server/settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
18 changes: 18 additions & 0 deletions
18
src/main/resources/templates/vue-js-language-server/template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"id": "vue-js-language-server", | ||
"name": "Vue.js Language Server", | ||
"programArgs": { | ||
"windows": "vue-language-server.cmd --stdio", | ||
"default": "vue-language-server --stdio" | ||
}, | ||
"fileTypeMappings": [ | ||
{ | ||
"fileType": { | ||
"patterns": [ | ||
"*.vue" | ||
] | ||
}, | ||
"languageId": "vue" | ||
} | ||
] | ||
} |