Skip to content

Escape strings correctly in snippets - #14582

Merged
Anthony Martin (anthony-c-martin) merged 2 commits into
mainfrom
ant/issue14578
Jul 18, 2024
Merged

Anthony Martin (anthony-c-martin) merged 2 commits into
mainfrom
ant/issue14578

Conversation

@anthony-c-martin

@anthony-c-martin Anthony Martin (anthony-c-martin) commented Jul 18, 2024 •

Copy link
Copy Markdown
Member

Use the syntax factory + pretty printer to emit snippets rather than ad-hoc string formatting. This avoids having to deal with edge cases like escaping.

Closes #14578

Microsoft Reviewers: Open in CodeFlow

@github-actions

github-actions Bot commented Jul 18, 2024 •

Copy link
Copy Markdown
Contributor

Test this change out locally with the following install scripts (Action run 9993989999)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 9993989999
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 9993989999"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 9993989999
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 9993989999"

@github-actions

github-actions Bot commented Jul 18, 2024 •

Copy link
Copy Markdown
Contributor

Dotnet Test Results

    72 files   -     36      72 suites   - 36   24m 15s ⏱️ - 6m 57s
10 957 tests  -     18  10 957 ✅  -     18  0 💤 ±0  0 ❌ ±0 
25 810 runs   - 12 895  25 810 ✅  - 12 895  0 💤 ±0  0 ❌ ±0 

Results for commit 36dc155. ± Comparison against base commit 684e6d4.

♻️ This comment has been updated with latest results.

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.

User defined type doesn't pass single quotes in the key name when being called in VS Code.

3 participants