Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>ArchLangNew to Visual Studio Code? Get it now.
ArchLang

ArchLang

Chan Meng

|
1 install
| (0) | Free
Syntax highlighting plus full language support — live diagnostics, hover, completion, go-to-definition, rename, and signature help — for ArchLang (.arch) floor-plan source.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ArchLang — VS Code extension

A minimal VS Code extension for .arch files: TextMate syntax highlighting (the grammar from ../) plus live diagnostics from an LSP language server that reuses the compiler's resilient parser and compile().diagnostics.

Not part of the published core. All LSP deps live here; the core stays zero-dependency. The extension depends on the core via file:../.. and pulls it in at runtime through a dynamic import (the core is ESM-only).

Layout

  • src/diagnostics.ts — pure mapping of compile().diagnostics → LSP diagnostics (dependency-injected compile, no LSP import). Unit-tested by the core suite: test/lsp-diagnostics.test.ts.
  • src/server.ts — the language server: on document change, compile and sendDiagnostics.
  • src/extension.ts — the client: launches the server over IPC for language === "arch".

Build & run

npm run build                         # build the core (dist/) first
npm install --prefix editors/vscode   # installs LSP deps + links the core
npm run build --prefix editors/vscode # tsc -> editors/vscode/dist/

Then press F5 in VS Code with editors/vscode open to launch an Extension Development Host, and open any .arch file: keywords highlight and compiler errors/warnings appear inline (squiggles + Problems panel).

Packaging note: contributes.languages/grammars reference the grammar and language-configuration in ../. For vsce package, copy those two files into this folder (or adjust the paths) so they're included in the .vsix.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft