Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

New file should fallback to the project root if the current file is outside the project #6561

Merged
merged 2 commits into from
Jan 16, 2014

Conversation

jasonsanjose
Copy link
Member

Force new files to be created in the current project if the selection is outside the project

@jasonsanjose
Copy link
Member Author

@RaymondLim can you review this fix for #6544?

@@ -338,8 +338,11 @@ define(function (require, exports, module) {
/**
* Returns true if absPath lies within the project, false otherwise.
* Does not support paths containing ".."
* @param {string|FileSystemEntry} absPath
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: param name should be absPathOrEntry.

@RaymondLim
Copy link
Contributor

Looks good. Just have one nit for JSDoc. Definitely better than my pull request since I was not aware of the existence of the function isWithinProject() and tried to use the project root node to get the desired result.

@jasonsanjose
Copy link
Member Author

Thanks @RaymondLim. Fix pushed.

RaymondLim added a commit that referenced this pull request Jan 16, 2014
New file should fallback to the project root if the current file is outside the project
@RaymondLim RaymondLim merged commit b50d04a into master Jan 16, 2014
@RaymondLim RaymondLim deleted the jasonsanjose/issue-6544 branch January 16, 2014 19:22
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