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

Weird arrow function color in latest VSCode + lang="ts" #3497

Open
4 tasks done
rockmandash opened this issue Aug 11, 2022 · 1 comment
Open
4 tasks done

Weird arrow function color in latest VSCode + lang="ts" #3497

rockmandash opened this issue Aug 11, 2022 · 1 comment

Comments

@rockmandash
Copy link

rockmandash commented Aug 11, 2022

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: macOS
  • Vetur version: 0.36.0
  • VS Code version: 1.70.1

Problem

Weird arrow function color in latest VSCode + lang="ts"

Every theme produced same result, so theme is fine, I'm using default dark theme here:

image
image

Reproducible Case

  1. Upgrade to latest VSCode and vetur
  2. Paste following example code to a new file
<script lang="ts">
export default {
  methods: {
    cool() {
      return () => {};
    },
  },
};
</script>
  1. Problem occurs
@alexander-gekov
Copy link
Contributor

microsoft/vscode#157322 I believe it's an issue with VS Code and its bracket pairing.

As mentioned in vuejs/language-tools#1677 (comment), adding the following to settings.json can be used as a temporary workaround:

"editor.language.colorizedBracketPairs": [
["{", "}"],
["[", "]"],
["(", ")"]
]

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

No branches or pull requests

3 participants