fix: bridge :SCLRescanWorkspaceTypes to LSP server + refresh diagnostics

This commit is contained in:
2026-07-23 13:55:04 +02:00
parent 0a0b5c9bf1
commit b86ce08426
+13
View File
@@ -326,6 +326,19 @@ function M.rescan_workspace_types()
.. fb_result.total_files,
vim.log.levels.INFO
)
local clients = vim.lsp.get_clients({ name = "tia_lsp" })
for _, client in ipairs(clients) do
client.request("workspace/executeCommand", {
command = "SCLRescanWorkspaceTypes",
}, function(err, _)
if err then
vim.notify("SCL RescanWorkspaceTypes LSP error: " .. err.message, vim.log.levels.ERROR)
end
end, 0)
end
vim.lsp.diagnostics.refresh()
end
function M.create_commands()