microsoft / azuredatastudio-postgresql

azuredatastudio-postgresql is an extension for Azure Data Studio that enables you to work with PostgreSQL databases
Other
197 stars 37 forks source link

PG tools are downloaded into a new temp folder again at every launch, old ones never deleted #427

Closed lucvdv-aleacsys closed 1 year ago

lucvdv-aleacsys commented 1 year ago

I didn't find any ticket with 'download' in it, so this is probably new. This is on Windows 11 pro. I don't know if this is an issue in the PG extension, or Azure DS in general, sorry if I'm in the wrong place.

Each time Azure Data Studio is launched, it installs the pgSql tools again from https://github.com/Microsoft/pgtoolsservice/releases/download/v1.8.0/pgsqltoolsservice-win-x64.zip.

The console output says it is being installed into ".azuredatastudio\extensions" in my home directory, but it is first downloaded into a new folder "_MEI\<random number>" in %temp%. These folders contain 250 MB of files each, and they just remain after exit, nothing is deleted. I see pg executables for Linux, Mac and Windows in them, plus a bunch of what I take for compiled python files (*.pyc).

Close the application and reopen it, and a new 250 MB folder pops up in %temp%. I found 2 GB of those created just yesterday alone.

Can't a version check be included, and a new download only be installed when there is an actual change, or at least the downloaded files be deleted when they are no longer needed?

lucvdv-aleacsys commented 1 year ago

I checked the MySQL extension to see if it does it too. It doesn't, so it looks like this is an issue with the Postgres extension and not general Azure DS.

DaeunYim commented 1 year ago

Thanks for reporting this issue. We will resolve this by the next release and keep you posted.

DaeunYim commented 1 year ago

Closing when a new stable build is released

nasc17 commented 1 year ago

Bug has been addressed in latest stable release of PostgreSQL extension v0.5.0. Please reopen if issue is still present, thank you.