Just a thought, would using PIO with Atom help with this? I’ve used Atom on offline Linux boxes before without any problems. Admittedly this is not a complete solution as PIO is a total pain the second it can’t connect to the internet but at least the problems that need resolving will be reduced. It just depends on whether you are able to use Atom instead of VSCode.