Skip to content

Commit

Permalink
docs: Update the README to mention installing the language server
Browse files Browse the repository at this point in the history
  • Loading branch information
Marwes committed Jul 8, 2016
1 parent d816285 commit f565d5c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
18 changes: 15 additions & 3 deletions README.md
@@ -1,6 +1,18 @@
# gluon-language-server
# vscode-gluon

A language server for [Visual Studio Code][] providing completion for the programming language [gluon][].
An extension for for [Visual Studio Code][] which provides syntax hightlighting and completion for the programming language [gluon][].

## Installing the language server

The language server is available at [crates.io][] and can be installed by running `cargo install gluon_language-server`.

```json
{
// Specifies where the language server is found. By default this looks for "gluon_language-server" in $PATH
"gluon.language-server.path": "gluon_language-server"
}
```

[Visual Studio Code]:https://code.visualstudio.com/
[gluon]:https://github.com/Marwes/gluon
[gluon]:https://github.com/Marwes/gluon
[crates.io]:https://crates.io/
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -5,6 +5,7 @@
"license": "MIT",
"version": "0.0.1",
"publisher": "gluon-lang",
"repository": "https://github.com/Marwes/gluon_language-server",
"engines": {
"vscode": "^0.10.10"
},
Expand Down Expand Up @@ -47,14 +48,13 @@
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"build-server": "cargo build --release",
"postinstall": "node ./node_modules/vscode/bin/install && cargo build --release"
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"typescript": "^1.8.9",
"vscode": "^0.11.0"
"typescript": "^1.8.9"
},
"dependencies": {
"vscode-languageclient": "^2.2.1"
"vscode-languageclient": "^2.2.1",
"vscode": "^0.11.0"
}
}
2 changes: 1 addition & 1 deletion src/extension.ts
Expand Up @@ -9,7 +9,7 @@ import { Trace } from 'vscode-jsonrpc';
export function activate(context: ExtensionContext) {

let config = workspace.getConfiguration("gluon");
let serverPath = config.get("language-server.path", 'gluon_language-server.exe');
let serverPath = config.get("language-server.path", 'gluon_language-server');

// If the extension is launched in debug mode then the debug server options are used
// Otherwise the run options are used
Expand Down

0 comments on commit f565d5c

Please sign in to comment.