Start work on code actions
Just print out the returned code actions for now Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
4900019e9b
commit
83d4fe8e3a
4 changed files with 109 additions and 1 deletions
|
@ -238,6 +238,17 @@ impl LanguageServer {
|
|||
link_support: Some(true),
|
||||
..Default::default()
|
||||
}),
|
||||
code_action: Some(CodeActionClientCapabilities {
|
||||
code_action_literal_support: Some(CodeActionLiteralSupport {
|
||||
code_action_kind: CodeActionKindLiteralSupport {
|
||||
value_set: vec![
|
||||
CodeActionKind::REFACTOR.as_str().into(),
|
||||
CodeActionKind::QUICKFIX.as_str().into(),
|
||||
],
|
||||
},
|
||||
}),
|
||||
..Default::default()
|
||||
}),
|
||||
completion: Some(CompletionClientCapabilities {
|
||||
completion_item: Some(CompletionItemCapability {
|
||||
snippet_support: Some(true),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue