Skip to content
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

JavaScript "console.log" highlighting incorrect #414

Closed
wgumenyuk opened this issue Aug 18, 2020 · 18 comments
Closed

JavaScript "console.log" highlighting incorrect #414

wgumenyuk opened this issue Aug 18, 2020 · 18 comments

Comments

@wgumenyuk
Copy link

How it currently is:
1

How it should be:
2

Additional information

  • Semantic highlighting is disabled
  • No JavaScript highlighting extentions installed
  • Still occurs with all extenstions disabled

Is anyone else experiencing this?

@tmurph21
Copy link

Same issue here.

Changing the settings to "editor.semanticHighlighting.enabled": "configuredByTheme" or true makes it worse.

@symonxdd
Copy link

Try reinstalling the theme? Under what circumstance does it not work? It works fine for me.

@wgumenyuk
Copy link
Author

@symonxdd Reinstalling did nothing, unfortunately. What version of VS Code are you using?

@symonxdd
Copy link

I'm on 1.48.1. But now that I think about it, you probably have an extension that's messing with the JS syntax-highlighting. Try disabling / removing some. Let us know if you got it fixed.

@zyzski
Copy link

zyzski commented Aug 24, 2020

experiencing the same, even with this being the only module enabled. very similar to what happened when they added semantic highlighting

@wgumenyuk
Copy link
Author

@symonxdd Even after a complete reinstall of VS Code (version 1.48.1) the issue still occurs. The only extenstion installed is this theme.

@symonxdd
Copy link

@wgumenyuk Can I ask where u got this screenshot from?
image

@wgumenyuk
Copy link
Author

@symonxdd For this screenshot I activated semantic highlighting in the settings. This doesn't fix my issue though, as enabling this feature messes up many other highlights.

@symonxdd
Copy link

symonxdd commented Aug 25, 2020

Could you give more examples of wrong highlights? Also, where did you active semantic highlighting?

@wgumenyuk
Copy link
Author

You can activate semantic highlighting by either opening VS Code's settings (File -> Preferences -> Settings) or changing editor.semanticHighlighting.enabled inside settings.json to true.

This then leads to broken syntax highlighting mentioned here:

Semantic highlighting seems to be working inconsistent.
Please remember, that I don't use this feature normally and highlighting is still broken for me and the other participants regardless.

@symonxdd
Copy link

Thanks for clarifying the matter. I noticed that when opening vscode and navigating to a JS file I got the same problem as you, but not for long. It got fixed after a fraction of a second after showing the following message at the bottom of vscode:

Initializing JS/TS language features

So I looked for an extension with that name and found following enabled, built-in extensions:

  • TypeScript and JavaScript Language Features &
  • TypeScript Language Basics

Can you make sure you have those installed and enabled?
It's easy to find by open the extensions sidebar and searching for @Builtin type (with a small b!)
image

@wgumenyuk
Copy link
Author

Yes, I have both extensions enabled, and see a Initializing JS/TS language features notification on startup as well.

@symonxdd
Copy link

Strange. What you could try next is uninstalling vscode with a program like IObit Uninstaller. Which deletes all the residual files as well, if that doesn't help, re-installing your OS will probably do the job 😂

@wgumenyuk
Copy link
Author

Haha, thanks for your help. I'll take a look at it tomorrow. :)

@symonxdd
Copy link

Did you get it fixed? If not, since when does it not work? From the beginning?

@wgumenyuk
Copy link
Author

This issue seems to have occured in one of the latest updates. Out of curiosity I installed VS Code on my Ubuntu (20.04.1) PC and the highlighting is still bugged, even with the same settings. I assume this is some bug with VS Code, since other themes also have the same highlighting error.

@symonxdd
Copy link

Alright! Hopefully it's fixed fast.

@wgumenyuk
Copy link
Author

Let's hope so! I'm going to close this issue, thank you very much for your help. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants