Open ehaynes99 opened 4 months ago
Same here, but even stranger those requests are all pending. And there's many of them:
requests = {
[370] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[371] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[372] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[373] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[374] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[375] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[376] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[377] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[378] = {
bufnr = 210,
method = "typescriptTools/diagnostic",
type = "pending"
},
[379] = {
bufnr = 210,
method = "typescriptTools/diagnostic",
type = "pending"
},
[380] = {
bufnr = 210,
method = "typescriptTools/diagnostic",
type = "pending"
},
[381] = {
bufnr = 210,
method = "typescriptTools/diagnostic",
type = "pending"
},
[382] = {
bufnr = 210,
method = "typescriptTools/diagnostic",
type = "pending"
},
[383] = {
bufnr = 210,
method = "typescriptTools/diagnostic",
type = "pending"
},
[384] = {
bufnr = 210,
method = "typescriptTools/diagnostic",
type = "pending"
},
[385] = {
bufnr = 933,
method = "typescriptTools/diagnostic",
type = "pending"
},
[386] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[387] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[388] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[389] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[390] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[391] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[392] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[393] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[394] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[395] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[396] = {
bufnr = 529,
method = "textDocument/codeAction",
type = "pending"
},
[397] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
[398] = {
bufnr = 529,
method = "typescriptTools/diagnostic",
type = "pending"
},
... way more ...
@pavkam How did you get that list?
@pavkam How did you get that list?
vim.inspect(client)
where the client
is just one of the clients attached to the buffer
While looking through lsp debug logs, I noticed a large number of errors around
'typescriptTools/diagnostic'
. As far as I can tell, this method gets fired on all active language servers, not justtypescript-tools
. In my case, I have 3 active with TypeScript files (this plus eslint and copilot), so this call always causes 3 outbound requests and 2 error responses.I'm not too familiar with this custom LSP integrations, but could this be from here? Can it be made to target only the specific language server?
https://github.com/pmizio/typescript-tools.nvim/blob/c43d9580c3ff5999a1eabca849f807ab33787ea7/lua/typescript-tools/api.lua#L153-L155