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.
open()
1 parent db56110 commit 8769d22Copy full SHA for 8769d22
1 file changed
lua/CopilotChat/init.lua
@@ -242,10 +242,18 @@ function M.open(config)
242
local message = M.chat:get_message(constants.ROLE.USER)
243
if message then
244
local clean_prompt = process_sticky(message.content, config)
245
+ local stickies = M.chat:get_sticky()
246
+ local content = ''
247
+ if not vim.tbl_isempty(stickies) then
248
+ content = '\n> ' .. table.concat(stickies, '\n> ') .. '\n\n'
249
+ end
250
if clean_prompt and clean_prompt ~= '' then
251
+ content = content .. clean_prompt
252
253
+ if content ~= '' then
254
M.chat:add_message({
255
role = constants.ROLE.USER,
- content = '\n> ' .. table.concat(M.chat:get_sticky(), '\n> ') .. '\n\n' .. clean_prompt,
256
+ content = content,
257
}, true)
258
end
259
0 commit comments