This is a language server extension for Visual Studio Code that provides language supports for the Wikitext language.
You can install this extension from the Visual Studio Code Marketplace.
Linting and quick fixes, offered by WikiLint
Available since version 1.1.1
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 |
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
.