pulumi / pulumi-vscode-tools

A Visual Studio Code Extension for Pulumi
Apache License 2.0
1 stars 1 forks source link

Fix to better handle stat and force refresh #10

Closed cleverguy25 closed 2 months ago

cleverguy25 commented 2 months ago

Right now the watch does behave reliably. Since we do not have a full metadata endpoint with the right permissions, this change:

In stat:

After we do a read, we set a proper size.

If we update the file we clear size so the next stat is random (cannot trust our file size). We also set the mtime to the current date.

We are also properly keeping track of watches and if the file changes any opens are also marked changed so they are refreshed automatically.