Open BarCoP opened 1 year ago
I can add that if I close the .js file and reopen it, it can be seen that the '${}' is colored with another color (green in the example above) but after half of a second, Monokai Pro colors it with yellow to be the same color as the rest of the string.
the setting of my .json file is:
I see that this issue has been opened before: https://github.com/microsoft/vscode/issues/141321
I hope that you can add this fix, would help programs that using Monokai pro to distinguish template-literal more clearly than the current state.
It appears that when I wrap the expression with parentheses:
The dynamic expression in the template literal is colored.
However, if I use VScode with the Prettier extension (which I do),
It automatically removes the parentheses which I added to wrap the expression and causes the problem I talk about. If I disable Prettier
It solves the problem.
That behavior seems very odd to me.
Another progress: if I add curly braces, Monokai detects and colors the expression:
without it, the expression is not colored:
Hope this example will help to understand the problem here(and by the way I notice the typo I had in "transform" and "transfrom" 😁
I just fix it turning on these two options
Thanks a lot! I have another question: in Monokai Pro, the saved word for public library does not color in blue (such as 'console', 'Math' etc and stays in white color.
Would you happen to know how I can fix it?
Hello,
I have been using the beautiful Monokai Pro (v1.2.0) and I have noticed that whenever I use string template literals in string phrases in JS files, Monokai does not color the template literal in the string in order to distinguish them from the rest of the string:
The phrase '${}' which contains the template literal should have a different color (usually a red color) and not be colored the same as the rest of the string (yellow).
I hope you can add an update that colors the relevant expression and distinguishes it from the rest of the string.
Thanks :)