visual-studio-coderustrust-analyzer

rust-analyzer.linkedProjects doesn't work with relative path, ${workspaceFolder}. Is there any workaround?


I want to avoid the configuration by machine. Do you know anything workaround?


Solution

  • to .vscode/settings.json, should add the path to Cargo.toml, like this.

    // correct
    "rust-analyzer.linkedProjects": [
      "relateive/path/to/the/project/directory/Cargo.toml",
    ]
    
    // incorrect
    "rust-analyzer.linkedProjects": [
      "relateive/path/to/the/project/directory",
    ]