Skip to content

Commit 70ccd4d

Browse files
committed
Properly parse context inputs with : in them
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parent 742767e commit 70ccd4d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/CopilotChat/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ function M.ask(prompt, config)
562562
local embeddings = {}
563563
local function parse_context(prompt_context)
564564
local split = vim.split(prompt_context, ':')
565-
local context_name = split[1]
566-
local context_input = split[2]
565+
local context_name = table.remove(split, 1)
566+
local context_input = table.concat(split, ':')
567567
local context_value = config.contexts[context_name]
568568

569569
if context_value then

0 commit comments

Comments
 (0)