Do not resolve more completion fields (#19021)

As Zed instantly shows completion items in the completion menu, and the
resolve will cause the details to appear, flickering.
We can safely resolve the `documentation`, `additionalTextEdits` and
`command` fields, the rest should be resolved eagerly for now.

Release Notes:

- Fixed completion menu rendering
This commit is contained in:
Kirill Bulatov 2024-10-10 16:10:18 +03:00 committed by GitHub
parent 972886c29e
commit 9bc4e3b4ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -626,11 +626,7 @@ impl LanguageServer {
properties: vec![
"additionalTextEdits".to_string(),
"command".to_string(),
"detail".to_string(),
"documentation".to_string(),
"filterText".to_string(),
"labelDetails".to_string(),
"tags".to_string(),
// NB: Do not have this resolved, otherwise Zed becomes slow to complete things
// "textEdit".to_string(),
],