From 5cdb1caf23c763a4ba852dc3e6cfc8e2c5dec606 Mon Sep 17 00:00:00 2001 From: Chris Antos Date: Tue, 24 Dec 2024 11:41:07 -0800 Subject: [PATCH] [dotnet] Include directories in the package/reference/PROJECT list. --- dotnet.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dotnet.lua b/dotnet.lua index 5f592d7..e2eb0ef 100644 --- a/dotnet.lua +++ b/dotnet.lua @@ -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