Disable pop-up asking "...would like to access files in your Documents folder"

How can I disable this message? Or make it remember I've given permission? (MacOS 13.1 Intel)

Happening in VSCode when running C++ or C with debugger/runner. Pop-up appears every time. Even confirming 'OK' does not help. It still pops up every time, ad infinitum.

I've been able to get it go away a few times over the past weeks, but I cannot see the pattern that made it happen. Meaning, it must be possible

Details:

  • I'm working in the Documents folder and cannot move the project out (so pls don't suggest this as the fix)
  • I've given 'Full Disk Access' to the Vcode, the execuable, the C and C++ code file, and Xcode (just in case it's get used somewhere)
  • Can simply not use VScode to compile and run code, i.e. use terminal, but debugging is where this really becomes a bottleneck.

Has gone beyond being nuisance into hindrance. Please help me stop it.

Note: full disclosure for good karma: cross posted as I had no responses https://discussions.apple.com/thread/254584869

Is your executable an application? Is it code signed?

@JWWalker It's a C lang binary, so yes it's an executable. I had to look up code signed. Unless it's happening w.o my knowledge my OS, it's not code signed.

@JWWalker It's a C lang binary exectutable. I am not doing anything related to code signing.

@JWWalker It's a C lang binary file. The application is a bunch of C files. I'm familiar w code signing.

@JWWalker The folder is comprised of C files. The main file is a C binary executable (that runs fine). I'm not familiar with code signing.

Disable pop-up asking "...would like to access files in your Documents folder"
 
 
Q