-
Notifications
You must be signed in to change notification settings - Fork 401
introduce CompletionContext.Empty, remove Symbol.GetCompletions(void) #1954
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,10 +80,6 @@ public IEnumerable<Symbol> Parents | |
/// <summary> | ||
/// Gets completions for the symbol. | ||
/// </summary> | ||
public IEnumerable<CompletionItem> GetCompletions() => | ||
GetCompletions(CompletionContext.Empty()); | ||
Comment on lines
-83
to
-84
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This feels like an unnecessary breaking change to me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The main point of my changes is simplification of the APIs which should help us get them approved and moved into BCL. One of the users raised a concern about removing this method: #1891 (comment) but by exposing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok that's fair, if is proven later on that this method is valuable, we can bring it back. |
||
|
||
/// <inheritdoc /> | ||
public abstract IEnumerable<CompletionItem> GetCompletions(CompletionContext context); | ||
|
||
/// <inheritdoc/> | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a performance issue dotnet/sdk#27374 (comment) for this method; not changed in this PR, but maybe you'd like to tackle that too.
Filed as #2038.