WikiParser Language Server

This is a language server extension for Visual Studio Code that provides language supports for the Wikitext language.
Installation
You can install this extension from the Visual Studio Code Marketplace.
Features
Linting and quick fixes, offered by WikiLint
Auto-completion
Color preview
Code navigation
Followable wiki and external links
Symbol renaming
Code folding
Outline view
Hover
Help with parser function signatures
Inlay hints
Available since version 1.1.1
Configuration
Configuration |
Description |
Default |
wikiparser.articlePath |
Specify the article path of the wiki site. Also set the parser configuration automatically for all language editions of Wikipedia. |
|
wikiparser.config |
Manually specifiy the path to the parser configuration file. |
|
wikiparser.linter.enable |
Enable diagnostics. |
true |
wikiparser.linter.severity |
Display or hide warnings. |
errors only |
wikiparser.linter.lilypond |
Specify the path to the LilyPond executable to lint <score> . |
|
wikiparser.completion |
Enable auto-completion. |
true |
wikiparser.color |
Enable color decorators. |
true |
wikiparser.hover |
Enable hover information. |
true |
wikiparser.inlay |
Enable inlay hints for anonymous template/module parameters. |
true |
wikiparser.signature |
Enable parser function signature help. |
true |
Usage
This extension does not activate automatically. The server exists as an asset at the location: server/dist/server.js
. You can call this asset from any extension, for example:
const path = require('path'),
{extensions} = require('vscode'),
{LanguageClient} = require('vscode-languageclient/node');
const {extensionPath} = extensions.getExtension('Bhsd.vscode-extension-wikiparser');
new LanguageClient(
'WikiParser Language Server',
{
run: {module: path.join(extensionPath, 'server', 'dist', 'server.js')},
},
{
documentSelector: [
{scheme: 'file', language: 'wikitext'},
{scheme: 'untitled', language: 'wikitext'},
],
},
).start();
If the Wikitext extension is installed, this extension will automatically activate by setting the wikitext.wikiparser.enable
configuration to true
.