You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: use sticky instead of stored config per chat
Instead of storing config passed to .ask to chat window, store stuff
like model, agent and context into sticky so its clearly visible
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
Copy file name to clipboardExpand all lines: lua/CopilotChat/config/prompts.lua
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -96,11 +96,13 @@ return {
96
96
},
97
97
98
98
Explain= {
99
-
prompt='> /COPILOT_EXPLAIN\n\nWrite an explanation for the selected code as paragraphs of text.',
99
+
prompt='Write an explanation for the selected code as paragraphs of text.',
100
+
sticky='/COPILOT_EXPLAIN',
100
101
},
101
102
102
103
Review= {
103
-
prompt='> /COPILOT_REVIEW\n\nReview the selected code.',
104
+
prompt='Review the selected code.',
105
+
sticky='/COPILOT_REVIEW',
104
106
callback=function(response, source)
105
107
localdiagnostics= {}
106
108
forlineinresponse:gmatch('[^\r\n]+') do
@@ -159,6 +161,7 @@ return {
159
161
},
160
162
161
163
Commit= {
162
-
prompt='> #git:staged\n\nWrite commit message for the change with commitizen convention. Keep the title under 50 characters and wrap message at 72 characters. Format as a gitcommit code block.',
164
+
prompt='Write commit message for the change with commitizen convention. Keep the title under 50 characters and wrap message at 72 characters. Format as a gitcommit code block.',
0 commit comments