Skip to content

Commit c1b98de

Browse files
committed
Adjust chat instruction
1 parent d864a22 commit c1b98de

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionPanelContent/ChatPanel.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ struct ChatPanelMessages: View {
7373
.listRowInsets(EdgeInsets(top: 0, leading: -8, bottom: 0, trailing: -8))
7474
}
7575

76-
Instruction()
77-
7876
ForEach(chat.history.reversed(), id: \.id) { message in
7977
let text = message.text.isEmpty && !message.isUser ? "..." : message
8078
.text
@@ -90,6 +88,8 @@ struct ChatPanelMessages: View {
9088
}
9189
}
9290
.listItemTint(.clear)
91+
92+
Instruction()
9393

9494
Spacer()
9595
}
@@ -146,7 +146,7 @@ private struct Instruction: View {
146146
- The **error and warning** labels.
147147
- The text cursor location.
148148
149-
If you'd like me to examine the entire file, simply add `/file` to the beginning of your message.
149+
If you'd like me to examine the entire file, simply add `@file` to the beginning of your message.
150150
"""
151151
)
152152
} else {
@@ -159,7 +159,7 @@ private struct Instruction: View {
159159
- The **error and warning** labels.
160160
- The text cursor location.
161161
162-
If you would like me to examine the selected code, please prefix your message with `/selection`. If you would like me to examine the entire file, please prefix your message with `/file`.
162+
If you would like me to examine the selected code, please prefix your message with `@selection`. If you would like me to examine the entire file, please prefix your message with `@file`.
163163
"""
164164
)
165165
}

0 commit comments

Comments
 (0)