Skip to content

Upgrade server to 1.1.3 #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
## master

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

## 2.0.1

Expand Down
30 changes: 26 additions & 4 deletions examples/rescript-project/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/rescript-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"rescript": "9.1.2"
"rescript": "9.1.3"
}
}
6 changes: 6 additions & 0 deletions examples/rescript-project/src/TestJumpTo.res
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Demo.a->Js.log
Demo.b->Js.log

let user = {RecordExample.User.name: "test"}

RecordExample.logUser(user)
2 changes: 1 addition & 1 deletion examples/rescript-project/src/interpolationSyntax.res
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ let var3 = j`hello $name how you doin?`

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

let expr = `2 + 2 is ${Int.toString(2 + 2)}`
let expr = `2 + 2 is ${Belt.Int.toString(2 + 2)}`
2 changes: 2 additions & 0 deletions examples/rescript-project/src/polySyntax.res
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ let c = #"legacy exo-tic"
let d = #732

let e = {RecordExample.User.name: "test"}

Demo.a->Js.log
5 changes: 2 additions & 3 deletions examples/rescript-project/src/recordExample.res
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ module Role = {
type t = {roleName: string}
}

let doSomething = (u: User.t) => {
let logUser = (u: User.t) => {
Js.log(u.name)
}

let other = (r: Role.t) => {
let logRole = (r: Role.t) => {
Js.log(r.roleName)
}


11 changes: 11 additions & 0 deletions examples/rescript-project/src/recordExample.resi
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module User: {
type t = {name: string}
}

module Role: {
type t = {roleName: string}
}

let logUser: User.t => unit

let logRole: Role.t => unit
Binary file modified server/analysis_binaries/darwin/rescript-editor-analysis.exe
Binary file not shown.
Binary file modified server/analysis_binaries/linux/rescript-editor-analysis.exe
Binary file not shown.
Binary file modified server/analysis_binaries/win32/rescript-editor-analysis.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion server/node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 58 additions & 20 deletions server/out/server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rescript-language-server",
"description": "ReScript's language-server",
"version": "1.1.2",
"version": "1.1.3",
"author": "chenglou",
"license": "MIT",
"engines": {
Expand Down