aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/lsp_ext.ts
diff options
context:
space:
mode:
authorZac Pullar-Strecker <[email protected]>2020-08-30 09:02:29 +0100
committerZac Pullar-Strecker <[email protected]>2020-10-08 02:59:31 +0100
commitbfda0d25834250a3adbcd0d26953a1cdc6662e7f (patch)
tree439fa97a999360cb5fe4602e7ab26d66aa6a3662 /editors/code/src/lsp_ext.ts
parente95e666b106b2f63ab2b350e656c9e8b96441fa7 (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.ts11
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
122export interface DocumentationLink {
123 remote: string;
124}
125
126export interface OpenDocsParams {
127 textDocument: lc.TextDocumentIdentifier;
128 position: lc.Position;
129}
130
131export const openDocs = new lc.RequestType<OpenDocsParams, DocumentationLink, void>('rust-analyzer/openDocs');