diff options
author | Tim <[email protected]> | 2020-03-30 18:12:22 +0100 |
---|---|---|
committer | Tim Hutt <[email protected]> | 2020-03-30 21:23:21 +0100 |
commit | 768aa4259fce15f313042892739ed4d8b7e518b4 (patch) | |
tree | f50618675b04ea7d29490fc942fb6cde6b3c161a /editors/code/src/ctx.ts | |
parent | 671926ac93f0ff921758a919eaf87c056979189f (diff) |
Add basic task support
This adds basic support for running `cargo build`, `cargo run`, etc.
Diffstat (limited to 'editors/code/src/ctx.ts')
-rw-r--r-- | editors/code/src/ctx.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index d2f49cd23..0e705bc84 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts | |||
@@ -15,8 +15,13 @@ export class Ctx { | |||
15 | 15 | ||
16 | } | 16 | } |
17 | 17 | ||
18 | static async create(config: Config, extCtx: vscode.ExtensionContext, serverPath: string): Promise<Ctx> { | 18 | static async create( |
19 | const client = await createClient(config, serverPath); | 19 | config: Config, |
20 | extCtx: vscode.ExtensionContext, | ||
21 | serverPath: string, | ||
22 | workspaceFolder: vscode.WorkspaceFolder | null, | ||
23 | ): Promise<Ctx> { | ||
24 | const client = await createClient(config, serverPath, workspaceFolder); | ||
20 | const res = new Ctx(config, extCtx, client, serverPath); | 25 | const res = new Ctx(config, extCtx, client, serverPath); |
21 | res.pushCleanup(client.start()); | 26 | res.pushCleanup(client.start()); |
22 | await client.onReady(); | 27 | await client.onReady(); |