This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
Initial paths shouldn't be normalized on save and restore [2] - #6978
Merged
Merged
Conversation
added 2 commits
May 27, 2015 11:18
Contributor
|
@mostafaeweda Thanks for the quick fixup. I will merge this later today, after we 🚢 Atom 0.202. |
Author
|
Great to hear, thanks Max |
Author
|
ping |
Contributor
|
@mostafaeweda since our Travis build is a little flaky right now and does not run the integration tests, could you just confirm that all tests (including integration tests) pass on your machine w/ this change? |
Author
|
Yea, I just double-checked that, including integration tests. |
maxbrunsfeld
pushed a commit
that referenced
this pull request
May 29, 2015
Initial paths shouldn't be normalized on save and restore [2]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixed the
undefinedcase and not being able to open new files and opening all url-style paths, config, preferences, ..etc.Including url-style paths like remote://host:port/some/path in the initialPaths causes state loss issues, because the hash creation in: https://github.com/atom/atom/blob/master/src/atom.coffee#L93 creates a key that's different from the key got when restoring the state, because the initialPaths are normalized and not existing (see: https://github.com/atom/atom/blob/master/src/browser/atom-application.coffee#L372).
So, when the initialPaths contain a url, the state is never restored
This diff makes sure that project paths and initialPaths aren't normalized when not local paths
@bolinfest @maxbrunsfeld @benogle