diff options
| author | ivan770 <leshenko.ivan770@gmail.com> | 2021-03-16 14:37:00 +0200 |
|---|---|---|
| committer | ivan770 <leshenko.ivan770@gmail.com> | 2021-03-18 11:22:27 +0200 |
| commit | 7d604584954660d255ad0929d3be8ce03f879d0c (patch) | |
| tree | 613fdfdfd7eeb170082800533fb8b669dc35d25b /docs/dev | |
| parent | d704750ba982153d92ccff90cf236121641b9da3 (diff) | |
| download | rust-7d604584954660d255ad0929d3be8ce03f879d0c.tar.gz rust-7d604584954660d255ad0929d3be8ce03f879d0c.zip | |
Item up and down movers
Diffstat (limited to 'docs/dev')
| -rw-r--r-- | docs/dev/lsp-extensions.md | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md index 694fafcd5c6..8a6f9f06e7d 100644 --- a/docs/dev/lsp-extensions.md +++ b/docs/dev/lsp-extensions.md @@ -1,5 +1,5 @@ <!--- -lsp_ext.rs hash: 4dfa8d7035f4aee7 +lsp_ext.rs hash: e8a7502bd2b2c2f5 If you need to change the above hash to make the test pass, please check if you need to adjust this doc as well and ping this issue: @@ -595,3 +595,29 @@ interface TestInfo { runnable: Runnable; } ``` + +## Hover Actions + +**Issue:** https://github.com/rust-analyzer/rust-analyzer/issues/6823 + +This request is sent from client to server to move item under cursor or selection in some direction. + +**Method:** `experimental/moveItemUp` +**Method:** `experimental/moveItemDown` + +**Request:** `MoveItemParams` + +**Response:** `TextDocumentEdit | null` + +```typescript +export interface MoveItemParams { + textDocument: lc.TextDocumentIdentifier, + range: lc.Range, + direction: Direction +} + +export const enum Direction { + Up = "Up", + Down = "Down" +} +``` |
