mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
refactor: Remove unnecessary command
This commit is contained in:
parent
79860808cb
commit
9f21891950
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user