I’ve installed the extension yet, but it doesn’t work. code complains:
Unable to start the C/C++ language server. IntelliSense features will be disabled. Error: Launching server using command /home/palik/.vscode/extensions/ms-vscode.cpptools-0.30.0-insiders4/bin/cpptools failed.
Even in shell the executable doesn’t run:
[palik@nixme:~/.vscode/extensions/ms-vscode.cpptools-0.30.0-insiders4]$ bin/cpptools
bash: bin/cpptools: No such file or directory
As a more robust solution I use home-manager. It won’t overwrite existing directories, you’ll need to remove ms-vscode.cpptools... directory before running home-manager.
My config:
programs.vscode = {
enable = true;
package = pkgs.vscodium;
extensions = (with import <unstable> {};
with vscode-extensions; [
matklad.rust-analyzer
ms-python.python
ms-vscode.cpptools
#ms-vscode-remote.remote-ssh # won't work with vscodium
]);
};