Open Jyrijoul opened 10 months ago
Hi @Jyrijoul . Thanks for reporting this.
This appears to be related to the following bit of (rather old) code:
It probably shouldn't be modifying the document if a corrected ID could not be found. Also, it probably shouldn't be touching all configurations, as some of them may not be applicable to the current host (if that file is checked into a repo). And, when rewriting c_cpp_properties.json
, it should try to preserve existing comments.
Hi @Colengms, thanks a lot for the reply! Good to know that it is indeed a bug and that you already found a potential cause. :)
Environment
Bug Summary and Steps to Reproduce
Bug Summary: While editing _c_cppproperties.json, trying to add the "configurationProvider" property results in the current line and existing comments being deleted. Note that properties other than configurationProvider do not seem to have the same behaviour. It could be that this is the intended behaviour, however, it makes it difficult to browse the available values of the property.
Steps to reproduce:
Expected behaviour: "configurationProvider": "" and comments not disappearing.
Configuration and Logs
Other Extensions
All other extensions are disabled, even though disabling them did not change the behaviour.
Additional context
No response