We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 497c019 commit 2625495Copy full SHA for 2625495
editors/code/src/ctx.ts
@@ -190,8 +190,11 @@ export class Ctx implements RustAnalyzerExtensionApi {
190
if (this.config.discoverProjectRunner) {
191
const command = `${this.config.discoverProjectRunner}.discoverWorkspaceCommand`;
192
log.info(`running command: ${command}`);
193
- const project: JsonProject = await vscode.commands.executeCommand(command);
194
- this.setWorkspaces([project]);
+ const uris = vscode.workspace.textDocuments
+ .filter(isRustDocument)
195
+ .map((document) => document.uri);
196
+ const projects: JsonProject[] = await vscode.commands.executeCommand(command, uris);
197
+ this.setWorkspaces(projects);
198
}
199
200
if (this.workspace.kind === "Detached Files") {
0 commit comments