There are various ways we could detect an unresponsive cpptools process. Example of an issue is https://github.com/microsoft/vscode-cpptools/issues/6149 .