Giter Club home page Giter Club logo

tremor-vscode's Introduction

Tremor language support for VS Code

Adds support for Tremor's languages (tremor-script and tremor-query) to Visual Studio Code. Features:

  • Syntax highlighting for .tremor (tremor-script) and .trickle (tremor-query) files
  • Error squiggles (with hints for fixing, as applicable)
  • Completion for tremor-script and tremor-query (aggregate) functions
  • Hover documentation for functions
  • Language configuration (autoclosing and surrounding pairs, comment toggling, bracket definition, etc.)

The rich integration features (error diagnostics and completion/hover support) are powered by the Tremor Language Server (Trill). To activate all the features, you will need to install it alongside the extension (instructions below).

For support, please file an issue on the repo or talk to us on Discord. For more details on how you can contribute to this repo (and the Tremor project in general), see CONTRIBUTING.md.

Installation

Language Server

First install the Rust compiler and cargo (Rust's package manager) via https://www.rustup.rs/. This is required currently to build and install the language server.

Now run cargo install tremor-language-server. This places the language server binary in ~/.cargo/bin/, and by default, the extension is configured to pick it up from there.

Extension

Install from VSCode Marketplace, or by entering ext install tremorproject.tremor-language-features at the VS Code command palette Ctrl+P.

Configuration

This extension provides options in VS Code's configuration settings (under File > Preferences > Settings). Available options, with their default values:

{
    "tremor.languageServerExecutable": "~/.cargo/bin/tremor-language-server",
    "tremor.languageServerModulePath": "",
    "tremor-script.trace.server": "off",
    "tremor-query.trace.server": "off"
}

If you installed the language server binary somewhere outside the default cargo path, you will need to update tremor.languageServerExecutable.

The trace configuration controls logging of communication between VS Code and the language server, for each of the tremor languages. Acceptable values are: "off", "messages", "verbose". Turning these on can be helpful during extension development/debugging (to see the log output, navigate to View -> Output, then select Trill entries from the output dropdown).

Development

See development.md.

Publishing

See publishing.md.

tremor-vscode's People

Contributors

anupdhml avatar darach avatar dependabot-preview[bot] avatar dependabot[bot] avatar licenser avatar mfelsche avatar yatinmaan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tremor-vscode's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.