Hi @Jonas Karlsson,
Thank for your taking the time to post your question on the Q&A Platform. This issue seems more related to either the VS Code IDE or the Azure Logic App extension. Unfortunately, those experts don't actively monitor Microsoft Q&A forum.
What I would suggest is reporting the problem within VS Code. That mechanism should be able to capture more telemetry that can lead to the direct cause of your issue. You can also create a new issue for VS Code. Unfortunately, creating a new issue for the Azure Logic App Extension is currently archived.