Skip to the content.

A fork of the Nextflow extension for VS Code with additions for Positron. Everything below the Positron section is upstream’s documentation and applies unchanged.

Positron Nextflow: running the rnaseq pipeline from Positron, following its tasks in Pipeline Runs, and opening its report in the Viewer

Watch the full demo (2 min):

Positron

In Positron the extension adds:

In VS Code the extension behaves like upstream.

The extension ID is posit.positron-nextflow. It contributes the same languages, settings and commands as the official nextflow.nextflow extension, so it stays inactive, and offers to uninstall the official extension, while both are installed.

To install, build the VSIX with make and install build/positron-nextflow.vsix, or run make install. Running pipelines needs Nextflow 25.10 or later; Nextflow: Install Nextflow installs it into ~/.local/bin. Settings for runs are under nextflow.run.*.


VS Code extension for Nextflow that provides language support for Nextflow scripts and config files.

Features

Nextflow language server

nextflow vscode extension

The extension uses the Nextflow language server to provide code intelligence:

Read the Nextflow documentation for more information about the Nextflow language server.

Related blog posts:

Project view

The extension provides a custom view for Nextflow projects. The Project view uses the language server to provide an overview of your pipeline project:

Project Tree View

Example taken from the nf-core/fetchngs pipeline.

The Project view allows you to:

Copilot for Nextflow

The Copilot extension for Seqera AI has been removed. Use Seqera Co-Scientist instead.

Installation

This extension is available in the Visual Studio Marketplace and the Open VSX Registry.

Requirements

On Linux (x64 and arm64) and macOS (Apple silicon), the extension downloads a standalone build of the language server that includes its own Java runtime, so Java is not required.

On other platforms, such as Windows and Intel-based Macs, the extension uses the language server jar, which requires Java 17 or later.

Note: for custom Java installations such as conda, you might need to set the nextflow.java.home extension setting for the extension to find your Java installation.

Offline usage

The extension downloads an appropriate version of the language server from GitHub based on the nextflow.languageVersion extension setting. To use the language server in an offline environment, you must download a language server release manually and save it in the local cache directory used by the extension. For example, the standalone build for Linux (x64):

VERSION=26.10.1
mkdir -p ~/.nextflow/lsp/v26.10
wget https://github.com/nextflow-io/language-server/releases/download/v${VERSION}/nextflow-language-server-${VERSION}-linux-x64.tar.gz
tar -xzf nextflow-language-server-${VERSION}-linux-x64.tar.gz -C ~/.nextflow/lsp/v26.10

Or the jar:

mkdir -p ~/.nextflow/lsp/v24.10
wget https://github.com/nextflow-io/language-server/releases/download/v24.10.0/language-server-all.jar -O ~/.nextflow/lsp/v24.10/v24.10.0.jar

The extension will fall back to the latest patch version from the local cache if it can’t download from GitHub.

Note: Nextflow language server patch versions have no correlation to Nextflow patch versions. Always use the latest patch version of the language server when downloading a release manually.

Commands

Open the command palette and type Nextflow to see the list of available commands.

Configuration

The following settings are available:

Telemetry notice

We (Seqera) collect limited usage data through this extension to help us understand which features are most valuable and improve your overall experience.

This telemetry is opt-in and can be enabled or disabled at any time by toggling “Nextflow > Telemetry: Enabled” in your VS Code settings.

Information we collect

Information we do not collect

If you have any questions or concerns, feel free to open an issue in our repository. We appreciate your trust and feedback!