Skip to content
| Marketplace
Sign in
Visual Studio Code>Language Packs>NamespaceNew to Visual Studio Code? Get it now.
Namespace

Namespace

Preview

namespacelabs

|
1,092 installs
| (0) | Free
Language server and tools to support Namespace workflows (Early Access).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Namespace VSCode extension

Language server and tools to support Namespace workflows (see namespacelabs.com).

Getting started

Install Namespace extension from the VSCode extension marketplace.

By default the extension will try to find the correct ns binary in the PATH. If that doesn't work (errors when interacting with any of the features listed below) set ns.toolPath configuration key to the full path to the ns command.

Features

When a file named ns-workspace.cue is present anywhere in the workspace Namespace language server (ns lsp command) will be started. See 'Namespace' output panel for troubleshooting.

What to try:

  1. Open a .cue file, invoke Format Document command. Observe file reformatted.
  2. Observe Cue syntax highlighing (provided by dependency extension nickgo.cuelang).
  3. Invoke "Format Document" command on a Cue file.
  4. Invoke "Namespace: Run ns generate" command. Observe the output in the Namespace output panel.
  5. Modify and save the Cue file. As ns.generateOnSave is on by default the generate command will be run.
  6. Hover on Cue expressions. Observe popups with the expression values.
  7. Position your cursor on a Cue reference and invoke "Go to Definition" command. Observe navigation to the definition.
  8. Introduce a syntax or semantic error in the Cue file. Observe diagnostics surfaced in the Problems pane in real time.
  9. Observe syntax highlighting on a .textpb file (provided by dependency extension thejustinwalsh.textproto-grammer).
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft