ironmansoftware / powershell-universal

Issue tracker for PowerShell Universal
https://powershelluniversal.com
38 stars 4 forks source link

[VSCODE Extension] Changes made in VSCode in endpoints.ps1 are not uploaded to the remote PSU instance #4109

Closed apetitjean closed 1 hour ago

apetitjean commented 1 day ago

Description of Issue

I have a 5.0.16 PSU instance running on a Server and I use a remote workstation to work with PSU. I'm using VSCode on the workstation with the the PSU Extension set up. I can edit successfully the endpoints when they are created directly on the PSU admin website.

The bug is when I want to create a REST API from the VSCode Extension (4.2.4) on my workstation. I can display and edit the endpoints.ps1 script which contains all the endpoint definitions. But when I edit it and save it locally, the changes are not applied. It seems that my endpoint.ps1 local file is not being uploaded to the remote PSU server.

It's not a new bug. It's been a while this is like this but this time, I take the time to report it because it is very annoying and makes the VSCode Extension almost useless...

Version

5.0.16 / 4.2.4 (VSCode Extension)

Severity

Quality-of-life

Hosting Method

MSI (Windows Service)

Operating System

Windows

Database

SQLite

Licensed

Yes

Features

VSCode Extension 4.2.4

Additional Environment data

No response

Screenshots/Animations

No response

apetitjean commented 1 day ago

In fact the file is well uploaded to the PSU server and the change is there. If I restart the PowerShellUniversal Service it works.

So the problem is that the auto reload functionality does not work.