Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>WikiLink LSPNew to Visual Studio Code? Get it now.
WikiLink LSP

WikiLink LSP

lincyaw

| (0) | Free
Markdown wikilink intelligent navigation and completion - Supports [[document]] syntax
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

WikiLink LSP

Markdown wikilink intelligent navigation and completion extension for VSCode. Supports [[document]] syntax for fast knowledge base navigation.

Features

  • Smart Completion - Type [[ to show document list with title, slug, tags, and aliases search
  • Jump to Definition - Ctrl+Click or F12 to jump to target document
  • Hover Information - Mouse hover shows document title, slug, and tags
  • Auto Indexing - Automatically re-index on file changes
  • Zero Dependencies - Pure VSCode native API, no external modules required

Installation

Install from VSIX

  1. Open VSCode
  2. Press Ctrl+Shift+P (Mac: Cmd+Shift+P)
  3. Type: Extensions: Install from VSIX...
  4. Select the .vsix file
  5. Click Install

Command Line Installation

code --install-extension wikilink-lsp-*.vsix

Configuration

Add to your settings.json:

{
  "wikilink-lsp.workspaceRoot": "/path/to/your/knowledge-base",
  "wikilink-lsp.autoIndex": true,
  "wikilink-lsp.enableHover": true,
  "wikilink-lsp.enableCompletion": true,
  "wikilink-lsp.maxCompletionItems": 50
}

Configuration Options

Option Description Default
workspaceRoot Knowledge base root directory path Auto-detect workspace
autoIndex Auto-index documents on startup true
enableHover Enable hover information true
enableCompletion Enable auto-completion true
maxCompletionItems Maximum completion items to show 50

Usage

Basic Syntax

[[slug]]              # Simple link
[[slug|display]]      # Custom display text

Keyboard Shortcuts

Action Shortcut
Trigger completion Type [[
Jump to definition F12 / Ctrl+Click
Hover information Mouse hover
Re-index documents Ctrl+Shift+P → WikiLink: Re-index Documents

Example

# Research Notes

See [[getting-started]] for detailed analysis.

Related topics:
- [[benchmark-evaluation]] - Performance benchmarks
- [[api-reference]] - API documentation
- [[advanced-usage|Advanced Guide]] - Custom display text

Frontmatter Support

Add frontmatter to Markdown files for enhanced functionality:

---
title: My Document
tags: [reasoning, llm, research]
aliases: [my-doc, MyDoc]
created: 2026-03-20
---

# My Document

Content here...

This enables linking via:

  • [[My Document]] - By title
  • [[my-doc]] - By alias
  • [[reasoning]] - By tag search

Commands

WikiLink: Re-index Documents

Manually trigger document indexing. Use when adding new files or if indexing issues occur.

WikiLink: Show Indexed Documents

Browse all indexed documents and quickly open target documents.

Output Panel

Press Ctrl+Shift+U to open the Output Panel, then select "WikiLink LSP" to view logs:

WikiLink LSP is activating...
Workspace root: /path/to/knowledge-base
WikiLink LSP is now active
Starting document indexing...
Found XX Markdown files
Indexing complete: XX documents

Troubleshooting

Document Not Found

  1. Check if workspaceRoot is configured correctly
  2. Run "WikiLink: Re-index Documents" command
  3. Verify filename is correct (without .md extension)

Completion Not Triggering

  1. Ensure you are in a Markdown file
  2. Check enableCompletion configuration
  3. Confirm you typed [[ trigger characters

Extension Not Activating

  1. Open any .md file
  2. Check Output Panel for "WikiLink LSP" channel
  3. Verify extension status is "Enabled" in Extensions panel

Technical Architecture

  • Zero External Dependencies - Uses VSCode native API only
  • Async Indexing - Background execution, non-blocking activation
  • Smart Caching - Map data structure for O(1) lookups
  • Debounced Updates - Re-index 1 second after file changes

Development

Build

cd vsc-extension
npm install
npm run compile

Package

npm run package

Debug

  1. Open vsc-extension directory
  2. Press F5 to launch debug
  3. Test extension in new window

Update Log

v1.2.0 (2026-03-21)

  • Removed all external dependencies, using VSCode native API
  • Optimized log output, removed emoji
  • Improved frontmatter parsing logic
  • Enhanced documentation and code comments

v1.1.x

  • Fixed module packaging issues
  • Optimized activation flow
  • Added file change listeners

v1.0.0

  • Initial release

License

MIT License

Contributing

Issues and Pull Requests are welcome!

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