Skip to content

Support for rescript 9.1.1 with changed location of binaries #35

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

Closed
wants to merge 2 commits into from
Closed
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
7 changes: 6 additions & 1 deletion autoload/rescript.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ endfunction
" bs-platform setups
function! rescript#UpdateProjectEnv()
" Looks for the nearest node_modules directory
let l:res_bin_dir = finddir('node_modules/bs-platform/', ".;") . s:rescript_arch
let l:res_bin_dir = finddir('node_modules/rescript/', ".;") . s:rescript_arch

if l:res_bin_dir == s:rescript_arch
" look for bs-platform if rescript node module not found
let l:res_bin_dir = finddir('node_modules/bs-platform/', ".;") . s:rescript_arch
endif

"if !exists("g:rescript_compile_exe")
let g:rescript_compile_exe = getcwd() . "/" . l:res_bin_dir . "/bsc.exe"
Expand Down
2 changes: 1 addition & 1 deletion rescript-vscode/extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Language="en-US" Id="rescript-vscode" Version="1.0.7" Publisher="chenglou92"/>
<Identity Language="en-US" Id="rescript-vscode" Version="1.0.8" Publisher="chenglou92"/>
<DisplayName>rescript-vscode</DisplayName>
<Description xml:space="preserve">The official VSCode plugin for ReScript.</Description>
<Tags>rescript,language-server,snippet,json,ReScript,__ext_res,__ext_resi</Tags>
Expand Down
9 changes: 8 additions & 1 deletion rescript-vscode/extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
## 1.0.8
Fixes:
- Diagnostics display for long lines.

Features:
- Full support for the newest `rescript` npm package!
- Highlight type parameters.

## 1.0.7

Fixes:
- Highlighting for some decorators and keywords.
- Diagnostics display for long lines.
- Various hover & autocomplete opportunities.

Features:
Expand Down
11 changes: 11 additions & 0 deletions rescript-vscode/extension/grammars/rescript.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@
}
]
},
"typeParameter": {
"patterns": [
{
"match": "'[A-Za-z][A-Za-z0-9_]*",
"name": "support.type"
}
]
},
"number": {
"patterns": [
{
Expand Down Expand Up @@ -431,6 +439,9 @@
{
"include": "#character"
},
{
"include": "#typeParameter"
},
{
"include": "#string"
},
Expand Down
5 changes: 3 additions & 2 deletions rescript-vscode/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "The official VSCode plugin for ReScript.",
"author": "chenglou",
"license": "MIT",
"version": "1.0.7",
"version": "1.0.8",
"repository": {
"type": "git",
"url": "https://github.com/rescript-lang/rescript-vscode"
Expand Down Expand Up @@ -99,7 +99,8 @@
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"clean": "rm -r client/out server/out",
"vscode:prepublish": "npm run clean && npm run compile",
"compile": "tsc -b",
"watch": "tsc -b -w",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
Expand Down

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

3 changes: 2 additions & 1 deletion rescript-vscode/extension/server/out/constants.js

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

95 changes: 53 additions & 42 deletions rescript-vscode/extension/server/out/server.js

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

Loading