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

Add code action to suggest multi-line strings #16296

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Conversation

anthony-c-martin
Copy link
Member

@anthony-c-martin anthony-c-martin commented Feb 3, 2025

Just wanted to make the multi-line syntax a bit more discoverable.

Microsoft Reviewers: Open in CodeFlow

Copy link
Contributor

github-actions bot commented Feb 3, 2025

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

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

Copy link
Contributor

github-actions bot commented Feb 3, 2025

Dotnet Test Results

    78 files   -     38      78 suites   - 38   32m 30s ⏱️ - 17m 41s
11 718 tests  -      7  11 718 ✅  -      7  0 💤 ±0  0 ❌ ±0 
27 194 runs   - 13 574  27 194 ✅  - 13 574  0 💤 ±0  0 ❌ ±0 

Results for commit 3d99112. ± Comparison against base commit 069862c.

This pull request removes 1788 and adds 617 tests. Note that renamed tests count towards both.

		nestedProp1: 1
		nestedProp2: 2
		prop1: true
		prop2: false
	1
	2
	\$'")
	prop1: true
	prop2: false
…
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
�Խ
� \u0010\u0007p�>E��xF=;d��W�V�\u00071%1$P��5C���K�\u0014�o�8<��4ߛag��6-�(tN��X�����@\u0002\u0001|a��T@H6�>ID�zӄQ���\u0007q�\u0019��l	Xh��B	��ЬЛP;L� �\u0019�*;wuu�襭��PM5�}�$����uE���\u0018' P��@q\u0018�\u000f\u001cC�\u0017�����X{�$I�d
OW�\u0011S\u0000\u000c\u0000\u0000,"The path: index.json was not found in artifact contents")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
�Խ
�0\u0010\u0000��>E�\u0003����V� 8X�*\u0008�\u0012l�
��V(�\uda58\udcf8���G0ߘ;���\u001dq��^k��$\2�%�o�\u0010���7�I\u0004�"*�\u0010\u0008��JZ<�J\u0015��1��A��U�f:\u00049�y����\u0007\u0012\u0004\u00043\u0013;w� �wU]�4OtM��-oҳ����iu���p-�6��c��\u0000N�\u000b\u000f\u0018������(3����t����F��氋�\u00056\u001bx�,˲��\u0000_�F\u0000\u000c\u0000\u0000,"'7' is an invalid end of a number. Expected a delimiter. Path: $.INVALID_JSON | LineNumber: 0 | BytePositionInLine: 20.")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
���
\u0002!\u0010\u0006`�=��\u0003���nнKХ\u0007�v���b5X��=;D��.�[���\u0019pT~�x�9�\u0002k��(;f�k<�J�]�\u0010�\u0010a�8�\u0006�&�6�O���\u0007W�Q���\u0007IK]ؗ8\u0013fb!\u0007�-�J\u0008\u000br\u0014k�����م�l_\u0015ذ�?U�������LZ�ޯ�+���>Q$�\u0001�\u0005h)\u0014�\u001a �\u000e��?���f�
�3n\u0002\u0016\u000b,�XgS�uG��oϖ$I���\u000e�؁�\u0000\u000c\u0000\u0000,"Value cannot be null. (Parameter 'source')")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003��K
�0\u0010\u0006�=E�\u0001b���
ݻ\u0011�x�؎X��4\u0015
��M\u0017��M\u001f������\u0010���޴[0\u0019Ԗ���5Ac��\u0012���ÄFL�QD�T\u000c!܎�I��mL�V�c�\u000f�\u00116M^@�t\u0018�X�� �K\u001ei�r�t��b\���e\u0006-��[ٵ\u0017C�K_�\u001b�y��f|�?
\u0005r���L*��_I��g������C	m\u0005i\u0003�\u000e�#��\u0006����s��<���\u0000\u0008��\u0000\u000c\u0000\u0000,"Value cannot be null. (Parameter 'source')")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003���
�0\u000c\u0007��\u0014>AMjڸ��\u001d�
e\u0013��u���ػ�\u001e\u0006;(�8\u001d��c\u0013HJ��xo�]n�yU˄\u0015�R�
<C4�>@2\u0002�\u0005\u0004�6 D�ϾɈ�nl�WYb�\u000fR\u001c��\�\u0019r��NR%
\u0010\u0012m|�0U��f�Sֺ�+;'/u��b���_\u0006S�/��\u0019��\u000f�\u0004\u0012k@�{c|����/��?�����\u0006A\u0010\u0004�\u001a�j2#�\u0000\u000c\u0000\u0000,"The path: index.json was not found in artifact contents")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003���
�@\u0010\u0000�=�\u0014�\u000f���j�!�\u0011\u0016\u0004]cɅ\u000c�P\u0003��o=D\u0017��Z�~ǝ��e�A�N7+�SSV�)�|\u0004��-�y�{�p\u0005�z�\u0000+!	\u0000�\u0019��\u000e��֥me�Z?�\u0006P�Yn"�X B�\u0002�$'\u000c\u0007tfc��\u0018	�M��(+RӠKu-���/���tz��7^�O��)\u0007�\u0006\u0008L��R\u0002,���p������xqrXl��q��&�\u001c�\u000b��\u001c�q��=\u0001 ���\u0000\u000c\u0000\u0000,"'7' is an invalid end of a number. Expected a delimiter. Path: $.INVALID_JSON | LineNumber: 0 | BytePositionInLine: 20.")
Bicep.Core.IntegrationTests.DecompilationTests ‑ Decompiler_handles_banned_function_replacement ("createArray(1, 2, 3)","array","[
  1
  2
  3
]")
Bicep.Core.IntegrationTests.DecompilationTests ‑ Decompiler_handles_banned_function_replacement ("createObject('key', 'value')","object","{
  key: 'value'
}")
Bicep.Core.IntegrationTests.DecompilationTests ‑ Decompiler_handles_strings_with_newlines ("
","\n")
Bicep.Core.IntegrationTests.DecompilationTests ‑ Decompiler_handles_strings_with_newlines ("
","\r\n")
…

@anthony-c-martin anthony-c-martin merged commit 6f7bd87 into main Feb 4, 2025
47 checks passed
@anthony-c-martin anthony-c-martin deleted the ant/code_action branch February 4, 2025 17:53
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.

2 participants