From a781a58fe2cefefbf9bf505247df78fd750a8f13 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 31 Mar 2020 09:05:22 +0100 Subject: Throw error if no folder is opened --- editors/code/src/ctx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/src/ctx.ts') 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 { config: Config, extCtx: vscode.ExtensionContext, serverPath: string, - workspaceFolder: vscode.WorkspaceFolder | null, + workspaceFolder: vscode.WorkspaceFolder, ): Promise { const client = await createClient(config, serverPath, workspaceFolder); const res = new Ctx(config, extCtx, client, serverPath); -- cgit v1.2.3