Skip to content

Commit

Permalink
Stop VSCode appending file associations to settings.json (#21944)
Browse files Browse the repository at this point in the history
### Description

If you open onnxruntime source code using VSCode with C/C++ extension,
it's keeping adding file associations for C/C++ headers into this
settings.json. This is annoying when staging/committing changes.

Add a configuration to disable this behavior.

see:
-
https://stackoverflow.com/questions/65220185/how-to-stop-vs-code-to-keep-adding-standard-c-libraries-to-the-file-associatio
-
microsoft/vscode-cpptools#722 (comment)
  • Loading branch information
fs-eire authored Sep 1, 2024
1 parent 047f32c commit 8c53364
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@
"-build/include_subdir",
"-runtime/references"
],
"files.associations": {
"span": "cpp"
}
"C_Cpp.autoAddFileAssociations": false
}

0 comments on commit 8c53364

Please sign in to comment.