xmake-vscode
xmake-vscode copied to clipboard
Set path to compileCommands automatically.
I'm not sure if this is a feature or a bug fix, but this removes the need for setting the path to the compile commands file in .vscode/c_cpp_properties.json
by setting C_Cpp.default.compileCommands
.
With this, IntelliSense should work as soon as XMake is run for the first time.
If the user does not have cpptools installed and is only using clangd. Does it work? https://xmake.io/#/plugin/more_plugins?id=clangd
可以参考下cmake插件的实现vscode-cmake-tools/src/cpptools.ts
使用ConfigurationProvider
可以无需编辑配置文件,自动让Cpptools使用xmake生成的配置