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

Defer getting all entities as much as possible #2072

Merged
merged 1 commit into from
Dec 22, 2016

Conversation

dungpa
Copy link
Contributor

@dungpa dungpa commented Dec 21, 2016

This is a simple change to ensure that getting all entities (the most expensive operation) is only called if the symbol under cursor is valid.

/cc @vasily-kirichenko

@vasily-kirichenko
Copy link
Contributor

vasily-kirichenko commented Dec 22, 2016

I'm not sure it's needed because this code fix is activated on 039 error only.

@dungpa
Copy link
Contributor Author

dungpa commented Dec 22, 2016

Ok, it might be needed if you extend to more error codes. I'm closing the PR then.

@dungpa dungpa closed this Dec 22, 2016
@forki
Copy link
Contributor

forki commented Dec 22, 2016

Please don't close. It still looks sane.

@vasily-kirichenko
Copy link
Contributor

Yes, it looks OK.

However, I was thinking about the opposite thing: loading entities from all assemblies in background to make the light bulb appear immediately the first time.

@KevinRansom
Copy link
Member

@dungpa
It's still a good change mate. Maybe aa future PR will improve it more ... but until then we think this is great.

Kevin

@KevinRansom KevinRansom merged commit a00791b into dotnet:master Dec 22, 2016
@dungpa dungpa deleted the add-open branch December 22, 2016 12:05
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants