Skip to content

Syntax highlighting not working for TypeScript - Visual Studio 2017 #21915

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

Closed
Ruud-cb opened this issue Feb 13, 2018 · 3 comments
Closed

Syntax highlighting not working for TypeScript - Visual Studio 2017 #21915

Ruud-cb opened this issue Feb 13, 2018 · 3 comments

Comments

@Ruud-cb
Copy link

Ruud-cb commented Feb 13, 2018

TypeScript Version: 2.3.2

Search Terms: Syntax highlighting visual studio 2017 v15.5.6 Net Core project witf tsconfig.json

Code
image

Expected behavior:
Expected normal highlighting...

Actual behavior:
No syntax highlighting...
The intellisense is working (or resharper I am not sure) for giving suggestions during typing. It also correctly detects if a certain import is incorrect (path) and it does not compile when errors are present. So it truly is only about the highlighting.

Related Issues:
#20680
Tried deleting cache, didn't work, I could not find the "Visual Studio Extension for Textmate Grammars" extension to actually install it, probably only for visual studio code.
#18130
Visual studio 2017 Enterprise v15.5.6
I installed TS SDK 2.7.1
Typescript Tools for Visual Studio version 15.5.11025.1
Resharper 2017.3.2
#14523
Almost same findings as him, instead I use a student license. Currently not signed in inside visual studio, only into VSO git service.
I don't have a folder with "%userprofile%.vs.... (yes I checked hidden files), so I also don't have the mentioned extension that could cause the problem.
#14422

Number one solution would be updating Typescript, but my computer at home does not have the issue.
Also tried to disable the Language Service (Options->Text Editor->JavaScript/TypeScript->Language Service) but that didn't help either. mentioned here

@mhegazy
Copy link
Contributor

mhegazy commented Feb 13, 2018

Can you confirm that the "Visual Studio Extension for Textmate Grammars" extension is enabled?

@Ruud-cb
Copy link
Author

Ruud-cb commented Feb 13, 2018

Wauw,, my assumptions were incorrect. Googling this to download it only shows a VSCode version. Turns out it installs automatically with VS2017, yet it was disabled (WHY?), enabling it via Tools -> Extensions & Updates did the trick. Nice waste of time today...

@Ruud-cb Ruud-cb closed this as completed Feb 13, 2018
@saliehendricks
Copy link

This saved me from hurting myself! Thanks for the tip. Enabling "Visual Studio Extension for Textmate Grammars" fixed my syntax highlighting woes

@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants