Skip to content

Commit 03a0f3c

Browse files
cartermpbrettfo
authored andcommitted
Fix annotation view (#4938)
1 parent 03724f9 commit 03a0f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vsintegration/src/FSharp.Editor/LanguageService/LanguageService.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ type internal FSharpLanguageService(package : FSharpPackage) =
663663
match hier with
664664
| :? IProvideProjectSite as siteProvider when not (IsScript(filename)) ->
665665
this.SetupProjectFile(siteProvider, this.Workspace, "SetupNewTextView")
666-
| h when not (IsScript(filename)) ->
666+
| h when not (isNull h) && not (IsScript(filename)) ->
667667
let docId = this.Workspace.CurrentSolution.GetDocumentIdsWithFilePath(filename).FirstOrDefault()
668668
match docId with
669669
| null ->

0 commit comments

Comments
 (0)