Visual Studio Code and window title related macros does not work

To troubleshoot, let's start with this tool to list all open windows that can be seen by AppleScript:

Macro: List every window visible to System Events by application.

Run that macro and let us know the results.