Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from xamarin/fsharp-editor-pyro
Browse files Browse the repository at this point in the history
[VSMac] Update for the Pyro API changes
  • Loading branch information
nosami authored Mar 22, 2021
2 parents 276939a + 3090fd9 commit 3e07e07
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e07e07

Please sign in to comment.