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

improves validation on rename #48117

Merged
merged 4 commits into from
Apr 19, 2018

Conversation

tsalinger
Copy link
Contributor

@tsalinger tsalinger commented Apr 18, 2018

fixes #47791
fixes #44549

@isidorn
Copy link
Contributor

isidorn commented Apr 18, 2018

@tsalinger please resolve conflicts against latest master and then I will review this.

if (names.length > 1) { // error only occurs on multi-path
const comparer = isLinux ? strings.compare : strings.compareIgnoreCase;
if (comparer(names[0], this.element.name) === 0) {
return nls.localize('renameWhenSourcePathIsParentOfTargetError', "Cannot move/copy when source path is parent of target path.");
Copy link
Contributor

Choose a reason for hiding this comment

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

I would improve this message to somehow be more clear and user friendly.
Also "move/copy" I prefer "move or copy"

@isidorn
Copy link
Contributor

isidorn commented Apr 19, 2018

@tsalinger thanks for this PR, merging in.

@isidorn isidorn merged commit d7e2429 into master Apr 19, 2018
@isidorn isidorn deleted the tsalinger/fixes-#47791-improving-validation-on-rename branch April 19, 2018 08:41
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
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.

Editing a folder and make it a nested folders Live validation misses another case when renaming a folder
2 participants