提交 ad26c704 编写于 作者: C CyrusNajmabadi 提交者: GitHub

Merge pull request #14443 from CyrusNajmabadi/navToCancellation

Deal with a cancellation exception being t hrown through a sync-path in NavigateTo
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.CSharp.CodeFixes.Spellcheck;
using Xunit;
using Microsoft.CodeAnalysis.Diagnostics;
using Roslyn.Test.Utilities;
using Microsoft.CodeAnalysis.CodeActions;
using System.Collections.Generic;
using Xunit;
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Diagnostics.SpellCheck
{
......
......@@ -68,6 +68,9 @@ internal async void Search()
await Task.WhenAll(searchTasks).ConfigureAwait(false);
}
}
catch (OperationCanceledException)
{
}
finally
{
_callback.Done();
......
......@@ -202,7 +202,7 @@ public async Task TestPreviewDiagnosticTagger()
}
}
[WpfFact]
[WpfFact(Skip = "https://github.com/dotnet/roslyn/issues/14444")]
public async Task TestPreviewDiagnosticTaggerInPreviewPane()
{
using (var workspace = await TestWorkspace.CreateCSharpAsync("class { }"))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册