skip to Main Content

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 this extension that offers an alternative syntax highlighting (which worked, but I would prefer using the Visual Studio Code one).

8

Answers


  1. I think this was caused by the extension called JavaScript and TypeScript Nightly. This was causing the syntax highlighting for .js and .ts files (.jsx and .tsx too). This was more of a bug with the latest version (currently 1.73.1).

    You can disable the extension to enable the syntax highlighting.

    JavaScript and TypeScript Nightly


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

    Login or Signup to reply.
  2. What user Haneen said was correct, but instead of disabling it, you can install an old version that works just fine.

    Click the cog on the bottom right → ‘Install Another Version’ → select an older version.

    Cog at bottom right

    Login or Signup to reply.
  3. Yes, this is exactly caused by the JavaScript and TypeScript Nightly extension.

    You can disable or install another version (I recommend installing the prior version since the current version has a bug).

    Enter image description here

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

    Enter image description here

    Login or Signup to reply.
  4. 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.

    Login or Signup to reply.
  5. 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

    Login or Signup to reply.
  6. As others mentioned, the two latest versions are causing issue for me, but 5.20221115 is working for me.

    Login or Signup to reply.
  7. It was fixed with the latest update of JavaScript and TypeScript Nightly.

    Login or Signup to reply.
  8. I think this was caused by the extension called JavaScript and TypeScript Nightly. This was causing the syntax highlighting for .js and .ts files This was more of a bug with the latest version

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search