Open Number-3434 opened 9 months ago
@RedCMD would you like this?
EDIT: @RedCMD this is in the Backlog now!
Took a quick look at adding this. It will need a change in vscode-textmate. It should be very easy to show the comments in VS Code if https://github.com/microsoft/vscode-textmate/issues/227 is added.
Wow, thank you 😊!
@Number-3434 just to be clear, I don't know if or when https://github.com/microsoft/vscode-textmate/issues/227 will be added! But if it is, then the additional work will be small.
@alexr00 I understand, I'm just very happy that it is now in the Backlog (instead of Backlog Candidates, which I've never been able to get more than 3 upvotes on) 😃.
@alexr00 By the way, would it be possible to also include the name
property in the TextMate customisations in editor.tokenColorCustomizations
?
By the way, would it be possible to also include the name in the textmate customisations
In TextMate grammar, you can declare comments like so:
It would be useful if VSCode showed the comments in some way, as currently they are only descriptive in the TextMate file, and do not provide any external help.
This could be used to provide basic documentation for TextMate scopes.
You can also declare names for token customisations.
Proposal
Show comments in the TextMate scope inspector (access using Developer: Inspect Editor Tokens and Scopes (editor.action.inspectTMScopes))