@Andrew George , Try to create an WIP-exempt AppLocker policy file to configure Visual Studio code as a WIP-exempt app, Here is an article for the reference:
https://learn.microsoft.com/en-us/visualstudio/ide/exempt-visual-studio-from-wip?view=vs-2019
Hope it can help.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.