Skip to content

Commit 13215ee

Browse files
committed
First release
1 parent 01e9b91 commit 13215ee

File tree

9 files changed

+38
-26
lines changed

9 files changed

+38
-26
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# ReScript Language Server
2+
3+
## Installation
4+
5+
### VSCode
6+
Download the latest release here: https://github.com/rescript-lang/rescript-language-server/releases
7+
8+
Click on `rescript-language-server.vsix` to install it in VSCode.
9+
10+
### Other Editors With Language-Server Support
11+
For now, you have to clone the repo and run `npm run compile`. The language server will be at `server/out/server.js`. Wire that into your editor.
12+
13+
## Features
14+
15+
- Syntax highlighting (`.res`, `.resi`).
16+
- Formatting (currently requires the file to be part of a ReScript project, i.e. with a `bsconfig.json`).
17+
18+
### Upcoming Features
19+
- Formatting of temporary files
20+
- Type diagnosis

client/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "lsp-sample-client",
2+
"name": "rescript-language-client",
33
"description": "VSCode part of a language server",
4-
"author": "Microsoft Corporation",
4+
"author": "chenglou",
55
"license": "MIT",
66
"version": "0.0.1",
7-
"publisher": "vscode",
7+
"publisher": "chenglou",
88
"repository": {
99
"type": "git",
10-
"url": "https://github.com/Microsoft/vscode-extension-samples"
10+
"url": "https://github.com/rescript-lang/rescript-language-server"
1111
},
1212
"engines": {
1313
"vscode": "^1.43.0"

client/src/extension.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/* --------------------------------------------------------------------------------------------
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
4-
* ------------------------------------------------------------------------------------------ */
5-
61
import * as path from 'path';
72
import { workspace, ExtensionContext, tasks, Task, TaskScope, ShellExecution } from 'vscode';
83

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
2-
"name": "lsp-sample",
3-
"description": "A language server example",
4-
"author": "Microsoft Corporation",
2+
"name": "rescript-language-server",
3+
"description": "The official ReScript language server",
4+
"author": "chenglou",
55
"license": "MIT",
66
"version": "0.0.2",
77
"repository": {
88
"type": "git",
9-
"url": "https://github.com/Microsoft/vscode-extension-samples"
9+
"url": "https://github.com/rescript-lang/rescript-language-server"
1010
},
1111
"publisher": "chenglou",
1212
"categories": [],
1313
"keywords": [
14-
"multi-root ready"
14+
"rescript",
15+
"language-server"
1516
],
1617
"engines": {
1718
"vscode": "^1.43.0"

server/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "lsp-sample-server",
3-
"description": "Example implementation of a language server in node.",
2+
"name": "rescript-language-server",
3+
"description": "ReScript's language-server",
44
"version": "1.0.0",
5-
"author": "Microsoft Corporation",
5+
"author": "chenglou",
66
"license": "MIT",
77
"engines": {
88
"node": "*"
99
},
1010
"repository": {
1111
"type": "git",
12-
"url": "https://github.com/Microsoft/vscode-extension-samples"
12+
"url": "https://github.com/rescript-lang/rescript-language-server"
1313
},
1414
"dependencies": {
1515
"vscode-languageserver": "^6.1.1",

server/src/server_old.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/* --------------------------------------------------------------------------------------------
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
4-
* ------------------------------------------------------------------------------------------ */
51
import {
62
createConnection,
73
TextDocuments,

0 commit comments

Comments
 (0)