Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Flux Refinement Type CheckerNew to Visual Studio Code? Get it now.
Flux Refinement Type Checker

Flux Refinement Type Checker

Ranjit Jhala

|
7 installs
| (0) | Free
VSCode Extension for the Flux Refinement Type Checker for Rust
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Flux Refinement Type Checker

A VS Code extension for the Flux Refinement Type Checker for Rust, providing advanced type checking capabilities and interactive debugging features.

Features

  • Interactive Type Checking: Four-state switch to control checking scope (All/Mod/Def/Off)
  • Real-time Diagnostics: Live error reporting with detailed type information
  • Trace Debugging: Optional checker trace for detailed verification insights
  • Interactive UI: Toggle between Values, Constraints, and Types views
  • Clickable Status Bar: Cancel running operations with a simple click
  • Spec Navigation: Jump to flux definitions

Flux Extension Demo

Requirements

  • Flux Type Checker: Follow the installation guide
  • Rust: A Rust project with Flux annotations

Installation

Install from the VS Code Marketplace or manually:

$ npm install -g vsce
$ vsce package
$ code --install-extension flux-checker-*.vsix

Usage

  1. Open a Rust project with Flux annotations
  2. Use the command palette: "Toggle Flux View"
  3. Configure checking mode using the four-state switch:
    • All: Check entire crate
    • Mod: Check current file only
    • Def: Check current function definition
    • Off: Disable checking
  4. Enable trace checkbox for detailed debugging information

Configuration

Set your custom Flux command in VS Code settings:

{
  "flux.command": "cargo flux -p your-package"
}

Contributing

This extension is part of the Flux project. Contributions welcome!

License

MIT

You can then enable the extension by runnning the Toggle Flux View command in the command palette.

Features

Flux View Panel: shows the types and environments known at each program point

  • If your cursor is at or before the first non-blank character of a line, the panel will show the types and environments before that line
  • Else the panel will show the types and environments after that line

Before Statement

After Statement

Diagnostics Panel: shows the full flux error message when you click on a diagnostic in the editor

Diagnostics Panel

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft