Skip to content

Powershell scan takes a long time #2314

@nagilson

Description

@nagilson

Describe the bug.

Please see #2171 (comment)

when we check if powershell is available, this is taking a very long time, several seconds (7 seconds spent validating powershell with shared thread.) We should simplify that logic to check if the file exists for the powershell exectuable first and only run the more thorough validation if it fails the first time.

Please attach log file(s) here if you have any.

The log file location should be copied to your clipboard if you came from VS Code.

Reproduction Steps

.

Expected Behavior

.

Exceptions & Errors (if any)

No response

.NET Install Tool Version

.

Your operating system? Please provide more detail, such as the version and or distro above.

N/A

VS Code Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions