🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@nowline/lsp

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nowline/lsp

Nowline language server — powers editor features like error checking, autocomplete, and hovers in VS Code, Cursor, and other editors.

latest
npmnpm
Version
0.8.5
Version published
Maintainers
1
Created
Source

@nowline/lsp

Language Server Protocol implementation for the Nowline DSL. Built on top of @nowline/core's Langium grammar, validator, and AST. The @nowline/vscode-extension bundles this server; other LSP-capable editors (Neovim, JetBrains, Helix, Emacs, …) can spawn the bundled nowline-lsp binary directly.

What it provides

  • Validation — every diagnostic from @nowline/core's validator surfaces in the editor in real time.
  • Definition — jump from after:audit-log, owner:sam, depends:[…], on:…, before:…, etc. to the entity that owns the id.
  • References — every text-matching usage of an entity id across the open file.
  • Rename — rename an entity id and fan the edit out to all references.
  • Hover — entity title, status, owner, and link surfaced when the cursor hovers a name node or a reference.
  • Document symbols — outline tree mirroring roadmap → swimlane → item (with parallel / group nesting).
  • Completion — id completion inside after: / before: / owner: / on: / depends:[] plus value completion for status:. Keyword and property-key completion comes from Langium's default provider.
  • Folding — block folding driven by Langium's default provider over the INDENT/DEDENT-based grammar.

The server is single-file scoped in m3 — cross-file references through include are intentionally not resolved by the LSP. Diagnostics and navigation operate on the document the user is editing.

Running the server

The package ships a nowline-lsp binary. Editors connect over stdio:

npx nowline-lsp

Programmatic embedding (e.g. inside a VS Code extension):

import { startNowlineServer } from '@nowline/lsp/server';

startNowlineServer();

For headless / in-memory usage (tests, MCP, …) use createNowlineLspServices with an EmptyFileSystem.

FAQs

Package last updated on 20 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts