mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 17:44:30 +00:00
Use EMPTY
code action kind to get more RA actions without breaking TS
This commit is contained in:
parent
2ef2b5a053
commit
ea8778921b
1 changed files with 7 additions and 1 deletions
|
@ -3585,7 +3585,13 @@ impl Project {
|
||||||
partial_result_params: Default::default(),
|
partial_result_params: Default::default(),
|
||||||
context: lsp::CodeActionContext {
|
context: lsp::CodeActionContext {
|
||||||
diagnostics: relevant_diagnostics,
|
diagnostics: relevant_diagnostics,
|
||||||
only: None,
|
only: Some(vec![
|
||||||
|
lsp::CodeActionKind::EMPTY,
|
||||||
|
lsp::CodeActionKind::QUICKFIX,
|
||||||
|
lsp::CodeActionKind::REFACTOR,
|
||||||
|
lsp::CodeActionKind::REFACTOR_EXTRACT,
|
||||||
|
lsp::CodeActionKind::SOURCE,
|
||||||
|
]),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.await?
|
.await?
|
||||||
|
|
Loading…
Reference in a new issue