Skip to content

Update the project graph before checking if opened file is present in the existing project #20515

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

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

sheetalkamat
Copy link
Member

When looking into existing project, we need to ensure that project graph is updated in order to make sure that we get correct answer of file being part of project or not since it could be a new file that might get included in project since its addition was delayed when file create watch event is received.
Fixes #20017

@sheetalkamat
Copy link
Member Author

@mhegazy can you please take a look at this as well.

@mhegazy
Copy link
Contributor

mhegazy commented Jan 12, 2018

on a second thought, this will have impact on open file performance. since we may update graph for all projects to find the file.. can we do better here?

@sheetalkamat
Copy link
Member Author

Its going to update only all external projects and configured project it might reference. Note that the update happens only if there was pending update(because of watches/edits) so wouldn't that restrict that cost a lot in most common scenarios ?

@mhegazy
Copy link
Contributor

mhegazy commented Jan 17, 2018

thanks. 👍

@sheetalkamat sheetalkamat merged commit 41c02e6 into master Jan 17, 2018
@sheetalkamat sheetalkamat deleted the fileAddedAfterProjectOpen branch January 17, 2018 23:07
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 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.

2 participants