From d63e0d3ebde49aba1809ca372fb6c6380665ee83 Mon Sep 17 00:00:00 2001 From: Camden Cheek Date: Tue, 7 Jan 2025 17:10:38 -0700 Subject: [PATCH] fixup types --- .../chat/cells/messageCell/assistant/SearchResults.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx b/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx index e95d37f5b2f5..ab2063afaabf 100644 --- a/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx +++ b/vscode/webviews/chat/cells/messageCell/assistant/SearchResults.tsx @@ -2,7 +2,6 @@ import { CODE_SEARCH_PROVIDER_URI, type ChatMessageWithSearch, type NLSSearchDynamicFilter, - NLSSearchFileMatch, type NLSSearchResult, isDefined, } from '@sourcegraph/cody-shared' @@ -67,7 +66,7 @@ export const SearchResults = ({ const totalResults = useMemo( () => message.search.response?.results.results.filter( - (result): result is NLSSearchFileMatch => result.__typename === 'FileMatch' + (result): result is NLSSearchResult => result.__typename === 'FileMatch' ) || [], [message.search.response] )