Skip to content

Commit 40e08e6

Browse files
committed
Update typescript and docs
1 parent bc04ac1 commit 40e08e6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/dev/lsp-extensions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ interface ExpandMacroParams {
582582
**Response:**
583583

584584
```typescript
585-
interface ExpandedMacro {
585+
interface ExpandedInlineMacro {
586586
name: string,
587587
expansion: SnippetTextEdit[],
588588
}

editors/code/src/lsp_ext.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ export const expandMacro = new lc.RequestType<ExpandMacroParams, ExpandedMacro |
7575
"rust-analyzer/expandMacro"
7676
);
7777

78-
export const expandMacroInline = new lc.RequestType<ExpandMacroParams, ExpandedMacro | null, void>(
78+
export interface ExpandedInlineMacro {
79+
name: string;
80+
expansion: SnippetTextEdit[];
81+
}
82+
export const expandMacroInline = new lc.RequestType<ExpandMacroParams, ExpandedInlineMacro | null, void>(
7983
"rust-analyzer/expandMacroInline"
8084
);
8185

0 commit comments

Comments
 (0)