I'm not sure what exactly triggers this problem, but after lots of manual editing the VS Code stops responding to keyboard presses (while editing the yuml file) and the Yuml Diagram freezes. The workaround is to close the yuml file, wait a little bit and open it again.