about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorveetaha <veetaha2@gmail.com>2020-04-25 20:52:50 +0300
committerveetaha <veetaha2@gmail.com>2020-04-25 20:52:50 +0300
commit5f88df82a67d3d17bbead1179f82ad7261f68692 (patch)
tree6b1c68837c827f4e92a0e6b97b34b406770ec1f1 /editors/code/src
parentfc57358efda7c028cbe8a438446cce5f540f48ca (diff)
downloadrust-5f88df82a67d3d17bbead1179f82ad7261f68692.tar.gz
rust-5f88df82a67d3d17bbead1179f82ad7261f68692.zip
Remove unnecessary async from vscode language client creation
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/client.ts2
-rw-r--r--editors/code/src/ctx.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts
index 0ad4b63aeb1..97e79409156 100644
--- a/editors/code/src/client.ts
+++ b/editors/code/src/client.ts
@@ -4,7 +4,7 @@ import * as vscode from 'vscode';
 import { CallHierarchyFeature } from 'vscode-languageclient/lib/callHierarchy.proposed';
 import { SemanticTokensFeature, DocumentSemanticsTokensSignature } from 'vscode-languageclient/lib/semanticTokens.proposed';
 
-export async function createClient(serverPath: string, cwd: string): Promise<lc.LanguageClient> {
+export function createClient(serverPath: string, cwd: string): lc.LanguageClient {
     // '.' Is the fallback if no folder is open
     // TODO?: Workspace folders support Uri's (eg: file://test.txt).
     // It might be a good idea to test if the uri points to a file.
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts
index f7ed62d0356..41df119910a 100644
--- a/editors/code/src/ctx.ts
+++ b/editors/code/src/ctx.ts
@@ -21,7 +21,7 @@ export class Ctx {
         serverPath: string,
         cwd: string,
     ): Promise<Ctx> {
-        const client = await createClient(serverPath, cwd);
+        const client = createClient(serverPath, cwd);
         const res = new Ctx(config, extCtx, client, serverPath);
         res.pushCleanup(client.start());
         await client.onReady();