We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a37c99b commit 3f4a871Copy full SHA for 3f4a871
lua/opencode/context.lua
@@ -143,6 +143,10 @@ function M.remove_file(file)
143
state.context_updated_at = vim.uv.now()
144
end
145
146
+function M.clear_files()
147
+ M.context.mentioned_files = nil
148
+end
149
+
150
function M.add_subagent(subagent)
151
if not M.context.mentioned_subagents then
152
M.context.mentioned_subagents = {}
@@ -168,6 +172,10 @@ function M.remove_subagent(subagent)
168
172
169
173
170
174
175
+function M.clear_subagents()
176
+ M.context.mentioned_subagents = nil
177
178
171
179
---@param opts? OpencodeContextConfig
180
function M.delta_context(opts)
181
opts = opts or config.context
0 commit comments