Skip to content

Type inference should handle executables #18864

@MartinGC94

Description

@MartinGC94

Summary of the new feature / enhancement

Output from executables like ipconfig.exe are saved as strings in PowerShell. The type inference should be aware of this so we can get tab completion like: ipconfig.exe | foreach {$_.<Tab>
One problem here is that there's no way for PowerShell to know whether or not an executable actually outputs anything, but I think it's safe to assume that every executable outputs something and when that assumption is wrong the end user probably won't notice anyway since they have no reason to attempt to tab complete the output.

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Interactive-IntelliSensetab completion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions