Skip to content

Highlighting of HEREDOC has a different color only for the first character #1278

Open
@orgads

Description

@orgads

Server Version

0.31.1

Terraform Version

Terraform v1.4.6
on windows_amd64

Client Version

VS Code 1.78.1

Terraform Configuration Files

resource "azurerm_monitor_scheduled_query_rules_alert_v2" "test" {
  criteria {
    query = <<-QUERY
    traces
    QUERY
  }
}

Log Output

https://gist.github.com/orgads/87c8ffa8c37c8e203d9b8b18a5fbe301

Expected Behavior

The first character should be brown, as the rest of the string.

Actual Behavior

The first character is colored like keywords (true/false)

image

Steps to Reproduce

  1. Open a folder in VS Code
  2. Paste the example above
  3. Trigger autocompletion

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions