Intellisense's 'Suggest selection' should keep working when you have typed something #66019
Labels
feature-request
Request for new features or functionality
suggest
IntelliSense, Auto Complete
under-discussion
Issue is under discussion for relevance, priority, approach
Milestone
VSCode has a feature that remembers recent completions the user has selected and then automatically choosen those completions for them the next time.
The problem is that it behaves quite oddly, and here is an example that illustrates why:
console.
vscode will suggest all of the available methods ofconsole
.exception
.console.
again. Vscode will immediately suggestexception
, as expected.And now here is the weird part: Type
e
, and instead of still suggestingexception
, it will suggesterror
!The problem here is that once you type anything after the suggestion came, vscode will completely disregard your completion history and will just give you the best match lexicographically. Even if in the example you have completed
exception
by typing ane
and then having it complete it, the same thing will occur.My suggestion is that when you have already typed something, the 'suggest selection' will just be filtered by what you have typed, instead of stop working. So in the example, after you have typed
e
, it will still suggestexception
."Switch the Suggest Selection settings to "recentlyUsedByPrefix" and it will work!"
Yes it does make it sometimes work but overall it makes the situation much worse. For example if you type just
console.
it won't suggest exception no matter what you have done before.The text was updated successfully, but these errors were encountered: