Skip to content

Commit 9f21891

Browse files
committed
refactor: Remove unnecessary command
1 parent 7986080 commit 9f21891

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

editors/code/src/commands.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -116,30 +116,6 @@ export function matchingBrace(ctx: Ctx): Cmd {
116116
};
117117
}
118118

119-
export function hoverRange(ctx: Ctx): Cmd {
120-
return async () => {
121-
const editor = ctx.activeRustEditor;
122-
const client = ctx.client;
123-
if (!editor || !client) return;
124-
125-
client
126-
.sendRequest(ra.hoverRange, {
127-
textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(
128-
editor.document
129-
),
130-
range: client.code2ProtocolConverter.asRange(editor.selection),
131-
})
132-
.then(
133-
(result) => client.protocol2CodeConverter.asHover(result),
134-
(error) => {
135-
client.handleFailedRequest(lc.HoverRequest.type, undefined, error, null);
136-
return Promise.resolve(null);
137-
}
138-
);
139-
};
140-
}
141-
142-
143119
export function joinLines(ctx: Ctx): Cmd {
144120
return async () => {
145121
const editor = ctx.activeRustEditor;

0 commit comments

Comments
 (0)