Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Revert "Initial paths shouldn't be normalized on save and restore (co… - #6977

Merged
maxbrunsfeld merged 1 commit into
masterfrom
revert-6813-local-initial-paths
May 27, 2015
Merged

maxbrunsfeld merged 1 commit into
masterfrom
revert-6813-local-initial-paths

Conversation

@maxbrunsfeld

Copy link
Copy Markdown
Contributor

Reverts #6813

That PR introduced some bugs and we need to unblock the release of 0.202.

maxbrunsfeld pushed a commit that referenced this pull request May 27, 2015
Revert "Initial paths shouldn't be normalized on save and restore (co…
@maxbrunsfeld
maxbrunsfeld merged commit 0c66802 into master May 27, 2015
@maxbrunsfeld
maxbrunsfeld deleted the revert-6813-local-initial-paths branch May 27, 2015 17:27
@maxbrunsfeld

Copy link
Copy Markdown
Contributor Author

Fixes #6968.
Fixes #6969.

@maxbrunsfeld

Copy link
Copy Markdown
Contributor Author

@mostafaeweda We can re-merge your PR, with some fixes, after Atom 0.202 is released.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@mostafaeweda The 2 problems we found that this PR introduced were both in this file:

  1. pathToOpen can be undefined, if we're trying to open a new empty editor.
  2. If pathToOpen is a URI, we still need to open it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

1- will check for the undefined and fix it
2- how about: if the uri starts with atom://, then it needs to be opened.
or how do I differentiate between the reload/restart case and the normal open cases?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think that we always need to open it. Other packages could define other 'opener' URIs, like markdown-preview://view, or whatever. In general, remote URIs could represent files, not just directories.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

agreed - addressed in: #6978

mostafaeweda pushed a commit to mostafaeweda/atom that referenced this pull request May 27, 2015
…ial-paths"

This reverts commit 0c66802, reversing
changes made to bdce576.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants