Skip to content

bhsd-harry/vscode-extension-wikiparser

Repository files navigation

WikiParser Language Server

VSCode Marketplace: WikiParser Language Server CodeQL CI codebeat badge

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.

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();

Features

Linting and quick fixes, offered by WikiLint

Linting

Auto-completion

Auto-completion

Color preview

Color preview

Code navigation

Code navigation

Followable wiki and external links

Followable links

Symbol renaming

Symbol renaming

Code folding

Code Folding

Outline view

Outline

Hover information

Hover information

Help with parser function signatures

Parser function signatures