Skip to content

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Dec 20, 2020

Fixes first part of #6549
Fixes #6550

}
"#,
expect![[r#"
ev Foo::Bar ()
Copy link
Member

@lnicola lnicola Dec 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we really suggest Foo::Bar and Foo::Baz after Qu?

I have this nagging feeling that we're including way too much in the autocompletion results.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we make it the clients job to filter out the completions? I'm not sure but most(if not all) completions ignore the already typed parts from what I've seen.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, we should send all completion variants.

Well, actually, now that we want to implement sorting ourselves, I think we should implement sorting ourselves (as a generic filter higher in the stack, not in each specific completion contributor), if LSP allows for that.

@matklad
Copy link
Contributor

matklad commented Dec 23, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 23, 2020

@bors bors bot merged commit ee06096 into rust-lang:master Dec 23, 2020
@Veykril Veykril deleted the selfish branch May 20, 2022 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Variants auto completion when enums are references

3 participants