Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Ranvier for F#New to Visual Studio Code? Get it now.
Ranvier for F#

Ranvier for F#

ranvier

|
1 install
| (0) | Free
The reactive graph of your Ranvier F# code: what each signal write runs, what wakes each effect, and which writes are hazards.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ranvier for F#

See the Ranvier reactive graph of your F# code in VS Code. The extension shows:

  • what each signal write may run;
  • what can wake each effect, memo and binding;
  • which writes the analysis proves hazardous.

It shows these in an interactive graph, an Explorer tree, a hazard list and a details view. It works alongside Ionide and reads the analysis from ranvierautocomplete, the language server Ionide runs.

A project's reactive graph beside Cart.fs: signals on the left, the memos and effects they wake to the right, and the project's three hazards listed in the side panel

The extension is written in F# and compiled to JavaScript with Fickl, as Ionide is with Fable. Its VS Code bindings are generated by Xantham, and the graph view is a Ranvier.View component.

Install

Install Ranvier for F# (ranvier.ranvier-fsharp) from the VS Code Marketplace, or download the .vsix from its GitHub release and run Extensions: Install from VSIX....

Requirements

  • Ionide for F# (Ionide.Ionide-fsharp). The extension depends on it and installs with it.
  • ranvierautocomplete 0.1.9 or later as Ionide's language server. Set FSharp.fsac.netCoreDllPath to ranvierautocomplete.dll; the server's documentation says how. The extension talks to the server through the ranvier.status, ranvier.graph and ranvier.details commands it advertises. With another server the status bar says "Ranvier: no server".
  • The Ranvier analysis turned on: "FSharp.ranvierAnalysis": true, or run Ranvier: Turn the Ranvier Analysis On or Off. It is off by default, and while it is off the server loads none of it.

What it adds

Feature Where Cost
Reactive graph view. A file's, project's or workspace's nodes, their tracked reads (solid on every run, dashed on some), write sites and the computations that run them, and optionally the fields that hold nodes. It is laid out left to right, from what wakes to what is woken. It supports pan, zoom, search, filtering by kind, and focus on a neighbourhood. A side panel shows the selection's text from the server, with every name and reason spelled out. Double-click a vertex to open it. Exports to Mermaid, DOT or JSON. Ranvier: Show Reactive Graph, the editor title button, or the status bar Fetched when opened. Laid out in the view. Past ranvier.graph.renderLimit it opens on a neighbourhood.
Reactive Graph tree. The active file's vertices in the Explorer. Each one opens onto its edges by kind ("reads", "read by", "written by", "writes"…), and each edge's vertex opens again. Explorer Asks only while visible, and builds each level as it opens.
Status bar. The analysis state, the analysed nodes and the published hazards. Right of the status bar, in F# files Builds no graph: it reads ranvier.status and the diagnostics.
Hazard actions. "Show in the reactive graph" and "Show the details" on RVR001, RVR002 and RVR003. Ranvier: Go to a Ranvier Hazard… lists them all. Light bulb, and the command palette None until used.
Details at the cursor. The full hint or lens text of the node, write or field at the cursor, each named part linked to its source. Editor context menu One request per use.
Hint controls. Choose What the Ranvier Hints Show… sets each FSharp.ranvierHints switch to off, on, hold or toggle. Hold and Toggle the Ranvier Hints send ranvier.hold and ranvier.toggle, for keybindings. Command palette None.
"Show in graph" lens on each node's create call. ranvier.codeLens.showInGraph, off by default Reads the file's graph for each lens request.
Details in hovers. ranvier.hover.details, off by default One request per hover over a node.
Follow the cursor. The open graph selects the vertex at the cursor. ranvier.graph.followCursor, off by default Runs on each cursor move.

The Reactive Graph tree, opened on a signal: the write that wakes it and the effect that reads it.

The Explorer's Reactive Graph tree for Hazards.fs, with the ticks signal opened onto "written by" and "read by"

The server's hints after each write, field and binding, and the details of a node in its hover.

CounterView.fs with hints such as "updates 3 bindings · at end of batch", and the hover of the Count signal: read by 3 bindings, written in increment and reset

Settings

Setting Default
ranvier.graph.defaultScope file What Show Reactive Graph draws: file (the file's nodes and those one step from them), project or workspace.
ranvier.graph.maxNodes 400 The most nodes one request returns. Past it the server keeps the scope's own nodes and the best-connected others, and the view says so.
ranvier.graph.renderLimit 600 Past this many vertices, the view opens on a neighbourhood, with Draw everything.
ranvier.graph.flow LR LR or TB.
ranvier.graph.layoutIterations 4 Ordering sweeps: more cross fewer edges and take longer.
ranvier.graph.showWrites true Write sites as vertices.
ranvier.graph.showFields false Fields that hold nodes as vertices.
ranvier.graph.animate true Animate moves to a vertex.
ranvier.graph.autoRefresh onSave off, onSave, or onType, which waits ranvier.graph.refreshDelay ms after typing stops. A refresh asks the cheap ranvier.status first, and fetches only when its stamp moved.
ranvier.graph.followCursor false See above.
ranvier.graph.retainContext false Keep a hidden graph view alive, at the cost of its memory.
ranvier.graph.cache true Keep the view's last graph in .ionide/ranvier/view.json. A new view draws it, marked "Saved at…", until the server answers, as after a restart. The server keeps its own cache there too (FSharp.ranvierCache, also on by default), so with unchanged code its answers come when the project loads.
ranvier.treeView.enabled true The Explorer tree.
ranvier.statusBar.enabled true The status bar item.
ranvier.codeLens.showInGraph false See above.
ranvier.hover.details false See above.
ranvier.codeActions.enabled true The hazard actions.
ranvier.editorTitleButton true The graph button in F# editors' title bars.
ranvier.keybindings.enabled false Ctrl+Alt+H holds and Ctrl+Alt+J toggles every hint; Ctrl+Alt+G shows the node at the cursor in the graph.
ranvier.trace off requests logs each server request, with its time and size, to the Ranvier output channel.

To bind other keys, give ranvier.hints.hold or ranvier.hints.toggle a switch name, or an array of them, as args:

{ "key": "alt+b", "command": "ranvier.hints.hold", "args": "bindings", "when": "editorTextFocus && editorLangId == fsharp" }

In the graph

The vertices are drawn by kind: signal, editable, memo, effect, async value, boundary, binding, write and field.

  • Edges go from what wakes to what is woken.
  • A red edge runs against the flow: it closes a cycle, such as a feedback write.
  • A red border marks a write with a violated hazard check.
  • A dashed border marks a vertex the graph cannot fully see: it escapes, has readers the graph cannot see, or reads something unresolved.

An RVR001 feedback write: its hover gives the warning and what the write runs, and the graph draws the write's edge back to the signal it reads in red

Keys in the view:

  • F fits the graph to the view.
  • Escape clears the selection.
  • Enter opens the selected vertex.
  • / jumps to the filter box.
  • + and - zoom in and out.

Building

The extension builds with the .NET 10 SDK and Node 22 or later, from this folder:

npm ci
npm run build    # Fickl compiles the F# projects; esbuild bundles dist/
npm test         # the core's Expecto tests, the host against a stand-in vscode module, the view in jsdom
npm run package  # dist/ranvier-fsharp.vsix
  • To release, raise version in package.json, then push the tag vscode-v<version> once main's CI passes. vscode.yml builds and tests that commit, publishes the .vsix to the Marketplace through trusted publishing, and attaches it to a GitHub release. It refuses a tag that names another version.
  • global.json pins Fickl.Sdk. npm run check:fickl fails when a newer Fickl is out.
  • The bindings in bindings/ are generated: dotnet tool restore, dotnet xantham tsc init once, then npm run bindings after a change to the @types/vscode version.
  • src/Ranvier.VSCode.Core is plain F#, compiled for the extension, for the view and for .NET. It links the server's wire format, src/Rfs.Server/GraphProtocol.fs, so the two sides read one definition.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft