Skip to content

Conversation

RyanCavanaugh
Copy link
Member

We need to list external files during project synchronization for VS to realize they're part of a TS project

@@ -1659,7 +1659,7 @@ namespace ts {
}

export function isRootedDiskPath(path: string) {
return getRootLength(path) !== 0;
return path && getRootLength(path) !== 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

so why do we have undefined file paths?

Copy link
Member Author

Choose a reason for hiding this comment

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

Answers from plugins may include them

Copy link
Contributor

Choose a reason for hiding this comment

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

would not that cause issues in other places as well, and should we just prune/sanitize the list first in these cases?

@RyanCavanaugh RyanCavanaugh merged commit b9b1127 into microsoft:master Sep 20, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
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.

3 participants