Skip to content

Visual Studio Code IntelliSense does not work for optional parameters in .bicepparam files. #14464

@DanijelMalik

Description

@DanijelMalik

Bicep version
0.28.1 (but it's probably an issue in the previous versions too)

Describe the bug
Visual Studio Code IntelliSense does not work for optional parameters in .bicepparam files....however it works for modules.

// Mod.bicep
type Resource = {
  name: string
  resourceGroupName: string?
}

param storageAccount Resource?

resource StorageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' existing = if (storageAccount != null) {
  name: storageAccount.?name ?? ''
  scope: resourceGroup(storageAccount.?resourceGroupName ?? '')
}

output storageAccountId string? = storageAccount == null ? null : StorageAccount.id

IntelliSense works when referencing a module from another .bicep file...
Screenshot 2024-07-01 at 6 53 05 PM

...but it doesn't work with .bicepparam files.
Screenshot 2024-07-01 at 6 53 37 PM

Metadata

Metadata

Assignees

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions