Merge #4572
4572: Link upstream issues r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
c5a2271580
@ -7,6 +7,8 @@ All capabilities are enabled via `experimental` field of `ClientCapabilities`.
|
|||||||
|
|
||||||
## Snippet `TextEdit`
|
## Snippet `TextEdit`
|
||||||
|
|
||||||
|
**Issue:** https://github.com/microsoft/language-server-protocol/issues/724
|
||||||
|
|
||||||
**Client Capability:** `{ "snippetTextEdit": boolean }`
|
**Client Capability:** `{ "snippetTextEdit": boolean }`
|
||||||
|
|
||||||
If this capability is set, `WorkspaceEdit`s returned from `codeAction` requests might contain `SnippetTextEdit`s instead of usual `TextEdit`s:
|
If this capability is set, `WorkspaceEdit`s returned from `codeAction` requests might contain `SnippetTextEdit`s instead of usual `TextEdit`s:
|
||||||
@ -38,6 +40,8 @@ At the moment, rust-analyzer guarantees that only a single edit will have `Inser
|
|||||||
|
|
||||||
## Join Lines
|
## Join Lines
|
||||||
|
|
||||||
|
**Issue:** https://github.com/microsoft/language-server-protocol/issues/992
|
||||||
|
|
||||||
**Server Capability:** `{ "joinLines": boolean }`
|
**Server Capability:** `{ "joinLines": boolean }`
|
||||||
|
|
||||||
This request is send from client to server to handle "Join Lines" editor action.
|
This request is send from client to server to handle "Join Lines" editor action.
|
||||||
@ -122,13 +126,15 @@ SSR with query `foo($a:expr, $b:expr) ==>> ($a).foo($b)` will transform, eg `foo
|
|||||||
|
|
||||||
## `CodeAction` Groups
|
## `CodeAction` Groups
|
||||||
|
|
||||||
|
**Issue:** https://github.com/microsoft/language-server-protocol/issues/994
|
||||||
|
|
||||||
**Client Capability:** `{ "codeActionGroup": boolean }`
|
**Client Capability:** `{ "codeActionGroup": boolean }`
|
||||||
|
|
||||||
If this capability is set, `CodeAction` returned from the server contain an additional field, `group`:
|
If this capability is set, `CodeAction` returned from the server contain an additional field, `group`:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
interface CodeAction {
|
interface CodeAction {
|
||||||
title: string;
|
title: string;
|
||||||
group?: string;
|
group?: string;
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user