question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Highlighting broken in javascriptreact language based file

See original GitHub issue

I’ve just noticed that the latest release have broken the syntax highlighting of javascriptreact language based files potentially because of vscode-language-babel/commit/da7b1e2df5f8182814605b11098c32e220bc902d. Am I missing something as to why it was removed?

Thanks for the great work!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
michaelgmcdcommented, Jun 22, 2018

@madiodio I’ve reverted it and published 0.0.17 with the change. Let me know if you continue to run into issues.

1reaction
madiodiocommented, Jun 22, 2018

My bad. But not just syntax highlighting is broken the whole grammar is broken eg. auto-completion specifically in template literals. see the diff below.

(Notice it works with Babel Javascript as the language identifier but does not in javascriptreact)

Babel Javascript

screen shot 2018-06-22 at 00 22 34

javascriptreact screen shot 2018-06-22 at 00 23 23

I checked the commit you refered to, but I still don’t see why the javascriptreact language identifier was removed tough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode React JSX syntax highlighting broken - Stack Overflow
This happens in a lot of JSX files. Highlight mode is set to "JavaScript React". enter image description here · reactjs · visual-studio-code ......
Read more >
Syntax coloring not working. · Issue #111 · microsoft/vscode ...
I am trying to use VS Code for a simple react native project. I installed the react native extension, and it seemed to...
Read more >
Javascript syntax highlighting it not working
For me it starts to work when "Enable the new JavaScript language service" (Options->Text Editor->JavaScript/TypeScript->Language Service) is set to unchecked.
Read more >
Vscode React Jsx Syntax Highlighting Broken - ADocLib
This is a plain.ts file (so uses typescript language) but typescript-react ... Syntax highlighting with JSX-Fragments is broken in Javascript React mode.
Read more >
Strict Mode - React
StrictMode is a tool for highlighting potential problems in an application. Like Fragment , StrictMode does not render any visible UI.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found