Repository navigation
Commit b38b089
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.ts1 parent 95108f7 commit b38b089
13 files changed
Lines changed: 343 additions & 365 deletions
File tree
- apps/editor/src
- commands
- select-referencing-files-commands
- utils
- features/referencing-files
- i18n/translations
- commands
- features
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments