When the new VS Text Editor is opened with some special output (e.g. Stack Trace Explorer in ReSharper), it has no path,
so the argument path in SettingsExtensions.TryLoad is null, and NullReferenceException is thrown in parser.Parse(string).
So null-check must be needed.
Repro
Install both EditorConfig extension and ReSharper (an example) in Visual Studio instance.
Open Stack Trace Explorer in ReSharper. Parsed stack trace are shown in [Stack Trace Explorer] pane.
But suddenly [Error List] pane is shown with EditorConfig extension's NullReferenceException.
Overview
When the new VS Text Editor is opened with some special output (e.g. Stack Trace Explorer in ReSharper), it has no path, so the argument
path
inSettingsExtensions.TryLoad
is null, andNullReferenceException
is thrown inparser.Parse(string)
. So null-check must be needed.Repro
NullReferenceException
.