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

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

Open
DanijelMalik opened this issue Jul 1, 2024 · 0 comments

Comments

@DanijelMalik
Copy link

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

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

No branches or pull requests

2 participants