ant-druha / intellij-powershell

Adds PowerShell language support to IntelliJ-based IDEs.
https://plugins.jetbrains.com/plugin/10249-powershell
Apache License 2.0
71 stars 20 forks source link

Tests: check for how scoped variables are passed to Clear-Item #201

Open ForNeVeR opened 6 months ago

ForNeVeR commented 6 months ago

See the code near this line: https://github.com/ant-druha/intellij-powershell/blob/baccc65fb41e834e8eb66642911f1a1259926856/src/test/resources/testData/parser/StdCmdlets.ps1#L13

So, it is a test chat's supposed to check variable passing to the Clear-Item cmdlet.

Currently, it is not parsed as a variable reference by the plugin. We should check what actual syntactic construct is that, and update the parser accordingly (or leave it as-is and drop the TODO comment).