Skip to content

Commit

Permalink
[dotnet] Don't complete files if a project file was already specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Dec 26, 2024
1 parent 5cdb1ca commit d347b7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dotnet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,10 @@ end

local parser = clink.arg.new_parser

local function collect_project_files(word, index, line_state, builder) -- luacheck: no unused args
if clink.filematchesexact then
local function collect_project_files(word, index, line_state, builder, user_data) -- luacheck: no unused args
if user_data and user_data.project_argument then
return {}
elseif clink.filematchesexact then
local matches = clink.dirmatches(word)
local files = clink.filematchesexact(word.."*.*proj")
for _, f in ipairs(files) do
Expand Down

0 comments on commit d347b7e

Please sign in to comment.