diff --git a/src/Sarif.Viewer.VisualStudio.Core/CodeAnalysisResultManager.cs b/src/Sarif.Viewer.VisualStudio.Core/CodeAnalysisResultManager.cs index 5b47ca84..37b57019 100644 --- a/src/Sarif.Viewer.VisualStudio.Core/CodeAnalysisResultManager.cs +++ b/src/Sarif.Viewer.VisualStudio.Core/CodeAnalysisResultManager.cs @@ -465,7 +465,7 @@ private string ResolvePathThroughOpenFiles(string relativeFilePath) if (window.Document != null) { string fileName = window.Document.FullName; - if (fileName.EndsWith(relativeFilePath, StringComparison.OrdinalIgnoreCase)) + if (fileName.EndsWith(relativeFilePath.Replace('/', Path.DirectorySeparatorChar), StringComparison.OrdinalIgnoreCase)) { return window.Document.FullName; } diff --git a/src/Sarif.Viewer.VisualStudio.Core/ErrorList/ColumnFilterer.cs b/src/Sarif.Viewer.VisualStudio.Core/ErrorList/ColumnFilterer.cs index 28be72bb..d535a110 100644 --- a/src/Sarif.Viewer.VisualStudio.Core/ErrorList/ColumnFilterer.cs +++ b/src/Sarif.Viewer.VisualStudio.Core/ErrorList/ColumnFilterer.cs @@ -25,7 +25,12 @@ private IWpfTableControl ErrorListTableControl { get { - ThreadHelper.ThrowIfNotOnUIThread(); + if (!SarifViewerPackage.IsUnitTesting) + { +#pragma warning disable VSTHRD108 // Assert thread affinity unconditionally + ThreadHelper.ThrowIfNotOnUIThread(); +#pragma warning restore VSTHRD108 + } if (this.errorListTableControl == null) { @@ -42,7 +47,12 @@ private IWpfTableControl ErrorListTableControl public void FilterOut(string columnName, string filteredValue) { - ThreadHelper.ThrowIfNotOnUIThread(); + if (!SarifViewerPackage.IsUnitTesting) + { +#pragma warning disable VSTHRD108 // Assert thread affinity unconditionally + ThreadHelper.ThrowIfNotOnUIThread(); +#pragma warning restore VSTHRD108 + } var filteredColumnValue = new FilteredColumnValue(columnName, filteredValue); if (!this.filteredColumnValues.Contains(filteredColumnValue)) diff --git a/src/Sarif.Viewer.VisualStudio.ResultSources.DeveloperCanvas.Core/Services/DevCanvasResultSourceService.cs b/src/Sarif.Viewer.VisualStudio.ResultSources.DeveloperCanvas.Core/Services/DevCanvasResultSourceService.cs index 6c44feb5..e239d81f 100644 --- a/src/Sarif.Viewer.VisualStudio.ResultSources.DeveloperCanvas.Core/Services/DevCanvasResultSourceService.cs +++ b/src/Sarif.Viewer.VisualStudio.ResultSources.DeveloperCanvas.Core/Services/DevCanvasResultSourceService.cs @@ -145,7 +145,7 @@ public DevCanvasResultSourceService( public System.Threading.Tasks.Task InitializeAsync() { // TODO: Remove this when merging into main. - DevCanvasTracer.WriteLine($"Initializing {nameof(DevCanvasResultSourceService)}. Version 9/7"); + DevCanvasTracer.WriteLine($"Initializing {nameof(DevCanvasResultSourceService)}. Version 10/5"); string userName = (string)Registry.GetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\VSCommon\\ConnectedUser\\IdeUserV4\\Cache", "EmailAddress", null); if (string.IsNullOrWhiteSpace(userName) || !userName.EndsWith("@microsoft.com")) diff --git a/src/Sarif.Viewer.VisualStudio.ResultSources.Domain/Sarif.Viewer.VisualStudio.ResultSources.Domain.csproj b/src/Sarif.Viewer.VisualStudio.ResultSources.Domain/Sarif.Viewer.VisualStudio.ResultSources.Domain.csproj index d7c12bf5..73656542 100644 --- a/src/Sarif.Viewer.VisualStudio.ResultSources.Domain/Sarif.Viewer.VisualStudio.ResultSources.Domain.csproj +++ b/src/Sarif.Viewer.VisualStudio.ResultSources.Domain/Sarif.Viewer.VisualStudio.ResultSources.Domain.csproj @@ -47,7 +47,7 @@ 16.0.206 - 13.0.1 + 12.0.3 2.4.15 diff --git a/src/Sarif.Viewer.VisualStudio.ResultSources.GitHubAdvancedSecurity/Sarif.Viewer.VisualStudio.ResultSources.GitHubAdvancedSecurity.csproj b/src/Sarif.Viewer.VisualStudio.ResultSources.GitHubAdvancedSecurity/Sarif.Viewer.VisualStudio.ResultSources.GitHubAdvancedSecurity.csproj index 3ee385dc..254da885 100644 --- a/src/Sarif.Viewer.VisualStudio.ResultSources.GitHubAdvancedSecurity/Sarif.Viewer.VisualStudio.ResultSources.GitHubAdvancedSecurity.csproj +++ b/src/Sarif.Viewer.VisualStudio.ResultSources.GitHubAdvancedSecurity/Sarif.Viewer.VisualStudio.ResultSources.GitHubAdvancedSecurity.csproj @@ -62,7 +62,7 @@ 16.0.206 - 13.0.1 + 12.0.3 0.51.0 diff --git a/src/Sarif.Viewer.VisualStudio/Sarif.Viewer.VisualStudio.csproj b/src/Sarif.Viewer.VisualStudio/Sarif.Viewer.VisualStudio.csproj index 354779d4..e1b7b709 100644 --- a/src/Sarif.Viewer.VisualStudio/Sarif.Viewer.VisualStudio.csproj +++ b/src/Sarif.Viewer.VisualStudio/Sarif.Viewer.VisualStudio.csproj @@ -68,7 +68,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - + 2.4.15