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.
1 parent 03724f9 commit 03a0f3cCopy full SHA for 03a0f3c
vsintegration/src/FSharp.Editor/LanguageService/LanguageService.fs
@@ -663,7 +663,7 @@ type internal FSharpLanguageService(package : FSharpPackage) =
663
match hier with
664
| :? IProvideProjectSite as siteProvider when not (IsScript(filename)) ->
665
this.SetupProjectFile(siteProvider, this.Workspace, "SetupNewTextView")
666
- | h when not (IsScript(filename)) ->
+ | h when not (isNull h) && not (IsScript(filename)) ->
667
let docId = this.Workspace.CurrentSolution.GetDocumentIdsWithFilePath(filename).FirstOrDefault()
668
match docId with
669
| null ->
0 commit comments