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

`PowerShellReferencePsiElementImpl::getNameElement` implementation #199

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/main/kotlin/com/intellij/plugin/powershell/psi/impl/PowerShellReferencePsiElementImpl.kt#L27

Apparently, the TODO comment appeared because it's too simple or dubious. We should investigate and either improve the implementation or remove the comment if we currently believe this is enough.

Maybe not all references contain a child PowerShellIdentifier?