Skip to content

Commit 14f00ad

Browse files
bors[bot]matklad
andauthored
Merge #9733
9733: internal: cleanup lsp-extensions docs r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 33f12a3 + 2229cfc commit 14f00ad

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

docs/dev/lsp-extensions.md

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ https://clangd.llvm.org/extensions.html#utf-8-offsets
2727

2828
## Configuration in `initializationOptions`
2929

30-
**Issue:** https://github.com/microsoft/language-server-protocol/issues/567
30+
**Upstream Issue:** https://github.com/microsoft/language-server-protocol/issues/567
3131

3232
The `initializationOptions` field of the `InitializeParams` of the initialization request should contain the `"rust-analyzer"` section of the configuration.
3333

@@ -43,7 +43,7 @@ If a language client does not know about `rust-analyzer`'s configuration options
4343

4444
## Snippet `TextEdit`
4545

46-
**Issue:** https://github.com/microsoft/language-server-protocol/issues/724
46+
**Upstream Issue:** https://github.com/microsoft/language-server-protocol/issues/724
4747

4848
**Experimental Client Capability:** `{ "snippetTextEdit": boolean }`
4949

@@ -77,7 +77,7 @@ At the moment, rust-analyzer guarantees that only a single edit will have `Inser
7777

7878
## `CodeAction` Groups
7979

80-
**Issue:** https://github.com/microsoft/language-server-protocol/issues/994
80+
**Upstream Issue:** https://github.com/microsoft/language-server-protocol/issues/994
8181

8282
**Experimental Client Capability:** `{ "codeActionGroup": boolean }`
8383

@@ -124,7 +124,7 @@ Invoking code action at this position will yield two code actions for importing
124124

125125
## Parent Module
126126

127-
**Issue:** https://github.com/microsoft/language-server-protocol/issues/1002
127+
**Upstream Issue:** https://github.com/microsoft/language-server-protocol/issues/1002
128128

129129
**Experimental Server Capability:** `{ "parentModule": boolean }`
130130

@@ -158,7 +158,7 @@ mod foo;
158158

159159
## Join Lines
160160

161-
**Issue:** https://github.com/microsoft/language-server-protocol/issues/992
161+
**Upstream Issue:** https://github.com/microsoft/language-server-protocol/issues/992
162162

163163
**Experimental Server Capability:** `{ "joinLines": boolean }`
164164

@@ -205,7 +205,7 @@ fn main() {
205205

206206
## On Enter
207207

208-
**Issue:** https://github.com/microsoft/language-server-protocol/issues/1001
208+
**Upstream Issue:** https://github.com/microsoft/language-server-protocol/issues/1001
209209

210210
**Experimental Server Capability:** `{ "onEnter": boolean }`
211211

@@ -298,7 +298,7 @@ SSR with query `foo($a, $b) ==>> ($a).foo($b)` will transform, eg `foo(y + 5, z)
298298

299299
## Matching Brace
300300

301-
**Issue:** https://github.com/microsoft/language-server-protocol/issues/999
301+
**Upstream Issue:** https://github.com/microsoft/language-server-protocol/issues/999
302302

303303
**Experimental Server Capability:** `{ "matchingBrace": boolean }`
304304

@@ -343,7 +343,7 @@ Moreover, it would be cool if editors didn't need to implement even basic langua
343343

344344
## Runnables
345345

346-
**Issue:** https://github.com/microsoft/language-server-protocol/issues/944
346+
**Upstream Issue:** https://github.com/microsoft/language-server-protocol/issues/944
347347

348348
**Experimental Server Capability:** `{ "runnables": { "kinds": string[] } }`
349349

@@ -617,7 +617,7 @@ Such actions on the client side are appended to a hover bottom as command links:
617617

618618
## Open Cargo.toml
619619

620-
**Issue:** https://github.com/rust-analyzer/rust-analyzer/issues/6462
620+
**Upstream Issue:** https://github.com/rust-analyzer/rust-analyzer/issues/6462
621621

622622
**Experimental Server Capability:** `{ "openCargoToml": boolean }`
623623

@@ -660,7 +660,7 @@ interface TestInfo {
660660

661661
## Hover Range
662662

663-
**Issue:** https://github.com/microsoft/language-server-protocol/issues/377
663+
**Upstream Issue:** https://github.com/microsoft/language-server-protocol/issues/377
664664

665665
**Experimental Server Capability:** { "hoverRange": boolean }
666666

@@ -687,7 +687,7 @@ Triggering a hover inside the selection above will show a result of `i32`.
687687

688688
## Move Item
689689

690-
**Issue:** https://github.com/rust-analyzer/rust-analyzer/issues/6823
690+
**Upstream Issue:** https://github.com/rust-analyzer/rust-analyzer/issues/6823
691691

692692
This request is sent from client to server to move item under cursor or selection in some direction.
693693

@@ -712,7 +712,7 @@ export const enum Direction {
712712

713713
## Workspace Symbols Filtering
714714

715-
**Issue:** https://github.com/rust-analyzer/rust-analyzer/pull/7698
715+
**Upstream Issue:** https://github.com/microsoft/language-server-protocol/issues/941
716716

717717
**Experimental Server Capability:** `{ "workspaceSymbolScopeKindFiltering": boolean }`
718718

@@ -746,6 +746,8 @@ const enum WorkspaceSymbolSearchKind {
746746

747747
## Client Commands
748748

749+
**Upstream Issue:** https://github.com/microsoft/language-server-protocol/issues/642
750+
749751
**Experimental Client Capability:** `{ "commands?": ClientCommandOptions }`
750752

751753
Certain LSP types originating on the server, notably code lenses, embed commands.
@@ -757,9 +759,9 @@ This extensions allows the client to communicate this info.
757759

758760
```typescript
759761
export interface ClientCommandOptions {
760-
/**
761-
* The commands to be executed on the client
762-
*/
763-
commands: string[];
762+
/**
763+
* The commands to be executed on the client
764+
*/
765+
commands: string[];
764766
}
765767
```

0 commit comments

Comments
 (0)