diff options
| author | Alexander Gonzalez <alexfertel97@gmail.com> | 2021-07-26 17:33:21 -0400 |
|---|---|---|
| committer | Alexander Gonzalez <alexfertel97@gmail.com> | 2021-07-27 18:31:21 -0400 |
| commit | cff2a0fe320ae6c2c92acd5aa6317d71e3ca49ad (patch) | |
| tree | 0422590cae75da735e7c6081cc4a8746833eba9d /editors/code | |
| parent | c6fab1993ab84186be26733e339d80f2015c41ee (diff) | |
| download | rust-cff2a0fe320ae6c2c92acd5aa6317d71e3ca49ad.tar.gz rust-cff2a0fe320ae6c2c92acd5aa6317d71e3ca49ad.zip | |
lint: Format the typescript files properly
Diffstat (limited to 'editors/code')
| -rw-r--r-- | editors/code/src/client.ts | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index 272cfca66d8..b18cf4a20a0 100644 --- a/editors/code/src/client.ts +++ b/editors/code/src/client.ts @@ -62,27 +62,27 @@ export function createClient(serverPath: string, workspace: Workspace, extraEnv: textDocument: client.code2ProtocolConverter.asTextDocumentIdentifier(document), position: positionOrRange }, token).then( - (result) => { - const hover = + (result) => { + const hover = client.protocol2CodeConverter.asHover(result); - if (hover) { + if (hover) { const actions = (<any>result).actions; if (actions) { - hover.contents.push(renderHoverActions(actions)); + hover.contents.push(renderHoverActions(actions)); } - } - return hover; - }, - (error) => { - client.handleFailedRequest( + } + return hover; + }, + (error) => { + client.handleFailedRequest( lc.HoverRequest.type, token, error, null - ); - return Promise.resolve(null); - } - ); + ); + return Promise.resolve(null); + } + ); }, // Using custom handling of CodeActions to support action groups and snippet edits. // Note that this means we have to re-implement lazy edit resolving ourselves as well. |
