Skip to content

Latest commit

 

History

History

README.md

LSP Example for Log Streaming

This is a repository adapted from lsp-sample to demonstrate

Demo

demo

Synopsis

Running the Sample

  • Install the LSP Inspector Webview extension
  • Compile and Run this Extension
    • npm install
    • npm run compile
    • F5 to run the extension
  • Add the following setting:
    "languageServerExample.trace.server": {
      "format": "json",
      "verbosity": "verbose"
    },
  • Open a txt file so this Language Server gets activated
  • Run command "LSP Inspector: Start LSP Inspector"
  • Run command "Start Stream Logs into languageServerExample.port"
  • As you are typing, doing auto-completion, many messages should show up in the inspector, such as
    • textDocument/didChange
    • textDocument/completion
    • textDocument/publishDiagnostics