From 3090fd94b21b14740530e834bc8dd53f33cc9edb Mon Sep 17 00:00:00 2001 From: iain holmes Date: Fri, 12 Feb 2021 19:31:17 +0000 Subject: [PATCH] [VSMac] Update for the Pyro API changes --- .../FSharp.Editor/VSMac/FSharpPathedDocumentExtension.fs | 6 ++++++ 1 file changed, 6 insertions(+) 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