Support completion of unimported types.#1896
Merged
JoeRobich merged 5 commits intoOmniSharp:masterfrom Aug 19, 2020
Merged
Conversation
This needs to call a few internal overloads for completion, instead of the public versions, in order to determine whether any completions can be expanded (ie, imported) and to get the full change for these items, including the import. The public APIs do not provide this information currently.
filipw
reviewed
Aug 18, 2020
filipw
reviewed
Aug 18, 2020
filipw
reviewed
Aug 18, 2020
* Added global option for controlling whether import completion is turned on, off by default. * Additional testing.
Member
|
it looks like the tests are a bit unstable for example this failed on Linux but passed on a retry. Maybe some sort of a thread exhaustion, these agents are not too powerful |
Contributor
Author
|
I'll up the cancelation limit. 100 ms is very stable locally, but I was a bit curious how they'd do on CI. |
JoeRobich
approved these changes
Aug 19, 2020
Contributor
Author
@filipw upped the timeout to a second/test. |
Member
|
thanks this is good to go IMHO! 🍻 |
Member
|
Thanks Fred! |
This was referenced Aug 20, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This needs to call a few internal overloads for completion, instead of the public versions, in order to determine whether any completions can be expanded (ie, imported) and to get the full change for these items, including the import. The public APIs do not provide this information currently.
Todo:
Preview of the change in vscode (watch the line numbers!):

Fixes #1482