Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default cpp browse database filepath #703

Merged
merged 1 commit into from
Apr 15, 2022
Merged

Conversation

penniman26
Copy link

Use the default workspace storage directory (i.e. ~/.config/Code/User/workspaceStorage/${workspace ID}/) instead of ${workspaceFolder}/.vscode to avoid performance issues / crashes caused by frequent writes to the .vscode directory which is being watched

Setting browse.databaseFile to an empty string will also instruct vs code to use the default workspace storage directory, but using ${default} has the added benefit that the "C_Cpp.default.browse.databaseFilename" entry in settings.json will be honored if present.

Ref https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp
Ref https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference

Use the default workspace storage directory (i.e.  ~/.config/Code/User/workspaceStorage/${workspace ID}/) instead of ${workspaceFolder}/.vscode to avoid performance issues / crashes caused by frequent writes to the .vscode directory which is being watched

Setting browse.databaseFile to an empty string will also instruct vs code to use the default workspace storage directory, but using ${default} has the added benefit that the "C_Cpp.default.browse.databaseFilename" entry in settings.json will be honored if present. 

Ref https://code.visualstudio.com/docs/cpp/customize-default-settings-cpp
Ref https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference
@penniman26 penniman26 requested a review from a team as a code owner April 15, 2022 05:55
@ooeygui
Copy link
Member

ooeygui commented Apr 15, 2022

Thank you for the contribution!

@ooeygui ooeygui merged commit 4562e23 into ms-iot:master Apr 15, 2022
@penniman26 penniman26 deleted the master branch April 15, 2022 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants