-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-completionautocompletionautocompletionS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
output-2021-02-04_21.37.48.mp4
As you can see in the video, when typing the first few characters of a method, three different things may happen, seemingly without no pattern:
- rust-analyzer's nice method list pops up
- VSCode's built-in autocomplete pops up
- Nothing pops up
Through experimentation, I could identify what triggers each of the behaviors:
- type all characters normally
- type the first 2-3 characters rapidly
- type the last 2-3 characters rapidly
This issue seems easy to reproduce, but here is a copy-and-pastable code just in case (I tested it in a blank project, it behaves the same)
fn trim_multiline(string: &str) -> &str {
while string./*type "ends" here, in varying speeds*/
}
Versions:
- VSCode: 1.52.1
- rust-analyzer: v0.2.473
- OS: KDE Linux
If there is anything else I can provide to make the issue more clear, I'm happy to provide it
hammypants, RedBreadcat, NicholasGorski, nathanwhit, HarmoGlace and 12 more
Metadata
Metadata
Assignees
Labels
A-completionautocompletionautocompletionS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now