Using Elementary OS 5 Juno. I have tried to install discord earlier and had the same problem, I download the .deb that supposedly should simply open the gdebi package installer, and it does, then I click install package and it closes without doing anything, I had to try for a few hours different things to get discord installed, now I am trying to install Visual Studio Code and I have the same issue, I download the .deb, click install package and the software is just like "thank you for clicking on install, I will just close without throwing any error nor any tips on why I refuse to install your package"
I have managed to fix by doing
sudo apt install ./code_1.29.1-1542309157_amd64.deb
but I don't get what is the point of gdebi if it just can't install my packages.