mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
fix: don't override linkedProjects
if no workspace was discovered.
This commit is contained in:
parent
bd545a1c10
commit
6e7bc07cdf
2 changed files with 9 additions and 2 deletions
|
@ -205,7 +205,9 @@ export class Ctx {
|
|||
const initializationOptions = prepareVSCodeConfig(
|
||||
rawInitializationOptions,
|
||||
(key, obj) => {
|
||||
if (key === "linkedProjects") {
|
||||
// we only want to set discovered workspaces on the right key
|
||||
// and if a workspace has been discovered.
|
||||
if (key === "linkedProjects" && this.config.discoveredWorkspaces.length > 0) {
|
||||
obj["linkedProjects"] = this.config.discoveredWorkspaces;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue