Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Fix/browse without current file #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

alezhu
Copy link

@alezhu alezhu commented Sep 15, 2023

English

If there is no current file in the IDE (all are closed, for example, or the project mode is switched to OpenFile), but the project is open, e.getData(PlatformDataKeys.VIRTUAL_FILE) will return null. Accordingly, no command will be executed. For BROWSE, it is enough to have the path to the current project. This change adds the ability to open GitExtension in such a case.


По-русски
Если в ИДЕ нет текущего файла (все закрыты, например, или режим проекта переключен на OpenFile), но проект открыт, e.getData(PlatformDataKeys.VIRTUAL_FILE) вернёт null. Соответственно, никакая команда не будет выполнена. Для BROWSE достаточно иметь путь к текущему проекту. Это изменение добавляет возможность открыть GitExtension в таком случае .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant