magento / magento/magento2-phpstorm-plugin

[Context-Generation] Do not show context action if a file exists in the destination folder

Open
#1,158 1 comment 1 reaction 1 assignee View on GitHub

@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:

Screenshot 2022-09-06 at 20 38 49

**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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.