-
Notifications
You must be signed in to change notification settings - Fork 223
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
Code Folding not working with PoshBot code #811
Comments
Copied issue here for a legit issue number |
glennsarti
added a commit
to glennsarti/PowerShellEditorServices
that referenced
this issue
Dec 8, 2018
Previously the token matching was broken; ``` foreach ($1 in $2) { <----- STARTS MATCH HERE (1) $x = @{ <----- STARTS MATCH HERE (2) 'abc' = 'def' } <----- ENDS MATCH HERE (1) (2) } ``` This was caused by two or more different token pairs sharing the same end token. This commit modifies the token pair matching to take an array of Start Tokens instead of a single. This has the added benefit of performance increase too. This commit also adds tests for this scenario.
glennsarti
added a commit
to glennsarti/PowerShellEditorServices
that referenced
this issue
Dec 8, 2018
…lder Previously the code folder was not aware of unoppinionated variable name assignments. This commit adds detection and an appropriate test.
glennsarti
added a commit
to glennsarti/PowerShellEditorServices
that referenced
this issue
Dec 8, 2018
This commit adds a splat command to the folding scenario to ensure that the folder is not confused by the (at) character for splatting.
glennsarti
added a commit
to glennsarti/PowerShellEditorServices
that referenced
this issue
Dec 12, 2018
Previously the code folder was not aware of unopinionated variable name assignments. This commit adds detection and an appropriate test.
glennsarti
added a commit
to glennsarti/PowerShellEditorServices
that referenced
this issue
Dec 12, 2018
This commit adds a splat command to the folding scenario to ensure that the folder is not confused by the (at) character for splatting.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally from PowerShell/vscode-powershell#1631
System Details
System Details Output
Issue Description
I am experiencing a problem with code folding. The SendMessage functions within the PoshBot Backends for slack and teams both fold rather weirdly.
Raw files:
https://raw.githubusercontent.com/poshbotio/PoshBot/master/PoshBot/Implementations/Teams/TeamsBackend.ps1
https://raw.githubusercontent.com/poshbotio/PoshBot/master/PoshBot/Implementations/Slack/SlackBackend.ps1
Expected Behaviour
It should fold the entire function.
Actual Behaviour
It folds parts of the function.
The text was updated successfully, but these errors were encountered: