vscode-annotator icon indicating copy to clipboard operation
vscode-annotator copied to clipboard

Highlight annotated code using the same syntax setting as the original file.

Open kavehv opened this issue 9 years ago • 8 comments

This would be great to have.

kavehv avatar Jul 14 '16 23:07 kavehv

Yeah, this would be awesome, but as the annotation view is just a html and not a TextDocument I don't think I can easily make it. For now, I would just hope vscode someday introduce a function to let us have a left column in each textdocument. Then I would stop using html view, simply use a textdocument and feed the left column with the annotation.

ryu1kn avatar Jul 15 '16 09:07 ryu1kn

https://github.com/Microsoft/monaco-editor 😆

agauniyal avatar Aug 11 '16 08:08 agauniyal

Haha. Well it seems there is at least a way though it would be a bit overkill :p

ryu1kn avatar Aug 11 '16 11:08 ryu1kn

For now, I would just hope vscode someday introduce a function to let us have a left column in each textdocument. Then I would stop using html view, simply use a textdocument and feed the left column with the annotation.

This appears to be the feature request I also wanted: https://github.com/Microsoft/vscode/issues/9561

ryu1kn avatar Aug 11 '16 13:08 ryu1kn

@ryu1kn Your feature request seems to be solved: Microsoft/vscode#9561

Does that mean that you now have everything you need in the API to use a TextDocument?

razvanphp avatar Oct 10 '16 20:10 razvanphp

The issue has been closed with the new feature for just switching the way to display line numbers; and that's not enough for Annotator to put annotations into gutter.

ryu1kn avatar Oct 10 '16 23:10 ryu1kn

Thanks for getting vscode slightly better with this extension.

+1 (this issue) , to be honest for me this is a must-have, not just could-have. Blame other IDEs out there :)

santeriv avatar Sep 14 '17 05:09 santeriv

Is it still impossible to get it highlighted?

OnkelTem avatar Jan 31 '22 10:01 OnkelTem