Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions lua/opencode/context/chat_context.lua
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,6 @@ end
function M.add_file(file)
local is_file = vim.fn.filereadable(file) == 1
local is_dir = vim.fn.isdirectory(file) == 1
if not is_file and not is_dir then
vim.notify('File not added to context. Could not read.')
return
end

if not util.is_path_in_cwd(file) and not util.is_temp_path(file, 'pasted_image') then
vim.notify('File not added to context. Must be inside current working directory.')
return
end

file = vim.fn.fnamemodify(file, ':p')

if not M.context.mentioned_files then
Expand Down