refactor: Remove unnecessary command

This commit is contained in:
Alexander Gonzalez 2021-07-25 17:50:16 -04:00
parent 79860808cb
commit 9f21891950

View File

@ -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;