xmake-io / xmake-vscode

🍩 A XMake integration in Visual Studio Code
https://xmake.io
Apache License 2.0
229 stars 54 forks source link

没有生成 .vscode/compile_commands.json 文件 #124

Closed linbiaojj closed 2 years ago

linbiaojj commented 2 years ago

Xmake Version

v2.6.8

Operating System Version and Architecture

Windows 11

Describe Bug

已安装xmake v2.6.8和xmake vscode插件,能正常使用xmake命令行编译运行。 使用 xmake create -l c -P hello 生成项目,然后 code . 用vscode打开项目,但是插件并没有自动生成 .vscode/compile_commands.json 文件,请问是我哪里操作有误吗?

Expected Behavior

生成 .vscode/compile_commands.json 文件。

Project Configuration

No response

Additional Information and Error Logs

No response

waruqi commented 2 years ago

在 xmake-vscode 激活的状态下,编辑 xmake.lua 每次更新,自动生成一次

linbiaojj commented 2 years ago

原来要更新xmake.lua才会生成,测试了可以了,谢谢!