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:
@@ -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(),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user