Skip to content

Commit 5f88df8

Browse files
committed
Remove unnecessary async from vscode language client creation
1 parent fc57358 commit 5f88df8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

editors/code/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as vscode from 'vscode';
44
import { CallHierarchyFeature } from 'vscode-languageclient/lib/callHierarchy.proposed';
55
import { SemanticTokensFeature, DocumentSemanticsTokensSignature } from 'vscode-languageclient/lib/semanticTokens.proposed';
66

7-
export async function createClient(serverPath: string, cwd: string): Promise<lc.LanguageClient> {
7+
export function createClient(serverPath: string, cwd: string): lc.LanguageClient {
88
// '.' Is the fallback if no folder is open
99
// TODO?: Workspace folders support Uri's (eg: file://test.txt).
1010
// It might be a good idea to test if the uri points to a file.

editors/code/src/ctx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class Ctx {
2121
serverPath: string,
2222
cwd: string,
2323
): Promise<Ctx> {
24-
const client = await createClient(serverPath, cwd);
24+
const client = createClient(serverPath, cwd);
2525
const res = new Ctx(config, extCtx, client, serverPath);
2626
res.pushCleanup(client.start());
2727
await client.onReady();

0 commit comments

Comments
 (0)