Skip to content

Commit 0bef1a4

Browse files
committed
Display filename in chat panel when running commands
1 parent 5204298 commit 0bef1a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ struct WindowBaseCommandHandler: SuggestionCommandHandler {
209209
\(code)
210210
```
211211
""",
212-
summary: "Explain selected code from `\(selection.start.line + 1):\(selection.start.character + 1)` to `\(selection.end.line + 1):\(selection.end.character + 1)`."
212+
summary: "Explain selected code in `\(fileURL.lastPathComponent)` from `\(selection.start.line + 1):\(selection.start.character + 1)` to `\(selection.end.line + 1):\(selection.end.character + 1)`."
213213
)
214214
}
215215

@@ -267,7 +267,7 @@ struct WindowBaseCommandHandler: SuggestionCommandHandler {
267267
history.append(.init(
268268
role: .user,
269269
content: "",
270-
summary: "Chat about selected code from `\(selection.start.line + 1):\(selection.start.character + 1)` to `\(selection.end.line + 1):\(selection.end.character)`.\nThe code will persist in the conversation."
270+
summary: "Chat about selected code in `\(fileURL.lastPathComponent)` from `\(selection.start.line + 1):\(selection.start.character + 1)` to `\(selection.end.line + 1):\(selection.end.character)`.\nThe code will persist in the conversation."
271271
))
272272
}
273273
}

0 commit comments

Comments
 (0)