Skip to content

upload fix#26

Merged
meanmail merged 4 commits intohyperskill:mainfrom
Tsyklop:bug-fix-23
Mar 24, 2026
Merged

upload fix#26
meanmail merged 4 commits intohyperskill:mainfrom
Tsyklop:bug-fix-23

Conversation

@Tsyklop
Copy link
Contributor

@Tsyklop Tsyklop commented Mar 19, 2026

Fixes #23

Fixed. Tested in own IDEA 252 (built and locally installed)

Copy link
Contributor

@meanmail meanmail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix correctly inverts the condition from taskFile == null to taskFile != null.

Previously, refactoring was forbidden when a file was not part of a course (taskFile is null), which is backwards. Now it's forbidden only when the file is a course task file — consistent with the PsiDirectory branch on the next line (dir.getStudyItem(project) != null).

Clean one-line fix, LGTM.

Copy link
Contributor

@meanmail meanmail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment below.

Copy link
Contributor

@meanmail meanmail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Fix is correct, tests cover the key scenarios.

@meanmail meanmail merged commit f2032e7 into hyperskill:main Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Renaming files is blocked in projects not related to coursers

2 participants