Skip to content

Commit 432c72e

Browse files
committed
Remove the snapshot check when getting suggestions manually
1 parent d41469b commit 432c72e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@ struct WindowBaseCommandHandler: SuggestionCommandHandler {
4646

4747
try Task.checkCancellation()
4848

49-
let snapshot = FilespaceSuggestionSnapshot(
50-
linesHash: editor.lines.hashValue,
51-
cursorPosition: editor.cursorPosition
52-
)
53-
54-
// There is no need to regenerate suggestions for the same editor content.
55-
guard filespace.suggestionSourceSnapshot != snapshot else { return }
56-
5749
try await workspace.generateSuggestions(
5850
forFileAt: fileURL,
5951
editor: editor

0 commit comments

Comments
 (0)