Skip to content

Commit 44afe9d

Browse files
authored
feat(client): add optional file type property to ListFileItem interface (#4072)
* feat(client): add optional file type property to ListFileItem interface * feat(client): update ListFileItem interface to use 'source' property for file origin
1 parent c7f4b74 commit 44afe9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: clients/tabby-chat-panel/src/client.ts

+7
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,13 @@ export interface ListFileItem {
206206
* The filepath of the file.
207207
*/
208208
filepath: Filepath
209+
210+
/**
211+
* Source of the file, indicating whether it comes from an editor or search results.
212+
* When undefined, the file is assumed to be from the workspace by default.
213+
* This property helps determine how the file should be handled in the UI.
214+
*/
215+
source?: 'openedInEditor' | 'searchResult'
209216
}
210217

211218
/**

0 commit comments

Comments
 (0)