From d210fd39bcefe28bdd0e00dfb9413803cc68914f Mon Sep 17 00:00:00 2001 From: Doug Dyreng Date: Mon, 13 Mar 2023 07:28:51 -0600 Subject: [PATCH 1/2] Update PowerShell.json Cleanup the Calculated Property snippet. - Remove the trailing " #>" --- snippets/PowerShell.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/PowerShell.json b/snippets/PowerShell.json index ea576e4f9b..7bc67047aa 100644 --- a/snippets/PowerShell.json +++ b/snippets/PowerShell.json @@ -25,7 +25,7 @@ "prefix": "calculated-property", "description": "Typically used with Select-Object or Sort-Object. More: Get-Help about_Calculated_Properties", "body": [ - "@{Name='${1:PropertyName}';Expression={${2:${TM_SELECTED_TEXT:<# Desired result. You can reference this object via \\$_ and \\$PSItem#>}}}}$0 #>" + "@{Name='${1:PropertyName}';Expression={${2:${TM_SELECTED_TEXT:<# Desired result. You can reference this object via \\$_ and \\$PSItem#>}}}}$0" ] }, "Class": { From 29df24f3f03214bb8037ed178b4cffb480222192 Mon Sep 17 00:00:00 2001 From: Andy Jordan <2226434+andschwa@users.noreply.github.com> Date: Mon, 13 Mar 2023 10:18:57 -0700 Subject: [PATCH 2/2] Update snippets/PowerShell.json --- snippets/PowerShell.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/PowerShell.json b/snippets/PowerShell.json index 7bc67047aa..5ed99e184d 100644 --- a/snippets/PowerShell.json +++ b/snippets/PowerShell.json @@ -25,7 +25,7 @@ "prefix": "calculated-property", "description": "Typically used with Select-Object or Sort-Object. More: Get-Help about_Calculated_Properties", "body": [ - "@{Name='${1:PropertyName}';Expression={${2:${TM_SELECTED_TEXT:<# Desired result. You can reference this object via \\$_ and \\$PSItem#>}}}}$0" + "@{Name='${1:PropertyName}';Expression={${2:${TM_SELECTED_TEXT:<# Desired result. You can reference this object via \\$_ and \\$PSItem #>}}}}$0" ] }, "Class": {