VS Code extension for Nextflow that provides language support for scripts and config files, using the Nextflow language server.
Read the blog posts (part 1, part 2) and the docs for more information.
See also:
The following language features are currently supported:
- syntax highlighting
- code navigation (outline, go to definition, find references)
- completion
- diagnostics (errors, warnings)
- formatting
- hover hints
- rename
- DAG preview for workflows
The language server requires Java 17 or later.
Clone this repository:
git clone https://github.com/nextflow-io/vscode-language-nextflow
cd vscode-language-nextflow
If you need to edit the language server, clone the repository and build it:
git clone https://github.com/nextflow-io/language-server
make server
Otherwise, you can simply download a language server release into the following subdirectory:
mkdir -p language-server/build/libs
wget -P language-server/build/libs https://github.com/nextflow-io/language-server/releases/download/$VERSION/language-server-all.jar
Finally, press F5
to build the extension and launch a new VS Code window with the extension loaded.
- Update the extension version number in
package.json
. - Update the changelog in
CHANGELOG.md
. - Run the "Deploy Extension" action to publish the extension to the VSCode marketplace and Open VSX.
Contributions are welcome. Feel free to fork this repository and open a pull request to propose changes.
- https://manual.macromates.com/en/language_grammars
- https://code.visualstudio.com/docs/extensions/publish-extension
- https://code.visualstudio.com/docs/extensions/yocode
- https://code.visualstudio.com/docs/extensionAPI/extension-manifest
Enjoy!