Skip to content

The Windows Compatibility module needs a way to determine when the shell's location has changed #7551

@BrucePay

Description

@BrucePay

The Windows Compatibility module needs to be able to maintain correspondence between the current working directory in the host session and the current working directory in the compatibility session. Each time the host session directory changes the compatability session needs to the notified of the change. To that end I'm adding a new event LocationChangedAction that will get fired when the host session changes location. From PowerShell, it would be used as follows:

 $ExecutionContext.InvokeCommand.LocationChangedAction = {
    $newLocation = $_.NewPath.Path
    Invoke-Command $CompatibilitySession { Set-Location $using:newLocation }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-No ActivityIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions