-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
still show suggestions in string when disable string suggestion #136611
Comments
Looks like |
Yes we register vscode/extensions/typescript-language-features/src/languageFeatures/completions.ts Line 642 in f1581dc
|
Snippets are invoked with forgein trigger characters because of #37166 |
This comment has been minimized.
This comment has been minimized.
This just came up for Dart too: Dart registers a bunch of trigger characters and because we can't make them conditional based on context, we check them on the server and return 0 completions if the context didn't make sense (for example, when The comments in #37166 suggest that snippets should only be showing up if the snippet starts with the trigger character, but that doesn't seem to be what's happening here. |
But this still works in stable. Has there been a recent change here? |
Yeah - there was a change in how prefixes to compare snippets against are determined. This is the PR: #136210. The challenge with snippets is that their insert positions aren't as well defined as with language completions. I have relaxed the rules and now more unwanted snippets show, esp after trigger characters. I am planning to fix this for November |
Version:
some config:
Steps to Reproduce:
1.reload VSCode with extension disable
2.open a ts file and type quote, the suggestions still display
The text was updated successfully, but these errors were encountered: