Skip to content

Collecting LSP log

Pine edited this page Aug 26, 2020 · 1 revision

Each language server has a setting <ID>.trace.server. With it, you can see the exact messages exchanged in the LSP protocol.

This info can help the maintainer debug your issue.

Here's how to collect it:

  1. Set "vetur.trace.server": "verbose".

  2. Open Panel -> Output -> Vue Language Server. You should already see a lot of messages like this:

    [Trace - 12:13:53 PM] Received notification 'textDocument/publishDiagnostics'.
    Params: {
        "uri": "file:///Users/pine/Code/mine/vetur/veturpack/src/Test.vue",
        "diagnostics": []
    }
    
  3. Click the Clear Output icon (next to the Output Channel picker and the lock icon).

  4. Perform the minimal action to reproduce your issue. For example, trigger a completion.

  5. Attach the complete log of Vue Language Server channel to the issue.