提交 f8fca30e 编写于 作者: S Sam Harwell

Document ignored cancellation token

上级 83a6d3ae
......@@ -123,7 +123,14 @@ internal override void Shutdown()
// We don't want to block up file removal on the UI thread since we want that path to stay asynchronous.
CodeModelService.DetachFormatTrackingToBuffer(_invisibleEditor.TextBuffer);
State.ProjectCodeModelFactory.ScheduleDeferredCleanupTask(cancellationToken => { _invisibleEditor.Dispose(); });
State.ProjectCodeModelFactory.ScheduleDeferredCleanupTask(
cancellationToken =>
{
// Ignore cancellationToken: we always need to call Dispose since it triggers the file save.
_ = cancellationToken;
_invisibleEditor.Dispose();
});
}
base.Shutdown();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册