Skip to content

Commit bf9ed5d

Browse files
committed
Include the current file in referencing file searches
- should not exclude itself ├── apps │ └── editor │ └── src │ ├── commands │ │ └── select-referencing-files-command.ts │ └── features │ └── referencing-files │ ├── index.ts │ └── utils │ ├── get-referencing-files-for-position.ts │ ├── get-referencing-files-for-uris.ts │ └── prompt-for-referencing-files.ts └── packages ├── shared │ └── src │ └── utils │ └── simplify-prompt-symbols │ ├── simplify-prompt-symbols.spec.ts │ └── simplify-prompt-symbols.ts └── ui └── src └── components └── editor └── prompt ├── ResponsePreview │ └── ResponsePreview.tsx └── Responses └── Responses.tsx
1 parent 27b7787 commit bf9ed5d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/editor/src/commands/select-referencing-files-command.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export const select_referencing_files_command = (
4949
}
5050

5151
let do_whole_file_search = true
52-
const current_file_path = target_uri.fsPath
5352

5453
if (should_check_position && target_position) {
5554
matched_files = await vscode.window.withProgress(
@@ -62,7 +61,7 @@ export const select_referencing_files_command = (
6261
uri: target_uri!,
6362
position: target_position!,
6463
workspace_provider,
65-
ignore_paths: [current_file_path]
64+
ignore_paths: []
6665
})
6766
}
6867
)
@@ -99,7 +98,7 @@ export const select_referencing_files_command = (
9998
return await get_referencing_files_for_uris({
10099
uris: starting_uris,
101100
workspace_provider,
102-
ignore_paths: [current_file_path],
101+
ignore_paths: [],
103102
progress,
104103
token
105104
})

0 commit comments

Comments
 (0)