Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

teamwalnut/rescript-vscode

 
 

Repository files navigation

rescript-vscode

The official VSCode plugin for ReScript.

Prerequisite

You must have bs-platform 8.3.3 installed locally in your project, through the usual npm installation. Older versions are not guaranteed to work.

Installation

The plugin's on VSCode Marketplace. In VSCode, cmd-shift-p -> "Install Extensions", then find "rescript-vscode".

The plugin activates on .res and .resi files. If you've already got Reason-Language-Server installed, it's possible that the latter took precedence over this one. Make sure you're using this plugin ("ReScript syntax") rather than Reason-Language-Server ("BuckleScript syntax").

Features

  • Syntax highlighting (.res, .resi).
  • Formatting, with caveats:
    • Currently requires the file to be part of a ReScript project, i.e. with a bsconfig.json.
    • Cannot be a temporary file
  • Syntax errors diagnosis (only after formatting).
  • Built-in bsb watcher (optional, and exposed explicitly as a pop-up; no worries of dangling build)
  • Type diagnosis
  • Jump to location

Upcoming Features

  • Formatting of temporary files
  • Formatting of files outside of a ReScript project root

About

Official VSCode plugin for ReScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.6%
  • JavaScript 1.1%
  • Shell 0.3%