-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
expose trigger character to signature help and completion provider #752
Comments
Must not break the API - probe on arguments length |
Challenge is to have a nice signature that is backwards compatible. I only see something like this
which I am not a big fan of |
Needs more thinking... |
Also, expose if it got triggered because of |
Do it and 🍺 |
parts of this are addressed by #2224 |
Should be another overload of interface CompletionContext {
triggerCharacter: string;
// manual? auto? isRefining...
}
provideCompletionItems(document: TextDocument, position: Position, context: CompletionContext, token: CancellationToken): ProviderResult<CompletionItem[] | CompletionList>; The challenge is that there are already many completion item providers expecting 3 arguments and that we need to check on that before calling, |
We have now context information for completion request. Most people should be happy now. I am creating a new issue for context information when making signature help requests |
awesome! |
@DustinCampbell Let me know if you are missing something. We have started small, just exposing the trigger character and deciding between two kinds: manual and trigger character |
I'll let you know. However, this should make it possible for C# to offer completion in special cases after SPACE. For example: List<int> l = new // <-- We trigger a completion list on SPACE here that contains List<int> |
Add a
CompletionContext
andSignatureHelpContext
which contains the character that has triggered that request:{ ch: string }
The text was updated successfully, but these errors were encountered: