xmake-io / xmake-vscode

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

将生成"compile_commands.json"文件的默认地址从".vscode"文件夹移动到"build"文件夹 #253

Open Xuanluo-Qiu opened 9 months ago

Xuanluo-Qiu commented 9 months ago

Is your feature request related to a problem? Please describe.

在当前使用clangd时,默认生成的compile_commands.json文件出现在.vscode文件夹中,我认为这是不合理且麻烦的。因为并不是每个人都在使用vscode,并且现在的方案十分的繁琐,对其他编辑器的使用者并不友好。

Describe the solution you'd like

compile_commands.json文件移动到build文件夹有以下好处:

  1. 不是每个人都在用vscode,如果提案通过,那么无论是否使用vscode 都能拥有开箱即用的体验。
  2. clangd默认寻找compile_commands.json文件的路径就是build文件夹,这一简单的修改会省去修改路径的时间,并且十分优雅,无需做其他改动。

Describe alternatives you've considered

No response

Additional context

No response

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically.


Title: Move the default address of the generated "compile_commands.json" file from the ".vscode" folder to the "build" folder

waruqi commented 9 months ago

这是 xmake-vscode 插件的行为,跟 xmake cli 无关,请提到 xmake-vscode/issues 那边去。。

另外,插件可以自己配置修改目录的。。xmake.compileCommandsDirectory 自己改下就行了。。

默认路径不会改,会 break 其他用户,而且众口难调,不可能满足所有用户需求

Issues-translate-bot commented 9 months ago

Bot detected the issue body's language is not English, translate it automatically.


This is the behavior of the xmake-vscode plug-in and has nothing to do with xmake cli. Please refer to xmake-vscode/issues. .

In addition, the plug-in can configure and modify the directory by itself. . xmake.compileCommandsDirectory Just change it yourself. .

The default path will not be changed and will break other users. It is also difficult to adjust and cannot meet the needs of all users.