Sometimes warning span the entire document for no reason
I have the same problem.
Adding to the information I debugged
Steps to reproduce:
- Open a csproj file with Warning or Error
- Close this file
- Reopen it
Possible causes:
In the following code, the snapshot is a document belonging to step 1, but the new document is already from step 3, so the SnapshotSpan it returns represents the entire document
https://github.com/mhutch/MonoDevelop.MSBuildEditor/blob/513fcf2897fa561a8e4ca40d5733b9c7f22d405c/MonoDevelop.MSBuild.Editor/MSBuildValidationTagger.cs#L73
I can't decide if this is right or what to do to fix it because I haven't written any extensions.
this happens for me, too - here's a screenshot of the errors:
a) SccAuxPath should be a Well-Known property, as well as SccProjectName , SccProvider and SccLocalPath b) the "property" PUBLISH_ZIP is in fact an environmentvariable i set from the outside and evaluate in a Condition: <Target Name="ZipPublishedArtifacts" AfterTargets="AfterPublish" Condition="$(PUBLISH_ZIP) == 'TRUE'"> --> it's probably useful to create a separate issue for each of these points, but the backlog seems long enough.
i'm uninstalling the extension for now, but will be happy to install it again if i can help fixing issues with it in any way :-)