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

Apply all status messages when a SessionView is opened #1706

Merged
merged 2 commits into from
May 30, 2021

Conversation

jwortmann
Copy link
Member

Apply all permanent status messages that were set via Session.set_window_status_async when a file is opened.

I'm not sure why, but this also fixes an issue I saw, that set_window_status_async has no effect when called within AbstractPlugin.__init__.

Note that the set_window_status_async method ignores the "show_view_status" setting, but it seems much more useful to me this way, because plugin authors could add their own setting for this (or query the "show_view_status" setting from the LSP preferences) and then check that before calling set_window_status_async.

plugin/session_view.py Outdated Show resolved Hide resolved
@rwols rwols merged commit e6e7c31 into sublimelsp:main May 30, 2021
@jwortmann jwortmann deleted the status-on-load branch May 30, 2021 23:40
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.

3 participants