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

Simplify projectless sessions #713

Merged
merged 3 commits into from Sep 11, 2019
Merged

Conversation

tomv564
Copy link
Contributor

@tomv564 tomv564 commented Sep 11, 2019

As logs in #668 show, when running sublime without a project, sessions get restarted every time you open a file from a different folder.

The "switch project" detection logic was firing accidentally when switching files. The solution effectively disables this logic by not setting _project_path - instead a separate _projectless_root_path member is used.

_projectless_root_path will only be set once per window.

The "switch project" detection logic was firing accidentally when switching views, causing random session shutdowns. The solution is to store the "fallback" active view path separately (_projectless_root_path) and exclude it from the switch project detection.
_projectless_root_path will only be set once per window.
@coveralls
Copy link

coveralls commented Sep 11, 2019

Coverage Status

Coverage increased (+0.09%) to 37.146% when pulling 14db574 on stabilize-projectless-sessions into 3b8686e on master.

@tomv564 tomv564 merged commit 6ea18dd into master Sep 11, 2019
@tomv564 tomv564 deleted the stabilize-projectless-sessions branch September 11, 2019 22:35
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.

None yet

2 participants