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 ec7c246 commit 9ea6718Copy full SHA for 9ea6718
1 file changed
lua/CopilotChat/init.lua
@@ -531,7 +531,7 @@ function M.ask(prompt, config)
531
or 'untitled'
532
533
local embeddings = {}
534
- for prompt_context in prompt:gmatch('#([^%s]+)') do
+ local function parse_context(prompt_context)
535
local split = vim.split(prompt_context, ':')
536
local context_name = split[1]
537
local context_input = split[2]
@@ -548,6 +548,14 @@ function M.ask(prompt, config)
548
end
549
550
551
+ if config.context then
552
+ parse_context(config.context)
553
+ end
554
+
555
+ for prompt_context in prompt:gmatch('#([^%s]+)') do
556
+ parse_context(prompt_context)
557
558
559
async.run(function()
560
local agents = vim.tbl_keys(state.copilot:list_agents())
561
local selected_agent = config.agent
0 commit comments