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

Ignore metals-doctor-reload #83

Merged
merged 2 commits into from
Apr 19, 2022
Merged

Ignore metals-doctor-reload #83

merged 2 commits into from
Apr 19, 2022

Conversation

ayoub-benali
Copy link
Collaborator

Fix #82

I will create a separate issue to handle metals/doctorVisibilityDidChange

@ayoub-benali ayoub-benali requested a review from ckipp01 April 15, 2022 14:50
@@ -20,7 +20,7 @@ def handle_execute_client(session: Session, params: Any) -> None:
goto_location(session, args)
elif command_name == 'metals-show-stacktrace':
show_stacktrace(session, args)
elif command_name in {'metals-doctor-run', 'metals-doctor-reload'}:
elif command_name in {'metals-doctor-run'}:
Copy link
Member

Choose a reason for hiding this comment

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

So it's probably not a huge deal, since most people don't just sit in the doctor panel and watch it waiting for it to update, but in sublime is there no way to check if the panel (or whatever the term in sublime would be) is open? If so I think it's be better to handle these differently where run opens the doctor, but reload only "refreshes" if the doctor is already open.

Copy link
Collaborator Author

@ayoub-benali ayoub-benali Apr 18, 2022

Choose a reason for hiding this comment

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

but in sublime is there no way to check if the panel (or whatever the term in sublime would be) is open

Yes so far it isn't possible to know when the "sheet" that is used for Doctor is opened or closed. I created a separate issue to improve the implementation once sublime API is improved.

EDIT: It isn't even possible to edit the sheet. So the reload if implemented would require closing the old doctor and opening a new one

Copy link
Member

Choose a reason for hiding this comment

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

Gotcha, sounds good.

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

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

LGTM!

@ayoub-benali ayoub-benali merged commit 914f712 into master Apr 19, 2022
@ayoub-benali ayoub-benali deleted the fix-reload branch April 19, 2022 08:54
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.

Metals Doctor opens regularly
2 participants