Skip to content

Commit

Permalink
feat (sidebar) allow users to chat without any files selected.
Browse files Browse the repository at this point in the history
  • Loading branch information
brewinski committed Dec 20, 2024
1 parent 01e05a5 commit 1dc70bb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lua/avante/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2054,11 +2054,6 @@ function Sidebar:create_selected_files_container()
local render = function()
local selected_filepaths_ = self.file_selector:get_selected_filepaths()

if #selected_filepaths_ == 0 then
self.selected_files_container:unmount()
return
end

local selected_filepaths_with_icon = {}
for _, filepath in ipairs(selected_filepaths_) do
local icon = Utils.file.get_file_icon(filepath)
Expand Down

0 comments on commit 1dc70bb

Please sign in to comment.