-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Completion API Options #4933
Completion API Options #4933
Conversation
Additionally, the IsDebugger and IsImmediateWindow properties have been removed from CompletionTriggerInfo. Any code that was checking these properties now checks for options that are set by the Controller in debugger scenarios.
} | ||
else | ||
{ | ||
return null; |
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.
Is there a reason we return null
here instead of an empty CompletionList
value (if that's even possible)?
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.
Good suggestion. I'll return an empty CompletionList
here.
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.
Or rather an empty Task<CompletionList>
Overall I love this. My feedback is just nits. |
13465d1
to
2085591
Compare
retest this please |
if (options.GetOption(CompletionOptions.AlwaysShowBuilder)) | ||
{ | ||
var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false); | ||
builder = this.CreateEmptyBuilder(text, position); |
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.
Nit: Should you show the specific builder with it's text if there is one, even if the option is true?
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.
Yes, that seems a good idea. This is consistent with our existing behavior, but that's better behavior. 😄 I'll file a bug.
Late to the party, but this looks great. |
Makes progress on #3538.
This change threads an OptionSet through the completion API and removes the smelly "IsDebugger" and "IsImmediateWindow" properties from CompletionTriggerInfo
Reviewers: @rchande, @dpoeschl, @CyrusNajmabadi, @balajikris, @brettfo, @Pilchie, @jasonmalinowski, @davkean, @jmarolf