generated from redhat-developer/new-project-template
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add vscode-vue-js-language-template for windows
- Loading branch information
Your Name
committed
Dec 19, 2024
1 parent
246439d
commit 00944d4
Showing
5 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/main/resources/templates/vscode-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,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 |
1 change: 1 addition & 0 deletions
1
src/main/resources/templates/vscode-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/vscode-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/Local/Programs/Microsoft VS Code/resources/app/extensions/node_modules/typescript/lib" | ||
}, | ||
"vue": { | ||
"hybridMode": false | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
src/main/resources/templates/vscode-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 @@ | ||
{} |
42 changes: 42 additions & 0 deletions
42
src/main/resources/templates/vscode-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,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" | ||
} | ||
] | ||
} |