Open ru4ert opened 1 year ago
Current Sync does this:
The publish was like this:
So the expectation ist that the description should be pulled/synced too.
There was a reason this has never been implemented. Azure DevOps don't have a concept of plain text descriptions. Even if you do a simple thing like this: The API will return this:
"System.Description": "<div>Test description <span>😊</span> </div><div>Second line </div>",
Even if I do a simple parsing (each <div>
being separate line) we might lose some of the original formatting and that's what I was afraid of. If you have good idea on how to handle that please let me know.
Render it as HTML?
Between here:
</span> </div>
should be a \n
=> so in your logic a new line.
So, then its possible do edit the description as html. Does VSCode provides some sort of RichText Editor which is able to render html?
Render it as HTML?
Yeah, that's the only reasonable option to avoid losing anything but then it becomes a problem for non-technical people who don't know HTML. I was surprised but also roles like PM use this extension and they don't necessarily have technical background. That being said I'll play around with it and maybe introduce this as opt-in experimental feature so users have to explicitly enable it first and accept the risk :)
So, then its possible do edit the description as html. Does VSCode provides some sort of RichText Editor which is able to render html?
Yes, there is a way to embed HTML within any other language. I don't know how to do that yet but I'll figure it out. If it's too much work then still HTML can be just not highlighted at least in first version of this feature.
Great!
A opt in description support for description would be really nice 👍🏻🙂
Sync tasks from Azure DevOps should fetch description too.