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 34c3b9f commit 88edc4eCopy full SHA for 88edc4e
lua/opencode/core.lua
@@ -48,12 +48,10 @@ function M.open(opts)
48
local are_windows_closed = state.windows == nil
49
50
if are_windows_closed then
51
- -- Check if opening buffer is allowed
+ -- Check if whether prompting will be allowed
52
local allowed, err_msg = util.check_prompt_allowed(config.prompt_guard)
53
-
54
if not allowed then
55
- vim.notify(err_msg or 'Opening opencode buffer denied by prompt_guard', vim.log.levels.WARN)
56
- return
+ vim.notify(err_msg or 'Prompts will be denied by prompt_guard', vim.log.levels.WARN)
57
end
58
59
state.windows = ui.create_windows()
0 commit comments