Project dependents will put error squiggles on dependency project
@minestarks is already working on this.
Since May 8, 2025.
- Dominant language
- Rust
- Stars
- 1k
- Forks
- 212
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 65
Description
**Describe the bug**
When you have multiple projects open in VS Code, an error in one place can get error squiggles from multiple projects. The squiggles from other projects won't be cleared until code form that project is touched.
**To Reproduce**
Steps to reproduce the behavior:
1. Create Q# project Foo with an error in it:
```qsharp
operation FooOp : Unit {
NotDefined();
}
export FooOp;
```
2. Create another Q# project Bar that depends on Foo:
```json
{
"dependencies": {
"Foo": {
"path": "../Foo"
}
}
}
```
```qsharp
operation Main() : Unit {}
```
3. Look back to the code in Foo and notice that there is an error for `NotDefined()` not being defined.
4. Delete the line for `NotDefined()`.
5. The error for `NotDefined()` will persist even though it is not present in the code anymore.
6. Touch the code in Bar.
7. Notice the persistent error for `NotDefined()` will be gone.
This is happening because Bar put an error in Foo for the `NotDefined()` issue, even though it wasn't Bar's code.
**Expected behavior**
Projects should not put error squiggles in their dependency's code.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.