Support suggestions in VS Code diff comments
Problem to solve
GitLab supports a custom suggestion Markdown code blocks
```suggestion:-0+0
suggested text
```
Which gets rendered on the web as
but in VS Code it renders as a generic text block:
Proposal
Implement a post-processing of comments in VS Code to convert the custom suggestion into a diff block:
```suggestion:-1+0
,--,
```
changes to
Suggestion:
```diff
-
- ,,,
+ ,--,
```
rendered as
Further details
- This would be quite complex because as seen in the previous example, suggestion can span multiple lines (
suggestion:-1+0
) and so the logic would have to work not only on comments but also access the text file to have the full context.
Links / references
Edited by Tomas Vik