-
Notifications
You must be signed in to change notification settings - Fork 817
[Experimental] Support multi-line string interpolation #18324
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
Conversation
|
Test this change out locally with the following install scripts (Action run 18892424573) VSCode
Azure CLI
|
Dotnet Test Results 96 files - 48 96 suites - 48 40m 7s ⏱️ - 29m 33s Results for commit 78ac4ed. ± Comparison against base commit 7c51895. This pull request removes 1942 and adds 748 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
46465ac to
b5393d3
Compare
fe10c03 to
3ddcdc5
Compare
9cd5099 to
347fd05
Compare
347fd05 to
78ac4ed
Compare
shenglol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
|
Amazing to see this, great job |
Remove the experimental feature flag for multi-line interpolated
strings.
Description of the feature:
> Adds an optional `$` prefix to the current multiline opening syntax
`'''`, which enables interpolation using standard `${...}` Bicep
interpolation. To permit a `${...}` literal value > without escaping
requirements, you can specify the number of `$` characters required for
interpolation by repeating the `$` prefix.
>
> Basic example:
> ```bicep
> var s = $'''
> this is ${interpolated}'''
> ```
>
> With multiple `$` characters:
> ```bicep
> var s = $$'''
> this is $${interpolated}
> this is not ${interpolated}'''
> ```
Original PR: #18324
Closes #3389
Adds an optional
$prefix to the current multiline opening syntax''', which enables interpolation using standard${...}Bicep interpolation. To permit a${...}literal value without escaping requirements, you can specify the number of$characters required for interpolation by repeating the$prefix.Basic example:
With multiple
$characters:This is currently experimental, and requires enabling experimental feature
multilineStringInterpolation.Closes #3389