diff --git a/vsintegration/src/FSharp.Editor/VSMac/FSharpPathedDocumentExtension.fs b/vsintegration/src/FSharp.Editor/VSMac/FSharpPathedDocumentExtension.fs index ec81442fbe4..b71d7e2cc8c 100644 --- a/vsintegration/src/FSharp.Editor/VSMac/FSharpPathedDocumentExtension.fs +++ b/vsintegration/src/FSharp.Editor/VSMac/FSharpPathedDocumentExtension.fs @@ -228,6 +228,12 @@ type internal FSharpPathedDocumentExtension(projectInfoManager: FSharpProjectOpt interface IPathedDocument with member x.CurrentPath = currentPath + member x.DataProviderForIndex(index) = + let path = (x :> IPathedDocument).CurrentPath + if path = null || index < 0 || index >= path.Length then null else + let tag = path.[index].Tag + FSharpDataProvider(x, tag, view) :> _ + member x.CreatePathWidget(index) = let path = (x :> IPathedDocument).CurrentPath if path = null || index < 0 || index >= path.Length then null else