-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Labels
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:
- Create Q# project Foo with an error in it:
operation FooOp : Unit {
NotDefined();
}
export FooOp;
- Create another Q# project Bar that depends on Foo:
{
"dependencies": {
"Foo": {
"path": "../Foo"
}
}
}
operation Main() : Unit {}
- Look back to the code in Foo and notice that there is an error for
NotDefined()
not being defined. - Delete the line for
NotDefined()
. - The error for
NotDefined()
will persist even though it is not present in the code anymore. - Touch the code in Bar.
- 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.