magento / magento/magento2-phpstorm-plugin
[Context-Generation] Do not show context action if a file exists in the destination folder
@bohdan-harniuk is already working on this.
Since Sep 6, 2022.
- Dominant language
- Java
- Stars
- 463
- Forks
- 98
- Avg merge
- 1h 6m
- Merged PRs (30d)
- 3
Description
**Is your feature request related to a problem? Please describe.**
Now there are lots of context actions for generation different files. Once a new file is generated, we can see the same context action in the target directory as before generation. So we can click it more than one time with the error shown if the file already exists:

**Describe the solution you'd like** (*)
We cannot see context action if a target file already exists in the destination folder.
**Acceptance Criteria:**
- do not check file existence condition for each context action separately, check it on the abstraction layer
**Additional context**
**Mainline branch:** 4.4.1-develop
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.