coc-extensions / coc-powershell

PowerShellEditorService integration for coc.vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

powershell.evaluateSelection - executes entire line, not a selection

mikeTWC1984 opened this issue · comments

In case if you select only some part of a single line, evaluateSelection will expand it to include entire row. For example if I only want to select and execute command in bold I'll get error:

if ( test-path ./somefile) {
....
}

Can we tweak it to run selection only?

Yes, this looks like a bug. Thanks!

Fix incoming! #60