-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish the bash-language-server package separately as it's own npm package and move the tree-sitter and tree-sitter-bash dependencies to the client so they'll be compiled during installation on the users machine. This should fix #5 - I hope. I also bumped the version of tree-sitter-bash.
- Loading branch information
1 parent
5dcfdcb
commit 534424f
Showing
16 changed files
with
268 additions
and
154 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
**/node_modules | ||
|
||
vscode-client/out | ||
vscode-client/server | ||
server/out |
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
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
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 |
---|---|---|
@@ -1,79 +1,79 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"taskName": "compile", | ||
"dependsOn": [ | ||
"compile:client", | ||
"compile:server" | ||
], | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "compile:client", | ||
"type": "npm", | ||
"script": "compile:client", | ||
"group": "build", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
}, | ||
"problemMatcher": [ | ||
"$tsc" | ||
] | ||
}, | ||
{ | ||
"label": "compile:server", | ||
"type": "npm", | ||
"script": "compile:server", | ||
"group": "build", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
}, | ||
"problemMatcher": [ | ||
"$tsc" | ||
] | ||
}, | ||
{ | ||
"taskName": "watch", | ||
"dependsOn": [ | ||
"watch:client", | ||
"watch:server" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "watch:client", | ||
"type": "npm", | ||
"script": "watch:client", | ||
"isBackground": true, | ||
"group": "build", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
}, | ||
"problemMatcher": [ | ||
"$tsc-watch" | ||
] | ||
}, | ||
{ | ||
"label": "watch:server", | ||
"type": "npm", | ||
"script": "watch:server", | ||
"isBackground": true, | ||
"group": "build", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
}, | ||
"problemMatcher": [ | ||
"$tsc-watch" | ||
] | ||
} | ||
] | ||
} | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"taskName": "compile", | ||
"dependsOn": [ | ||
"compile:client", | ||
"compile:server" | ||
], | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "compile:client", | ||
"type": "npm", | ||
"script": "compile:client", | ||
"group": "build", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
}, | ||
"problemMatcher": [ | ||
"$tsc" | ||
] | ||
}, | ||
{ | ||
"label": "compile:server", | ||
"type": "npm", | ||
"script": "compile:server", | ||
"group": "build", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
}, | ||
"problemMatcher": [ | ||
"$tsc" | ||
] | ||
}, | ||
{ | ||
"taskName": "watch", | ||
"dependsOn": [ | ||
"watch:client", | ||
"watch:server" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "watch:client", | ||
"type": "npm", | ||
"script": "watch:client", | ||
"isBackground": true, | ||
"group": "build", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
}, | ||
"problemMatcher": [ | ||
"$tsc-watch" | ||
] | ||
}, | ||
{ | ||
"label": "watch:server", | ||
"type": "npm", | ||
"script": "watch:server", | ||
"isBackground": true, | ||
"group": "build", | ||
"presentation": { | ||
"panel": "dedicated", | ||
"reveal": "never" | ||
}, | ||
"problemMatcher": [ | ||
"$tsc-watch" | ||
] | ||
} | ||
] | ||
} |
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 @@ | ||
clean: | ||
rm -rf node_modules server/node_modules vscode-client/node_modules vscode-client/server vscode-client/out | ||
|
||
build: install | ||
npm run compile | ||
|
||
install: package.json server/package.json vscode-client/package.json | ||
npm install |
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
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,45 @@ | ||
# Development guide | ||
|
||
This guide will help you set up your local development environment. | ||
|
||
There are two moving parts. | ||
|
||
- **Server**: A node server written in Typescript that implements the | ||
[Language Server Protocol (LSP)][lsp]. | ||
- **Client**: A super tiny vscode extension which basically just tells vscode | ||
how to launch the LSP server. | ||
|
||
The project has a root `package.json` file which is really just there for | ||
convenience - it proxies to the `package.json` files in the `vscode-client` and | ||
`server` folders. | ||
|
||
To **install all the required dependencies** run | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
This uses the `postinstall` hook to install the dependencies in each of the | ||
sub-projects as well as using [npm link][npm-link] to get your local client to | ||
use your local version of the server. | ||
|
||
To **compile everything** run | ||
|
||
``` | ||
npm run compile | ||
``` | ||
|
||
Now, as most of the interesting things are happening in the server you'll probably want to | ||
re-compile it whenever you make a change to any of the source files: | ||
|
||
``` | ||
npm run watch:server | ||
``` | ||
|
||
Finally Launch the extension using `Launch Client` task from within vscode. For | ||
now you'll have to re-launch the extension whenever you've made any changes to | ||
the source. | ||
|
||
[lsp]: https://microsoft.github.io/language-server-protocol/ | ||
[node-gyp]: https://github.com/nodejs/node-gyp | ||
[npm-link]: https://docs.npmjs.com/cli/link |
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
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,7 @@ | ||
# Bash Language Server | ||
|
||
Bash language server implementation based on [Tree Sitter][tree-sitter] and its | ||
[grammar for Bash][tree-sitter-bash]. | ||
|
||
[tree-sitter]: https://github.com/tree-sitter/tree-sitter | ||
[tree-sitter-bash]: https://github.com/tree-sitter/tree-sitter-bash |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.