mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Throw error if no folder is opened
This commit is contained in:
parent
6e535915bd
commit
a781a58fe2
3 changed files with 9 additions and 4 deletions
|
@ -19,7 +19,7 @@ export class Ctx {
|
|||
config: Config,
|
||||
extCtx: vscode.ExtensionContext,
|
||||
serverPath: string,
|
||||
workspaceFolder: vscode.WorkspaceFolder | null,
|
||||
workspaceFolder: vscode.WorkspaceFolder,
|
||||
): Promise<Ctx> {
|
||||
const client = await createClient(config, serverPath, workspaceFolder);
|
||||
const res = new Ctx(config, extCtx, client, serverPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue