Open FloatingSunfish opened 3 years ago
I can confirm this for Python too. I have a string like this:
var = "This is a text with a #sign"
In this case above the word "sign" becomes grayed out and striked through. Which should not happen, since its part of a string.
@haimat Thanks for confirming this issue in another language! 🙂 Please give the OP a Thumbs Up so the dev can add it to their backlog!
Because the dev seems to be inactive for now, I found a workaround:
"editor.tokenColorCustomizations": {
// Make all comments Red.
"comments": "#FF2D00"
}
Won't be needing this extension anymore, but I'm keeping this issue open so the dev can fix it for those who do want to use this extension.
Because the dev seems to be inactive for now, I found a workaround:
"editor.tokenColorCustomizations": { // Make all comments Red. "comments": "#FF2D00" }
Won't be needing this extension anymore, but I'm keeping this issue open so the dev can fix it for those who do want to use this extension.
Could you please elaborate - how is this a workaround for this issue?
@haimat My apologies for the confusion. I meant a workaround for my specific case, as I was only using this extension to make my comments stand out by making them Red.
Now that I have a way to recolor my comments, I have no further use for this extension, but I want to keep this issue open so the dev can see it and potentially fix it for those who still want to use this extension.
@FloatingSunfish Unerstood, thanks!
Just confirming the same issue with TypeScript/JS.
I've tested both single-quote ( '
) and double-quote ( "
) strings, and template literals ( `
).
It is present for properly formed single-line (//
), block (/* */
), and JavaDoc (/** */
) comments.
Example below:
Below are my settings:
The above works correctly for regular comments.
However, even for strings, comment stylization is kicking in:
Above, everything from
//
gets stylized.Changing the
tag
setting to a single space still triggers the issue:Below is the same string, but with a space added after
//
:Above, everything from
//
gets stylized.It seems that Better Comments gets confused when strings contain things that look like comments.