Skip to content

Commit 4603f76

Browse files
Copilotkelleyma49
andauthored
Replace Get-Runspace with $host.Runspace in tab completion (#368)
* Initial plan * Fix runspace error by using $host.Runspace instead of Get-Runspace Co-authored-by: kelleyma49 <2152684+kelleyma49@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kelleyma49 <2152684+kelleyma49@users.noreply.github.com>
1 parent 64d650d commit 4603f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSFzf.TabExpansion.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function script:Invoke-FzfTabCompletionInner() {
244244
return $false
245245
}
246246

247-
$runspace = Get-Runspace
247+
$runspace = $host.Runspace
248248
$runspaceIsRemote = $null -ne $runspace -and $null -ne $runspace.ConnectionInfo
249249
if (-not $runspaceIsRemote) {
250250
$ps = [System.Management.Automation.PowerShell]::Create('CurrentRunspace')

0 commit comments

Comments
 (0)