Skip to content

Commit d78bc34

Browse files
committed
Add README and LICENSE
1 parent 5f6ce48 commit d78bc34

2 files changed

Lines changed: 66 additions & 0 deletions

File tree

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Karolis Narkevicius
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# rescript-zed
2+
3+
ReScript support for [Zed](zed.dev) editor.
4+
5+
This extension plugs in the following projects:
6+
7+
- [tree-sitter-rescript](https://github.com/rescript-lang/tree-sitter-rescript) parser
8+
- [@rescript/language-server](https://github.com/rescript-lang/rescript-vscode) LSP
9+
10+
## Developing
11+
12+
Zed and it's support for extensions is being actively developed. The current workflow that can be used to build this extension locally and install it into Zed is:
13+
14+
Clone zed and build the `zed-extension` cli:
15+
16+
git clone git@github.com:zed-industries/zed.git
17+
cd zed
18+
cargo build --release --package extension_cli
19+
ln -sf "$(pwd -P)/target/release/zed-extension" /usr/local/bin/zed-extension
20+
21+
Build and install the extension locally
22+
23+
make build
24+
25+
Tail zed logs
26+
27+
tail -f ~/Library/Logs/Zed/Zed.log
28+
29+
After opening a ReScript file, open Cmd + Shift + P nav and find
30+
31+
language selector: toggle
32+
33+
And to see the language server logs, open Cmd + Shift + P nav and find
34+
35+
debug: open language server logs
36+
37+
## Known issues
38+
39+
This is the a very early cut of this extension and I have noticed:
40+
41+
- it's very slow to bring up autocomplete
42+
- the syntax partially loses highlighting as you're typing
43+
- the language server crashes quite easily and doesn't restart
44+
45+
We'll look to work through all these issues in the future releases!

0 commit comments

Comments
 (0)