Home > Mobile >  Visual Studio Code syntax highlighting is not working for JavaScript and TypeScript
Visual Studio Code syntax highlighting is not working for JavaScript and TypeScript

Time:11-19

This suddenly happened after I created a new file while working on a project. Almost all characters are simply white text (except for brackets, because I have bracket pair colorization enabled)

First image showing how JavaScript and TypeScript syntax highlighting is not working

second image showing how JavaScript and TypeScript syntax highlighting is not working

third image showing how JavaScript and TypeScript syntax highlighting is not working

I already tried resetting my configurations, checked my configurations (both globally and in my workspace), and tried JavaScript and TypeScript Nightly


This extension has now been updated and this issue is fixed.

CodePudding user response:

What Enter image description here

I am currently using the version which was released 2022-11-13.

Enter image description here

CodePudding user response:

The current version (v5.0.20221116) for JavaScript and TypeScript Nightly seems to be breaking the syntax highlighting. Downgrading to a previous version might resolve this issue.

Enter image description here

This was resolved in v5.0.20221117 however.

CodePudding user response:

Also, I deleted this JavaScript and TypeScript Nightly package, and now it works fine for me.

The module on the marketplace: JavaScript and TypeScript Nightly

CodePudding user response:

As others mentioned, the two latest versions are causing issue for me, but 5.20221115 is working for me.

CodePudding user response:

I had the same problem today and after trying different options, I found a YouTube video on the same topic. The guy explained on clearing the settings.json file. It solved my problem.

Video on solving JavaScript syntax not highlighting in Visual Studio Code

CodePudding user response:

It was fixed with the latest update of JavaScript and TypeScript Nightly.

  • Related