-
Notifications
You must be signed in to change notification settings - Fork 58
Fix for #594. #614
base: main
Are you sure you want to change the base?
Fix for #594. #614
Conversation
@xinyi-joffre: Is this something you would find useful in the portal-hosted notebook experience? |
Yes, this looks like a cool feature! |
@xinyi-joffre: Awesome! @SamarSha: Any thoughts on where code that's currently duplicated should live longer-term? Thanks! |
@SamarSha: Apologies for the hassle, but wanted to ping again for your thoughts on this one. Thanks! |
|
Much obliged, really appreciate your thoughts!
Sounds good, we may also want to refactor DocumentationGenerator to rely on some of that as well then. At least when DocumentationGenerator was first written, the unparser was missing a few cases and had a fair bit marked as private or internal.
Makes sense! Would you prefer it in that F# project, then?
Sounds good, I guess then we could pull in the [Microsoft.Quantum.DocumentationGenerator package](https://www.nuget.org/packages/Microsoft.Quantum.DocumentationGenerator/0.24.203411-beta f) from here to get that extension, would just need to mark it public in that project? |
I think the unparser's API could use a lot of improvement, yeah - if you have specific examples of things the documentation generator wants, that would be helpful.
Core is probably the best place for it, yeah.
Yes, there'd be a dependency here on the DocumentationGenerator package. |
This PR suggests a fix for #594, and is marked in draft to avoid duplication of code in the qsharp-compiler repo. If we want to adopt these changes, I would suggest that a corresponding PR should be made against qsharp-compiler to make the
SyntaxExtensions
class publicly available.Example screenshot