folke / trouble.nvim

🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
Apache License 2.0
5.15k stars 173 forks source link

bug: `:Trouble workspace_diagnostics` is only showing diagnostics for open buffers with tsserver #379

Closed dan-cooke closed 3 months ago

dan-cooke commented 4 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

0.9.5

Operating system/version

Arch Linux

Describe the bug

Previous issue https://github.com/folke/trouble.nvim/issues/26

I'm working on a Typescript project when I notice the issue

It doesn't seem to be an issue with rust-analyzer so its maybe a TSServer issue

Steps To Reproduce

Ensure tsserver is installed and trouble and your lsp are configured

  1. mkdir bug && cd bug && nvim file1.ts
    
    const test = 1

test = 2


2. Close neovim
3. `neovim another.ts`
4. Open trouble

### Expected Behavior

It should should show 

   file1.ts  1 
 │     Cannot assign to 'test' because it is a constant. typescript (2588) [3, 1]

### Repro

_No response_
folke commented 3 months ago

That's a limitation of tsserver