prabirshrestha / vim-lsp

async language server protocol plugin for vim and neovim
MIT License
3.13k stars 305 forks source link

Unexpected lsp diagnostics in difference filetypes #1492

Open jiz4oh opened 1 year ago

jiz4oh commented 1 year ago

Hi, I occurred a weird error, call :LspDocumentDiagnostics and get unexpected lsp servers(typescript-language-server/bash-language-server) in my ruby files image

I haven't found a step to reproduce the error stably, but usually occurred after I open many difference filetype files and lsp servers.

I try to find the root cause, seems like both typescript-language-server/bash-language-server are sent textDocument/publishDiagnostics response for my ruby files, but I don't know why them acts like this, could anyone help me to realize the 'textDocument/publishDiagnostics' how is working? image

jbarik commented 1 year ago

I am also facing this issue. In my case clangd is getting triggered for matlab files.