microsoft / vscode-makefile-tools

MAKE integration in Visual Studio Code
Other
184 stars 55 forks source link

Fix racy logic with script files #536

Closed gcampbell-msft closed 6 months ago

gcampbell-msft commented 6 months ago

Fixes / implements #516 and #475.

There was no need to on-the-fly generate the parseCompilerArgs script and we needed to delete the temporary wrapper scripts that we were creating so that there aren't permissions errors later on if there are other users.

I also added another safety check by adding a small guid to the end of the prePostConfigure script wrapper, which ensures that we don't overwrite an old one (even though we delete them now after use).