Skip to content

Delete built-in PowerShell snippets #146459

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

Merged
merged 1 commit into from
Apr 1, 2022
Merged

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typing <-#-<RET> results in <#endregion#> instead of <#\n
4 participants