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

Merge pull request #38112 from chborl/fix38111

Fix null reference error when opening a miscellaneous files file
......@@ -224,10 +224,9 @@ public bool TryAddDocumentToWorkspace(string filePath, ITextBuffer buffer)
{
using (_gate.DisposableWait())
{
Contract.ThrowIfNull(_workspace);
if (_generatedFilenameToInformation.TryGetValue(filePath, out var fileInfo))
{
Contract.ThrowIfNull(_workspace);
Contract.ThrowIfTrue(_openedDocumentIds.ContainsKey(fileInfo));
// We do own the file, so let's open it up in our workspace
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册