mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
fmt
This commit is contained in:
parent
8af3d6367e
commit
46e022098f
8 changed files with 58 additions and 37 deletions
|
@ -756,14 +756,18 @@ export function addProject(ctx: CtxInit): Cmd {
|
|||
return;
|
||||
}
|
||||
|
||||
let workspaces: JsonProject[] = await Promise.all(vscode.workspace.workspaceFolders!.map(async (folder): Promise<JsonProject> => {
|
||||
return discoverWorkspace(vscode.workspace.textDocuments, discoverProjectCommand, { cwd: folder.uri.fsPath });
|
||||
}));
|
||||
const workspaces: JsonProject[] = await Promise.all(
|
||||
vscode.workspace.workspaceFolders!.map(async (folder): Promise<JsonProject> => {
|
||||
return discoverWorkspace(vscode.workspace.textDocuments, discoverProjectCommand, {
|
||||
cwd: folder.uri.fsPath,
|
||||
});
|
||||
})
|
||||
);
|
||||
|
||||
await ctx.client.sendRequest(ra.addProject, {
|
||||
project: workspaces
|
||||
project: workspaces,
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
async function showReferencesImpl(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue