F# FSI fsi.AddPrinter: add link to output

54 Views Asked by At

I'm using VS Code with the ionide plugin. I would like add Hyperlink to the output of a fsi.AddPrinter function. Something like this Code:

fsi.AddPrinter (fun (wi:WorkItem) -> 
    wi.Id 
    |> sprintf "http://server:port/path/%i"
    |> sprintf "[link](%s)" 
)

The created otput is not clickable, meaning the link is displayed but i can not click it. Some error mssages do produce links, that can be (Ctrl-)clicked.

A link like this works:

A link like

does not work.

Is there some way to use somthing like markdown to specify a link in the output?

1

There are 1 best solutions below

0
Peter Siebke On

The solution is that I have to add the Domain to the link: This link works:

http://server.company.com:port/path/path/path/path/

Related Questions in F#

Related Questions in F#-INTERACTIVE