Skip to content

Commit

Permalink
[dotnet] Include directories in the package/reference/PROJECT list.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Dec 24, 2024
1 parent 3897690 commit 5cdb1ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dotnet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,12 @@ local parser = clink.arg.new_parser

local function collect_project_files(word, index, line_state, builder) -- luacheck: no unused args
if clink.filematchesexact then
return clink.filematchesexact(word.."*.*proj")
local matches = clink.dirmatches(word)
local files = clink.filematchesexact(word.."*.*proj")
for _, f in ipairs(files) do
table.insert(matches, f)
end
return matches
else
return clink.filematches(word)
end
Expand Down

0 comments on commit 5cdb1ca

Please sign in to comment.