diff options
author | Zac Pullar-Strecker <[email protected]> | 2020-08-30 09:02:29 +0100 |
---|---|---|
committer | Zac Pullar-Strecker <[email protected]> | 2020-10-08 02:59:31 +0100 |
commit | bfda0d25834250a3adbcd0d26953a1cdc6662e7f (patch) | |
tree | 439fa97a999360cb5fe4602e7ab26d66aa6a3662 /editors/code/src/lsp_ext.ts | |
parent | e95e666b106b2f63ab2b350e656c9e8b96441fa7 (diff) |
WIP: Command to open docs under cursor
Diffstat (limited to 'editors/code/src/lsp_ext.ts')
-rw-r--r-- | editors/code/src/lsp_ext.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/editors/code/src/lsp_ext.ts b/editors/code/src/lsp_ext.ts index f286b68a6..569e747bd 100644 --- a/editors/code/src/lsp_ext.ts +++ b/editors/code/src/lsp_ext.ts | |||
@@ -118,3 +118,14 @@ export interface CommandLinkGroup { | |||
118 | title?: string; | 118 | title?: string; |
119 | commands: CommandLink[]; | 119 | commands: CommandLink[]; |
120 | } | 120 | } |
121 | |||
122 | export interface DocumentationLink { | ||
123 | remote: string; | ||
124 | } | ||
125 | |||
126 | export interface OpenDocsParams { | ||
127 | textDocument: lc.TextDocumentIdentifier; | ||
128 | position: lc.Position; | ||
129 | } | ||
130 | |||
131 | export const openDocs = new lc.RequestType<OpenDocsParams, DocumentationLink, void>('rust-analyzer/openDocs'); | ||