Skip to content

Commit

Permalink
add vscode-vue-js-language-template for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 19, 2024
1 parent 246439d commit 00944d4
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 0 deletions.
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
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
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
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"
}
]
}

0 comments on commit 00944d4

Please sign in to comment.