Overview Version History Q & A Rating & Review
Powang LSP
Syntax highlighting, diagnostics and completion for the Powang programming language.
Features
Syntax highlighting via TextMate grammar and semantic tokens
Diagnostics from the parser and gradual type checker
Keyword and builtin completion (30 items)
Hover for keywords, builtins, and identifiers
Go to definition and declaration
Document and workspace symbols
Find references and rename
Formatting
Inlay hints
Code actions
Language configuration : brackets, comments, indentation rules, auto-closing pairs
Installation
From the VS Code Marketplace (once published)
Open VS Code.
Press Ctrl+Shift+X to open the Extensions panel.
Search for Powang.
Click Install.
From a .vsix file
Download the .vsix file from the releases page .
Open VS Code.
Press Ctrl+Shift+P, run Extensions: Install from VSIX..., and select the file.
From source (development)
git clone https://github.com/POLA-LCS/powang-lsp
cd powang-lsp
code --extensionDevelopmentPath=.
LSP server
The extension starts the powang LSP server automatically. The server requires Python 3.12+ and the powang repository on the Python path.
Configure the Python interpreter in your VS Code settings:
{
"powang.server.pythonPath": "python"
}
If Python is not on your PATH, set the full path:
{
"powang.server.pythonPath": "C:/Python312/python.exe"
}
The server script (powang_lsp.py) is expected to be at <powang_repo>/tools/powang_lsp.py. Set powang.server.repositoryPath to the Powang repository root if it is not your workspace. Set the powang.server.extraArgs setting to pass additional arguments.
What the LSP does
Publishes syntax diagnostics from the parser.
Publishes type diagnostics from the gradual checker.
Offers keyword and builtin completion.
Provides hover, goto definition and declaration.
Provides document and workspace symbols.
Provides find references and rename.
Provides formatting and semantic tokens.
Provides inlay hints and code actions.
Links