mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-14 00:37:21 +00:00
VSCode fixes: .gitignore & clangd (#3790)
* vscode: fine-tuned .gitignore to allow extra untracked files in .vscode folder * vscode: temporary disabled toolchain-provided clangd * Update sublime project to match vscode config Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
parent
03221e990f
commit
31919965a1
4 changed files with 18 additions and 16 deletions
8
.sublime-project
vendored
8
.sublime-project
vendored
|
@ -8,13 +8,17 @@
|
||||||
"settings": {
|
"settings": {
|
||||||
"LSP": {
|
"LSP": {
|
||||||
"clangd": {
|
"clangd": {
|
||||||
|
"enabled": true,
|
||||||
"initializationOptions": {
|
"initializationOptions": {
|
||||||
|
// Use with toolchain version 39+
|
||||||
|
// Set `"binary": "custom",` option in LSP-clangd config to use toolchain clangd
|
||||||
|
// "custom_command": ["toolchain/current/bin/clangd"],
|
||||||
|
|
||||||
"clangd.compile-commands-dir": "build/latest",
|
"clangd.compile-commands-dir": "build/latest",
|
||||||
"clangd.header-insertion": "never",
|
"clangd.header-insertion": "never",
|
||||||
"clangd.query-driver": "**",
|
"clangd.query-driver": "**/arm-none-eabi-*",
|
||||||
"clangd.clang-tidy": true,
|
"clangd.clang-tidy": true,
|
||||||
},
|
},
|
||||||
"enabled": true,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
8
.vscode/.gitignore
vendored
8
.vscode/.gitignore
vendored
|
@ -1,5 +1,3 @@
|
||||||
/c_cpp_properties.json
|
*
|
||||||
/extensions.json
|
!example/
|
||||||
/launch.json
|
!ReadMe.md
|
||||||
/settings.json
|
|
||||||
/tasks.json
|
|
||||||
|
|
2
.vscode/example/settings.json.tmpl
vendored
2
.vscode/example/settings.json.tmpl
vendored
|
@ -12,7 +12,7 @@
|
||||||
"SConstruct": "python",
|
"SConstruct": "python",
|
||||||
"*.fam": "python"
|
"*.fam": "python"
|
||||||
},
|
},
|
||||||
"clangd.path": "${workspaceFolder}/toolchain/current/bin/clangd@FBT_PLATFORM_EXECUTABLE_EXT@",
|
// "clangd.path": "${workspaceFolder}/toolchain/current/bin/clangd@FBT_PLATFORM_EXECUTABLE_EXT@",
|
||||||
"clangd.arguments": [
|
"clangd.arguments": [
|
||||||
"--query-driver=**/arm-none-eabi-*",
|
"--query-driver=**/arm-none-eabi-*",
|
||||||
"--compile-commands-dir=${workspaceFolder}/build/latest",
|
"--compile-commands-dir=${workspaceFolder}/build/latest",
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
"[python]": {
|
"[python]": {
|
||||||
"editor.defaultFormatter": "ms-python.black-formatter"
|
"editor.defaultFormatter": "ms-python.black-formatter"
|
||||||
},
|
},
|
||||||
"clangd.path": "@UFBT_TOOLCHAIN_CLANGD@",
|
// "clangd.path": "@UFBT_TOOLCHAIN_CLANGD@",
|
||||||
"clangd.arguments": [
|
"clangd.arguments": [
|
||||||
"--query-driver=**/arm-none-eabi-*",
|
"--query-driver=**/arm-none-eabi-*",
|
||||||
"--compile-commands-dir=${workspaceFolder}/.vscode",
|
"--compile-commands-dir=${workspaceFolder}/.vscode",
|
||||||
|
|
Loading…
Reference in a new issue