Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Command line to support editor integration for Rescript.

License

Notifications You must be signed in to change notification settings

rescript-lang/rescript-editor-support

Repository files navigation

Rescript Editor Support

This is a private command line binary used by rescript-vscode to power a few functionalities such as jump to definition, hover and autocomplete.

The binary reads the .cmt and .cmti files and analyses them.

Status

This is a preliminary version for early testing, the CLI is not stable yet.

Build

dune build

Usage

dump

Compute jump-to-definition and hover information for Foo.res at line 0 and column 4:

rescript-editor-support.exe dump src/Foo.res:0:4

complete

Compute autocomplete for Foo.res at line 0 and column 4, where Foo.res is being edited and its current content in the editor is in file Current.res.

rescript-editor-support.exe complete src/Foo.res:0:4 Current.res

History

This project is based on a fork of Reason Language Server.

Distributed under the MIT License (see LICENSE).

About

Command line to support editor integration for Rescript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages