-
Notifications
You must be signed in to change notification settings - Fork 12.8k
String templates not colorized in VS 2013 #1698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Duplicate of #1477, see my comment for an explanation of the technical difficulties associated with this: #1477 (comment) . Though, we could enhance the lexical classifier, but I don't know if it's really worth it. |
@DanielRosenwasser, colour would really help The template string version is more difficult to comprehend. |
@NoelAbrahams I understand that. This is probably a lousy experience for most people, and as the one who implemented templates, I personally felt like I owed our users something a little better. This afternoon I whipped something up. I have a branch from which you can build the source code and swap out your language service in VS2013. The specific commit (e42ce9c) can be cherry picked onto the Basically, as long as your template strings' substitutions don't contain:
this should fit your needs. If it doesn't, well, you probably have other problems to worry about. 😉 |
@DanielRosenwasser, will try that out. Do you mean to say that in VS 2015 this should be coloured correctly? (A bug in NTVS is preventing us from using VS 2015 atm, but we should be migrating soon.) Thanks! |
You're very welcome! Let me know how this works out for you. Yes, 2015 should already work with template colorization. That's unfortunate - does the Node Tools team know about the bug? |
Yes, there's a discussion item. |
A fix is now in |
String templates should be colorizes like string literals.
The text was updated successfully, but these errors were encountered: