aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/ctx.ts
diff options
context:
space:
mode:
authorTim <[email protected]>2020-03-31 09:05:22 +0100
committerTim Hutt <[email protected]>2020-03-31 09:06:52 +0100
commita781a58fe2cefefbf9bf505247df78fd750a8f13 (patch)
treeb0a332117f094a98ca9818bb1da53df2a29f3262 /editors/code/src/ctx.ts
parent6e535915bda524de34f011f75067132e88a3a3cc (diff)
Throw error if no folder is opened
Diffstat (limited to 'editors/code/src/ctx.ts')
-rw-r--r--editors/code/src/ctx.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts
index 0e705bc84..255d57f5e 100644
--- a/editors/code/src/ctx.ts
+++ b/editors/code/src/ctx.ts
@@ -19,7 +19,7 @@ export class Ctx {
19 config: Config, 19 config: Config,
20 extCtx: vscode.ExtensionContext, 20 extCtx: vscode.ExtensionContext,
21 serverPath: string, 21 serverPath: string,
22 workspaceFolder: vscode.WorkspaceFolder | null, 22 workspaceFolder: vscode.WorkspaceFolder,
23 ): Promise<Ctx> { 23 ): Promise<Ctx> {
24 const client = await createClient(config, serverPath, workspaceFolder); 24 const client = await createClient(config, serverPath, workspaceFolder);
25 const res = new Ctx(config, extCtx, client, serverPath); 25 const res = new Ctx(config, extCtx, client, serverPath);