Skip to content

VS Code with Form Designer every save putting Button1 Click at top #130

Description

@warebear

I have found while using Visual Studio Code with Powershell Pro Tools, any time I reopen the Form Designer window, make a change and then save, it will put a Button1_Click object at the top of my main script that I need to clean out manually each time.
Example:
$Button1_Click = { }

I have actually renamed all of my controls and such away from the generic Button1, Label1, etc. then, whenever I click on save it puts that at the top. It does not add a Button1 to either the designer or resource code, only to the top of the main script.

Currently using:
VS Code: 1.98.2
Powershell Pro Tools Extension: 2024.12.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions