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

[BUG] Bracket Pair Colorization with Vue 3 (setup) #156168

Closed
leonardssh opened this issue Jul 25, 2022 · 3 comments
Closed

[BUG] Bracket Pair Colorization with Vue 3 (setup) #156168

leonardssh opened this issue Jul 25, 2022 · 3 comments
Assignees
Labels
bracket-pair-colorization *caused-by-extension Issue identified to be caused by an extension
Milestone

Comments

@leonardssh
Copy link

Does this issue occur when all extensions are disabled?: No

  • Version: 1.70.0-insider (user setup)
  • Commit: 3cbf306
  • Date: 2022-07-25T05:27:52.229Z
  • Electron: 18.3.5
  • Chromium: 100.0.4896.160
  • Node.js: 16.13.2
  • V8: 10.0.139.17-electron.0
  • OS: Windows_NT x64 10.0.22000

Steps to Reproduce:

  1. Be sure editor.bracketPairColorization.enabled is true
  2. Install Volar extension to be able to have syntax highlight
  3. Create [name].vue file
  4. Copy & paste the above code
<script lang="ts" setup>
import { ref } from "vue"

const count = ref(0)
</script>

image

Issue:
> & < shouldn't be red.

Additional information:
I've found the issue, apparently that red arrows highlight appears when lang="ts".

lang="ts"
image

lang="js"
image

no lang
image

@leonardssh
Copy link
Author

Related to vuejs/language-tools#1566, doesn't seem like to be an issue with the Volar extension. According to vuejs/language-tools#1566 (comment)

I tested, and it's true, the problem comes from editor.bracketPairColorization.enabled.

@hediet hediet added bracket-pair-colorization bug Issue identified by VS Code Team member as probable bug labels Jul 25, 2022
@hediet hediet modified the milestones: On Deck, August 2022 Jul 25, 2022
@hediet
Copy link
Member

hediet commented Jul 29, 2022

Opening bracket:

image

Closing bracket:

image

I suggest that the vue language also marks the closing bracket as vue language, not as typescript.

@hediet hediet added *caused-by-extension Issue identified to be caused by an extension and removed bug Issue identified by VS Code Team member as probable bug labels Jul 29, 2022
@hediet hediet modified the milestones: August 2022, July 2022 Jul 29, 2022
@VSCodeTriageBot
Copy link
Collaborator

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines.

Happy Coding!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bracket-pair-colorization *caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

3 participants