-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Textual proposals get same score as JSON proposals #6628
Comments
@alexandrudima Can you point to me the registration? |
@jrieken Maybe this is caused by using the registries and no longer using Here is the default textual completion: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/common/modes/abstractMode.ts#L233 |
I also suggest using find all references on SuggestRegistry, maybe other places need to have a lower weight? |
I don't like the weight option. I would register for the |
Thank you @aeschli ! |
Hm, I kind of expected an easier fix. The problem of the higher score is that the TextualSuggestSupport is contributed for every mode id.
If you would just contribute a single time for '*', it would get the score it had before |
Actually, the problem is bigger than textual suggestion. Basically, all language features that don't work with merging results (suggest, formatting, etc) were affected cos before they were known to be coming from a built-in language and getting the lowest score. For instance, an extension adding/replacing formatting for html would be broken by that change. That's why we restored the old implicit knowledge. Once, everything moves to the extension host, the problem goes away because you top the score by coming later which you do by taking an ext-dependency |
-> when scrolling down multiple pages, one can see some real settings.
Problem is that text proposals are contribted for language selector 'json' and get the same score as the proposals from the mode.
Likely caused by @alexandrudima change in 41302ca
The text was updated successfully, but these errors were encountered: