Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@scottmckendry
Copy link
Contributor

Adds the bicep-params filetype to allow better bicep language support out of the box, adds two new ftplugin files for bicep and bicep-params.

Why two filetypes?

The bicep language server handles parameter files differently than regular bicep files. Treating them the same at the editor level leads to false positive diagnostics in the editor. To work around this, I've had my own ftplugin and ftdetcect configs for quite some time.

References

Bicep Language Constants:
https://github.com/Azure/bicep/blob/51392d32ca2c8b94b1bb7a255e78e1d559d12573/src/Bicep.Core/LanguageConstants.cs#L23

VS Code Extension definition:
https://github.com/Azure/bicep/blob/51392d32ca2c8b94b1bb7a255e78e1d559d12573/src/vscode-bicep/package.json#L47

@chrisbra
Copy link
Member

thanks. this is slightly backwards incompatible, but I hope it won't hurt that much, as bicep is probably not the most widely used language on the planet.

@chrisbra chrisbra closed this in 4e722fd Dec 27, 2025
zeertzjq added a commit to zeertzjq/neovim that referenced this pull request Dec 27, 2025
Problem:  filetype: bicep filetype used for 2 bicep file types
Solution: Detect *.bicepparam files as bicep-param filetype, include
          new bicep-params and bicep filetype plugin
          (Scott McKendry)

The bicep language server handles parameter files differently than
regular bicep files. Treating them the same at the editor level leads to
false positive diagnostics in the editor.

References:

Bicep Language Constants:
- https://github.com/Azure/bicep/blob/51392d32ca2c8b94b1bb7a255e78e1d559d12573/src/Bicep.Core/LanguageConstants.cs#L23
VS Code Extension definition:
- https://github.com/Azure/bicep/blob/51392d32ca2c8b94b1bb7a255e78e1d559d12573/src/vscode-bicep/package.json#L47

closes: vim/vim#19026

vim/vim@4e722fd

Co-authored-by: Scott McKendry <[email protected]>
zeertzjq added a commit to neovim/neovim that referenced this pull request Dec 28, 2025
…pes (#37130)

Problem:  filetype: bicep filetype used for 2 bicep file types
Solution: Detect *.bicepparam files as bicep-param filetype, include
          new bicep-params and bicep filetype plugin
          (Scott McKendry)

The bicep language server handles parameter files differently than
regular bicep files. Treating them the same at the editor level leads to
false positive diagnostics in the editor.

References:

Bicep Language Constants:
- https://github.com/Azure/bicep/blob/51392d32ca2c8b94b1bb7a255e78e1d559d12573/src/Bicep.Core/LanguageConstants.cs#L23
VS Code Extension definition:
- https://github.com/Azure/bicep/blob/51392d32ca2c8b94b1bb7a255e78e1d559d12573/src/vscode-bicep/package.json#L47

closes: vim/vim#19026

vim/vim@4e722fd

Co-authored-by: Scott McKendry <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants