未验证 提交 599d45ee 编写于 作者: J Jason Malinowski 提交者: GitHub

Merge pull request #24937 from KirillOsenkov/Fix24625

When a text buffer does not represent a document from a workspace Get…
......@@ -897,6 +897,11 @@ public async Task<ISuggestedActionCategorySet> GetSuggestedActionCategoriesAsync
using (var asyncToken = _owner.OperationListener.BeginAsyncOperation(nameof(GetSuggestedActionCategoriesAsync)))
{
var document = range.Snapshot.GetOpenDocumentInCurrentContextWithChanges();
if (document == null)
{
return null;
}
using (var linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken))
{
var linkedToken = linkedTokenSource.Token;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册