diff options
| author | Alexander Gonzalez <alexfertel97@gmail.com> | 2021-07-25 17:50:16 -0400 |
|---|---|---|
| committer | Alexander Gonzalez <alexfertel97@gmail.com> | 2021-07-27 18:29:22 -0400 |
| commit | 9f21891950abdfa9fc51a778c37ca02f0b239d12 (patch) | |
| tree | d469212b67cc03c289553a6afc51432279fa12bf /editors/code | |
| parent | 79860808cb73ed8ecef6bc0991505a1678b799ed (diff) | |
| download | rust-9f21891950abdfa9fc51a778c37ca02f0b239d12.tar.gz rust-9f21891950abdfa9fc51a778c37ca02f0b239d12.zip | |
refactor: Remove unnecessary command
Diffstat (limited to 'editors/code')
| -rw-r--r-- | editors/code/src/commands.ts | 24 |
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; |
