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

Incorrect highlight color #12190

Closed
slavizh opened this issue Oct 18, 2023 · 2 comments · Fixed by #12199
Closed

Incorrect highlight color #12190

slavizh opened this issue Oct 18, 2023 · 2 comments · Fixed by #12199

Comments

@slavizh
Copy link
Contributor

slavizh commented Oct 18, 2023

Bicep version
Bicep CLI version 0.22.6 (d62b94d)

Describe the bug
If you have the code below the type (where we have 'SystemAssigned' | 'SystemAssigned, UserAssigned' | 'None' | '') is incorrectly highlighted in purple color just like the type identityOutput . It should be blue in this case.

type identityOutput = {
  @description('Some description')
  type: 'SystemAssigned' | 'SystemAssigned, UserAssigned' | 'None' | ''
  principalId: string
  tenantId: string
}

To Reproduce
Steps to reproduce the behavior:

Additional context
Add any other context about the problem here.

@slavizh slavizh changed the title Incorrect highligh color Incorrect highlight color Oct 18, 2023
@slavizh
Copy link
Contributor Author

slavizh commented Oct 19, 2023

happens as soon as you put description on top of type.

@anthony-c-martin
Copy link
Member

This should be straightforward to fix - looks like we're just missing implementation for some of the *TypeSyntax nodes here: https://github.com/Azure/bicep/blob/main/src/Bicep.LangServer/SemanticTokenVisitor.cs

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

Successfully merging a pull request may close this issue.

2 participants