Skip to content

Handle new const parameter for variables #2264

@pawcykca

Description

@pawcykca

Extension Version

v2.39.2

VS Code Version

Version: 1.119.0 (user setup)
Commit: 8b640eef5a6c6089c029249d48efa5c99adf7d51
Date: 2026-05-05T11:23:50-07:00
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Operating System

Windows 11 Pro 26200.8246

Terraform Version

Terraform v1.15.2

Steps to Reproduce

  1. Define variable with parameter "const = true"

Expected Behavior

TF VSCode extension will not show error as on screenshot

Actual Behavior

TF VSCode extension will show error as on screenshot

Image

Terraform Configuration

variable "test_module_version" {
  type    = string
  default = "v0.2.0"
  const   = true
}

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions