fix: crash when LSP client workspace_folders is nil (#269)
This commit is contained in:
parent
49b2b3f4a5
commit
c4cc8240f1
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ local function get_matching_paths(client, filters, paths)
|
|||
|
||||
local workspace_folders = vim.tbl_map(function(folder)
|
||||
return vim.uri_to_fname(folder.uri)
|
||||
end, client.workspace_folders)
|
||||
end, client.workspace_folders or {})
|
||||
local function get_matching_workspace(path)
|
||||
for _, workspace in ipairs(workspace_folders) do
|
||||
if fs.is_subpath(workspace, path) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue