Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent multiple event subscription for single file #4420

Merged
merged 2 commits into from
Mar 18, 2017
Merged

Conversation

vzhukovs
Copy link
Contributor

What does this PR do?

This PR proposal adds additional check for opened editor for file which opens more than once.
This will prevent multiple event subscription for single file.

Signed-off-by: Vladyslav Zhukovskii [email protected]

What issues does this PR fix or reference?

#4254

Changelog

Prevent multiple event subscription for single file

Release Notes

Prevent multiple event subscription for single file

Docs PR

N/A

@vzhukovs vzhukovs added kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system. team/ide labels Mar 14, 2017
@vzhukovs vzhukovs self-assigned this Mar 14, 2017

switch (event.getOperationType()) {
case OPEN: {
processFileOpen(path);
if (editorAgent.getOpenedEditor(path) == null) { // if we haven't any editor for given path yet
Log.info(getClass(), "Subscribe file for event handling"); // we subscribe for event handling otherwise we
Copy link
Contributor

Choose a reason for hiding this comment

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

Log.debug maybe ???

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you're right. Thanks.

Signed-off-by: Vladyslav Zhukovskii <[email protected]>
@codenvy-ci
Copy link

@vparfonov vparfonov merged commit b93daa9 into master Mar 18, 2017
@vparfonov vparfonov deleted the che#4254 branch March 18, 2017 08:14
@vparfonov vparfonov added this to the 5.6.0 milestone Mar 18, 2017
@JamesDrummond JamesDrummond mentioned this pull request Apr 2, 2017
9 tasks
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
* Prevent multiple event subscription for single file

Signed-off-by: Vladyslav Zhukovskii <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants