Skip to content

fox0430/lasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lasm

A configurable LSP server for debugging/testing LSP clients.

Quick Start

# Install
nimble install lasm

# Create example config
lasm --create-sample-config

# Start server
lasm --config ./lsp-test-config-sample.json

Usage

Usage:
  lasm --config <path>         # Start LSP server with config file
  lasm --create-sample-config  # Create sample configuration
  lasm --file-log              # Enable file logging
  lasm --file-log-path <path>  # Set log file path
  lasm --help                  # Show help

Config

Configure scenarios in JSON to control LSP behavior:

  • Responses and delays
  • Error injection
  • Feature toggles

See lsp-test-config-sample.json for examples.

Supported LSP methods

Name Note
initialize
initialized
$/cancelRequest
workspace/didChangeConfiguration
textDocument/didOpen
textDocument/didChange
textDocument/didSave
textDocument/didClose
textDocument/hover
textDocument/completion
textDocument/publishDiagnostics
textDocument/inlayHint
textDocument/declaration
textDocument/definition
textDocument/typeDefinition
textDocument/implementation
textDocument/references
textDocument/documentHighlight
textDocument/rename
textDocument/formatting
textDocument/shutdown

Commands

LASM provides several commands that can be executed through the LSP client:

  • lsptest.switchScenario - Switch to a different test scenario
  • lsptest.listScenarios - List all available scenarios
  • lsptest.reloadConfig - Reload configuration file
  • lsptest.createSampleConfig - Create a sample configuration file
  • lsptest.listOpenFiles - List all currently open files with details

About

A configurable LSP server for debugging/testing LSP clients

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages