Skip to content

Add some form of error/output if $Profile does not exist or create one when Extension is installed #224

Open
@gerane

Description

@gerane

When running the following command you get no results by default:

$psEditor.Workspace.OpenFile($profile)

$profile outputs this

PS C:\Program Files (x86)\Microsoft VS Code Insiders
$profile

C:\Users\i2871rbp\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1

However, the file does not actually exist, so when you try to have code open it, it does nothing and gives no feedback.

Can the EditorServices check for the profile and create it if it is missing upon installation? I am just thinking from an ease of use for normal powershell users who may not have a ton of Dev type experience, it might be a bad experience for them.

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