If you're running several plugins and language servers, ensure the instance where you are running vscode has enough memory.
I was running vscode with ssh into a virtualbox, and well, I didn't allocate enough memory for the pylance language server to run, because it basically installs a nodejs server and runs it back vscode on your host machine.