about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorAlexander Gonzalez <alexfertel97@gmail.com>2021-07-25 17:50:16 -0400
committerAlexander Gonzalez <alexfertel97@gmail.com>2021-07-27 18:29:22 -0400
commit9f21891950abdfa9fc51a778c37ca02f0b239d12 (patch)
treed469212b67cc03c289553a6afc51432279fa12bf /editors/code
parent79860808cb73ed8ecef6bc0991505a1678b799ed (diff)
downloadrust-9f21891950abdfa9fc51a778c37ca02f0b239d12.tar.gz
rust-9f21891950abdfa9fc51a778c37ca02f0b239d12.zip
refactor: Remove unnecessary command
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/src/commands.ts24
1 files changed, 0 insertions, 24 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index 7f5cdd4876e..20ef1573f6c 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -116,30 +116,6 @@ export function matchingBrace(ctx: Ctx): Cmd {
     };
 }
 
-export function hoverRange(ctx: Ctx): Cmd {
-    return async () => {
-        const editor = ctx.activeRustEditor;
-        const client = ctx.client;
-        if (!editor || !client) return;
-
-        client
-        .sendRequest(ra.hoverRange, {
-            textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(
-                editor.document
-            ),
-            range: client.code2ProtocolConverter.asRange(editor.selection),
-        })
-        .then(
-            (result) => client.protocol2CodeConverter.asHover(result),
-            (error) => {
-                client.handleFailedRequest(lc.HoverRequest.type, undefined, error, null);
-                return Promise.resolve(null);
-            }
-        );
-    };
-}
-
-
 export function joinLines(ctx: Ctx): Cmd {
     return async () => {
         const editor = ctx.activeRustEditor;