Contents of c_cpp_properties.json
file can get irrecoverably deleted
#13491
Labels
Feature: Configuration
An issue related to configuring the extension or IntelliSense
investigate: repro
This issue's repro steps needs to be investigated/confirmed
Language Service
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
After stashing and restoring
.vscode/c_cpp_properties.json
through git, cpptools will re-populate it's contents with default value deleting old contents.Also works when temporarily moving or renaming
.vscode
directory.Steps to reproduce:
c_cpp_properties.json
. Just something that differs from the default.main.c
. You should see C/C++ configuration is "Foo".main.c
. You should see C/C++ configuration has changed to default ("Linux" in my case).C/C++: Edit Configurations (JSON)
through bottom right corner or command palette. This action destroys contents ofc_cpp_properties.json
. If you'd instead close and re-open vscode, you'd be safe.Configuration and Logs
Other Extensions
Additional context
No response
The text was updated successfully, but these errors were encountered: