Skip to content

Commit

Permalink
Properly parse context inputs with : in them
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Nov 18, 2024
1 parent 742767e commit 70ccd4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/CopilotChat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@ function M.ask(prompt, config)
local embeddings = {}
local function parse_context(prompt_context)
local split = vim.split(prompt_context, ':')
local context_name = split[1]
local context_input = split[2]
local context_name = table.remove(split, 1)
local context_input = table.concat(split, ':')
local context_value = config.contexts[context_name]

if context_value then
Expand Down

0 comments on commit 70ccd4d

Please sign in to comment.