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

Enable bicep-params language in GH builds #8671

Merged
merged 1 commit into from
Oct 17, 2022
Merged

Conversation

majastrz
Copy link
Member

@majastrz majastrz commented Oct 15, 2022

Extremely hacky solution to enable params language on GH builds. (Official builds are not affected.)

Local builds by default do not enable params unless you specifically run npm run params in /src/vscode-bicep. If you do don't accidentally check in the modified package.json.

I looked for various CLI based options first, but ran either into wrong merge behaviors (replacing arrays completely), or packages had vulnerabilities or their last update was years ago. In the end, I decided to just hack up a tiny JS script and exclude it from eslint, so it doesn't complain about the project file not matching.

Microsoft Reviewers: Open in CodeFlow

@majastrz majastrz marked this pull request as ready for review October 15, 2022 20:13
"json-ptr": "^3.1.0",
"jsonpath": "^1.1.1",
"lodash.range": "^3.2.0",
"vm2": "^3.9.9"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to your change, but 🤔 this is a way bigger dependency closure than I would have expected for a deepmerge function.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah especially vm2!

{
"language": "bicep-params",
"scopeName": "source.bicep",
"path": "./syntaxes/bicep.tmlanguage"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in scope for this PR, but will bicep param files need a separate textmate grammar?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure. @anthony-c-martin, thoughts?

@majastrz majastrz merged commit 4707ce6 into main Oct 17, 2022
@majastrz majastrz deleted the majastrz/nightly-params branch October 17, 2022 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants