VSCode extension formatting and running questions

Need help with the VSCode extension.

Setup:
VSCode on mac (Sequoia 15.3.1 (24D70)); fresh install of the latest nextflow extension for VSCode.

I just cloned nf-core/sarek and added some extra newlines in one of the include statements.

  1. How can I format code with it? When I cmd+shift+p and Format Document, nothing happens.
    image

  2. Why does the highlighting/intellisense only work inside sarek via dev containers? In another (private repo) when I try to Format Document, VSCode will tell me no formatter for nextflow is installed, and it will also not show any of the intellisense highlighting and problem indication.

  3. Is there a format.on_save option like with the VSCode extension for ruff?

My guess is that you installed the extension only in the “dev containers” environment and not globally.

For example, I use VS Code on Windows via WSL, and I can install extensions to “local” or to “WSL”. I’m guessing the dev containers is a similar situation

There is an editor-wide setting called “Editor: Format On Save”. However I would be careful with it because the formatter still has a few quirks.

Thanks for the quick reply!
I have had the extension installed for a while, so that wasn’t it. I just reloaded the extension and now it seems to be doing some highlighting, even outside the dev container.

However, I still see differences between the tooltips inside and outside the container:

When I open Sarek in the dev container I see the IncludeNode
image
vs outside the dev container where I don’t see it.
image