We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 30dcc6d + 8293a36 commit 03b3a03Copy full SHA for 03b3a03
SharedProject/Editor/DynamicCoverage/Utilities/TextInfo.cs
@@ -36,7 +36,7 @@ public TextInfo(ITextView textView, ITextBuffer textBuffer)
36
public ITextView TextView { get; }
37
public ITextBuffer2 TextBuffer { get; }
38
public string FilePath => this.TextDocument?.FilePath;
39
- public string GetFileText() => File.ReadAllText(this.FilePath);
+ public string GetFileText() => File.Exists(this.FilePath) ? File.ReadAllText(this.FilePath) : null;
40
public DateTime GetLastWriteTime() => new FileInfo(this.FilePath).LastWriteTime;
41
}
42
0 commit comments