/fit-code

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Fit Code

This is a Visual Studio Code extension for syntax highlighting in Stainless Fit.

Installing

Download the latest release and use code --install-extension fit-code-0.0.6.vsix to install the extension in VS Code.

Packaging

You can rebuild the file fit-code-0.0.6.vsix from source by running vsce package (after installing vcse with npm install -g vsce and all dependencies of the project using npm install).

Description

This extension contains:

  • A grammar to define the scopes of the syntax.
  • A theme file for changing the colors associated to the scopes defined above.
  • A dark theme file.
  • A typescript file that defines the following commands: extension.eraseTypeAnnotations, extension.evaluateCurrentFile, extension.typecheckCurrentFile (bound in package.json to Ctrl+K Ctrl+V, Ctrl+K Ctrl+B, and Ctrl+K Ctrl+N).
  • Configuration for the path to the executable, as well as the options it should be used with.