Skip to content

class snippet has unnecessary space between < and # #4346

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

Closed
5 of 6 tasks
ALiwoto opened this issue Dec 25, 2022 · 0 comments · Fixed by #4347
Closed
5 of 6 tasks

class snippet has unnecessary space between < and # #4346

ALiwoto opened this issue Dec 25, 2022 · 0 comments · Fixed by #4347
Labels

Comments

@ALiwoto
Copy link
Contributor

ALiwoto commented Dec 25, 2022

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

class snippet has space between < and # characters which causes syntax error.

PowerShell Version

PS> $PSVersionTable


Name                           Value
----                           -----
PSVersion                      7.3.1
PSEdition                      Core
GitCommitId                    7.3.1
OS                             Microsoft Windows 10.0.22000
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

PS> code --version


1.73.1
6261075646f055b99068d3688932416f2346dd3b
x64

Extension Version

PS> code --list-extensions --show-versions | Select-String powershell


ms-vscode.powershell@2022.12.1

Steps to Reproduce

  1. Write class in vscode.
  2. Wait for the extension's suggestion to show up.
  3. Hit enter.

What you will see next, is:

class ClassName {
    < #Define the class. Try constructors, properties, or methods #>
}

Visuals

image

Logs

No response

@ALiwoto ALiwoto added the Issue-Bug A bug to squash. label Dec 25, 2022
@ghost ghost added the Needs: Triage Maintainer attention needed! label Dec 25, 2022
@andyleejordan andyleejordan added Area-Snippets and removed Needs: Triage Maintainer attention needed! labels Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants