Skip to content

Conversation

@andyleejordan
Copy link
Member

Hi all,

PowerShell Extension maintainer here 👋

I finally tracked down the root of the bug PowerShell/vscode-powershell#3276, and realized it was not one of our extension's own contributed snippets, but instead built-in to Code.

These two snippets conflict with the PowerShell comment syntax (<#), and since snippet suggestions are enabled by default, it means it's not possible to type <# followed by an enter, which is very often desired. The enter unfortunately chooses to insert an entirely unhelpful #endregion snippet.

The PowerShell extension ships its own snippets, and documents community snippets. We will actually also need to fix our own #region snippet to fully fix this bug, but when I realized it was one of three suggested snippets after the insertion of a # in a PowerShell file, I investigated and found these two built-in snippets.

Please accept this PR and remove these two snippets. They're not used, they're not helpful, and moreover, we have a far more extensive set of contributed snippets in the Code-recommended PowerShell extension.

/cc @TylerLeonhardt @SeeminglyScience @SydneyhSmith

This PR fixes PowerShell/vscode-powershell#3276

These two snippets conflict with the PowerShell comment syntax (`<#`),
and since snippet suggestions are enabled by default,
it means it's not possible to type `<#` followed by an enter,
which is very often desired.
The enter unfortunately chooses to insert an entirely unhelpful `#endregion` snippet.
@aeschli
Copy link
Contributor

aeschli commented Apr 1, 2022

Thanks @andschwa. Makes sense. If the snippets are not helpful but often get in the way, let's remove them.

@andyleejordan
Copy link
Member Author

Thanks @aeschli!

@andyleejordan andyleejordan deleted the patch-1 branch April 1, 2022 17:17
@github-actions github-actions bot locked and limited conversation to collaborators May 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

4 participants