Steps to Reproduce:
If the apps stays open for long you will get lots of them, as apparently a new set is generated every few minutes.
Does this issue occur when all extensions are disabled?: Yes/No
This is not VSCode-specific: I have seen this with ~10 other apps, including non-Electron ones.
Yeah, unlikely something we are doing in Code.
@bpasero I think that if you do "code ~" and perform a search in files you will hit this bug.
Arguably this is related to the fact that now MacOS is displaying a popup for each read access attempted by any application on these sensitive locations (calendar, contacts,...).
Lots of apps are affected by this and the UX is awful. What is worse is that is likely that Apple will do nothing about it, considering it a feature. I would rather prefer a silent access denied response than an interactive popup that stacks! ... meaning 100 accesses = 100 popups to close!
While the bug is no specific to vscode, I still think that vscode needs to do something to avoid it, unless we want to be hit by huge number of complaints from the users.
Reopening to track this issue for Mojave. It likely boils down to be an Electron issue.
@ssbarnea @krupenja does this still happen with latest betas?
@bpasero I stopped using a git repo in $HOME root to avoid this issue, so I don't know.
Ok, I am asking because it looks like https://github.com/atom/atom/issues/17687 was closed.
Based on last comments on Atom sister bug, I am closing this too. Apple did some magic to avoid the annoying popup so we don't have to add extra code.
Looks like this can still happen. @jrieken do you have reproducible steps?
Nope... I think I have had opened the settings file and I might have clicked around in the breadcrumb items... But after removing permissions again I cannot reproduce.
FWIW: Same for me happend just now. Opening a new instance of VS Code today resulted in these dialogs. I've rejected them with [Don't allow].
What I did:



I'm running VS Code v1.27.2 (1.27.2) on macOS 10.14 Mojave. Upgraded to Mojave four days ago and used VS Code every day until this suddenly popped up now.
I got the contacts dialog when trying to create a new snippet (Settings gear in the bottom left > User Snippets > New Global Snippets File). It seemed to coincide with the file dialog opening, though I'm pretty sure I've opened the file dialog multiple times in VS Code without this happening, so 🤷♂️
Also, I can't seem to reproduce it, even after running tccutil reset AddressBook.
I've been running Mojave since it came out last Monday, not really sure why it only started appearing now.

Versions: VS Code 1.27.2, macOS Mojave 10.14 (can provide more info if needed)
I got the calendar, contacts, Photos dialogs. I opened my project using terminal code . when it was completely closed.
I also just came across this. No idea how to really reproduce as I got this dialog after opening Calendar, with VSCode only unused in the background.
I got this from doing code / by accident instead of code .
Yes, I experience the pop ups after upgrading to Mojave few days ago.
"Visual Studio Code" would like to access your photos. Then another popped up, "would like to access your contacts"
😒
Also got this multiple times today on Version 1.28.2 (1.28.2). I do not close my editors and just leave my Mac on sleep most of the time and it's been a month or so since I upgraded to Mojave, so I am not sure what triggered it.
It first asked permission to access my contacts. After an hour it was asking permission to access my calendar. I declined both; and after a few hours it was asking to access my photos. Then I thought of Googling it and found this thread.
I as well have experienced this issue yesterday in Code v 1.30.1, macOS Mojave v 10.14.2.
I had just experienced this same weird issue for the first time after weeks from the last comment. Seems like it will continue to persist until further notice.
@bpasero and @Tyriar, this is really neither a _vscode_ nor an electron issue. You can generically reproduce the issue on macOS Mojave by running
find / -iname *w-h-a-t-e-v-e-r*
Apparently, the popup comes up anytime a process attempts to access directories such as
To consistently reproduce this in VSCode, us the search view to perform a search and make sure to enter / in the _files to include_ field.
Possible resolutions:
This is still happening to me with Mojave 10.14.5 and VS Code 1.35.0.
Mostly happen when trying to open a file with File -> Open...
There is nothing we can do about it?
Atom has a good support article on this:
https://discuss.atom.io/t/why-does-macos-say-that-atom-wants-to-access-my-calendar-contacts-photos-etc/59291
Closing as won't fix, see atom's article for the reason and how to workaround the problem.
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding and happy coding!
I receiving the same when I run electron app via node from VSCode terminal.
node electron-project/app.js // -> popup

Most helpful comment
FWIW: Same for me happend just now. Opening a new instance of VS Code today resulted in these dialogs. I've rejected them with [Don't allow].
What I did:
I'm running VS Code v1.27.2 (1.27.2) on macOS 10.14 Mojave. Upgraded to Mojave four days ago and used VS Code every day until this suddenly popped up now.