Skip to content

Commit

Permalink
fix(lsp): dont error when workspace not loaded yet. Fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 2, 2024
1 parent fe68a25 commit 41e5bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazydev/buf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function M.update()
end
for _, client in ipairs(M.get_clients()) do
local update = false
for _, ws in ipairs(client.workspace_folders) do
for _, ws in ipairs(client.workspace_folders or {}) do
local w = Workspace.get(client.id, ws.name)
if Config.is_enabled(w.root) and w:update() then
update = true
Expand Down

0 comments on commit 41e5bb1

Please sign in to comment.