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

Avoid loading the Elfie dll until the user actualy enables the search feature. #11273

Merged
merged 2 commits into from
May 12, 2016

Conversation

CyrusNajmabadi
Copy link
Member

No description provided.

@CyrusNajmabadi
Copy link
Member Author

Tagging @jasonmalinowski @dotnet/roslyn-ide

@@ -36,7 +36,8 @@ internal partial class SymbolSearchService :
ISymbolSearchService,
IDisposable
{
private ConcurrentDictionary<string, AddReferenceDatabase> _sourceToDatabase = new ConcurrentDictionary<string, AddReferenceDatabase>();
// Value is typed as 'object' so we don't load the elfie dll until actually necessary.
private ConcurrentDictionary<string, object> _sourceToDatabase = new ConcurrentDictionary<string, object>();
Copy link
Member Author

@CyrusNajmabadi CyrusNajmabadi May 12, 2016

Choose a reason for hiding this comment

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

I'm not a fan of this bit. Suggestions welcome on how i could keep things more strongly typed, while not causing anything in the type system to cause Elfie to load.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm dumb. Will switch to a better approach.

@Pilchie
Copy link
Member

Pilchie commented May 12, 2016

👍

@CyrusNajmabadi CyrusNajmabadi merged commit 23af95a into dotnet:master May 12, 2016
@CyrusNajmabadi CyrusNajmabadi deleted the avoidLoadingElfie branch May 12, 2016 22:07
@CyrusNajmabadi CyrusNajmabadi restored the avoidLoadingElfie branch May 30, 2016 21:03
@CyrusNajmabadi CyrusNajmabadi deleted the avoidLoadingElfie branch January 25, 2020 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants