I am able to manually install the extension from a vsix file exported from VsCode if I also manually install vscode C/C++ support. The C/C++ extension complains that it will only work on Microsoft branded vscode installations, so it may simply be a matter of allowing platformIO to depend on the Anysphere C/C++ extension.
P.S. Cursor is AWESOME on ESP32 projects! PlatformIO support is essential to make it work.
As Cursor is using the OpenVSX marketplace for extensions could you contact the extension developer to also submit it there? It would allow then all users to install it from the marketplace.
Kindly note that we are not managing the Marketplace so only the developer can submit it there.
hi @condor it looks like the platformIO extension relies on ms-vscode.cpptools which is not in OpenVSX I have hacked my installation of platformIO to rely on anysphere.cpptools instead and it seems to work. I would like to suggest this as a fix to the extension developer however I am unable to find a license for anysphere.cpptools, or a listing for it in OpenVSX. Could you shed some light on where this information might be found?
No, anysphere.cpptools is not published on OpenVSX. I’d recommended listing it as part of the extensionPack (optional) dependencies in the package.json, or simply depending on clangd (llvm-vs-code-extensions.vscode-clangd).
I have been able to get this to work on my local Cursor for any PlatformIO project.
What I did was:
Make this require the Clang CPP extension (so you should get a notification to install it if you haven’t already, and this extension won’t even load until you do that)
For every PlatformIO project, the extension now generates a compile_commands.json file in the project directory so that the Clang CPP extension works properly