Skip to content

Commit b38b089

Browse files
committed
Refactor select referencing files commands and utilities into a dedicated directory
- merge `apps/editor/src/commands/select-referencing-files-commands/select-referencing-files-command.ts` and `apps/editor/src/commands/select-referencing-files-commands/select-referencing-files-for-selected-command.ts` into a single file `apps/editor/src/commands/select-referencing-files-commands/select-referencing-files-commands.ts`, while removing code duplications - move 'referencing files' utils to the command folder - move 'feature' translations to 'command' translations - user can invoke 'find referencing files' on a folder, the issue is that we show files also placed within this folder - we should only show files living outside of it - if the current file defines the symbol, it should not be present in the quick pick └── apps └── editor └── src ├── commands │ ├── generate-commit-message-commands │ │ ├── actions │ │ │ ├── get-prompt-data.ts │ │ │ └── run-generate-action.ts │ │ ├── generate-commit-message-commands.ts │ │ ├── index.ts │ │ └── utils │ │ ├── build-commit-message-prompt.ts │ │ ├── generate-commit-message-with-api.ts │ │ ├── get-commit-message-config.ts │ │ └── strip-wrapping-quotes.ts │ ├── index.ts │ └── select-referencing-files-commands │ ├── index.ts │ ├── select-referencing-files-commands.ts │ └── utils │ ├── get-referencing-files-for-position.ts │ ├── get-referencing-files-for-uris.ts │ └── prompt-for-referencing-files.ts ├── extension.ts ├── features │ └── referencing-files │ ├── index.ts │ └── utils │ ├── get-referencing-files-for-position.ts │ ├── get-referencing-files-for-uris.ts │ └── prompt-for-referencing-files.ts └── i18n └── translations ├── commands │ └── select-referencing-files.ts └── features ├── index.ts └── referencing-files.ts
1 parent 95108f7 commit b38b089

13 files changed

Lines changed: 343 additions & 365 deletions

‎apps/editor/src/commands/index.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ export * from './restore-file-selection-command'
2020
export * from './save-file-selection-command'
2121
export * from './set-ranges-command'
2222
export * from './search-files-commands'
23-
export * from './select-referencing-files-command'
24-
export * from './select-referencing-files-for-selected-command'
23+
export * from './select-referencing-files-commands'
2524
export * from './select-definition-file-command'
2625
export * from './select-imported-files-command'
2726
export * from './select-unstaged-files-command'

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

Lines changed: 0 additions & 164 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './select-referencing-files-commands'

0 commit comments

Comments
 (0)