UE4.19 can't find VS15 which is found just fine by UE4.18

When I try to open my project with UE4.18 it works. When I use 4.19 I get the following message:

241013-ue4editor-2018-05-14-13-38-52.png

But I have VS 2017 community installed with probably each C++ compiler version available through its installer. I have also tried to reinstall both VS and UE4.19. I have also tried pressing yes and installing whatever it asks me to install. Didn’t help either.

Fixed by doing a lot of ■■■■ but the last piece after which it began working was making a new BP project and changing editor in options from vscode (how did it get there Oo) to vs15.0