Skip to content

Commit 37c643e

Browse files
authored
Merge pull request #48 from rescript-lang/upgrade-vscode-113
Upgrade server to 1.1.3
2 parents b328986 + dc96456 commit 37c643e

15 files changed

+117
-37
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
## master
44

55
**Improvements:**
6-
- Add syntax support for int polyvariants
7-
- Updated vendored rescript-vscode server to `1.1.2` (see changes [here](https://github.com/rescript-lang/rescript-vscode/blob/master/CHANGELOG.md#112))
8-
- Rename support for let-binding, types, record labels, module names etc
9-
- **Important:** If you are using coc.nvim, make sure to upgrade to the latest `release` version first, otherwise renaming will not work across files!
6+
- Add syntax highlighting for int polyvariants
107
- Improved syntax highlighting for string interpolation ([#44](https://github.com/rescript-lang/vim-rescript/pull/44))
8+
- Updated vendored rescript-vscode server to `1.1.3` (see changes introduced in [1.1.2](https://github.com/rescript-lang/rescript-vscode/blob/master/CHANGELOG.md#112) and [1.1.3](https://github.com/rescript-lang/rescript-vscode/blob/master/CHANGELOG.md#113))
9+
- Rename support for let-binding, types, record labels, module names etc
10+
- **Important:** If you are using coc.nvim, make sure to upgrade to coc's latest `release` version first, otherwise renaming will not work across files!
11+
- Jump to type definition support
12+
- New jump-to-definition behavior when having `.res` and `.resi` files in place
1113

1214
## 2.0.1
1315

examples/rescript-project/package-lock.json

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

examples/rescript-project/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"author": "",
1111
"license": "ISC",
1212
"devDependencies": {
13-
"rescript": "9.1.2"
13+
"rescript": "9.1.3"
1414
}
1515
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Demo.a->Js.log
2+
Demo.b->Js.log
3+
4+
let user = {RecordExample.User.name: "test"}
5+
6+
RecordExample.logUser(user)

examples/rescript-project/src/interpolationSyntax.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ let var3 = j`hello $name how you doin?`
88

99
let varInvalid = `hello $name how you doin?`
1010

11-
let expr = `2 + 2 is ${Int.toString(2 + 2)}`
11+
let expr = `2 + 2 is ${Belt.Int.toString(2 + 2)}`

examples/rescript-project/src/polySyntax.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ let c = #"legacy exo-tic"
77
let d = #732
88

99
let e = {RecordExample.User.name: "test"}
10+
11+
Demo.a->Js.log

examples/rescript-project/src/recordExample.res

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ module Role = {
66
type t = {roleName: string}
77
}
88

9-
let doSomething = (u: User.t) => {
9+
let logUser = (u: User.t) => {
1010
Js.log(u.name)
1111
}
1212

13-
let other = (r: Role.t) => {
13+
let logRole = (r: Role.t) => {
1414
Js.log(r.roleName)
1515
}
1616

17-
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module User: {
2+
type t = {name: string}
3+
}
4+
5+
module Role: {
6+
type t = {roleName: string}
7+
}
8+
9+
let logUser: User.t => unit
10+
11+
let logRole: Role.t => unit
Binary file not shown.
Binary file not shown.
Binary file not shown.

server/node_modules/.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/out/server.js

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

server/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.

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rescript-language-server",
33
"description": "ReScript's language-server",
4-
"version": "1.1.2",
4+
"version": "1.1.3",
55
"author": "chenglou",
66
"license": "MIT",
77
"engines": {

0 commit comments

Comments
 (0)