Closed ilg-ul closed 8 months ago
Hi Liviu,
Effectively, I observe that the c_cpp_properties.json
file is rewritten at each save of the packages.json
...
...And trig a line ending modification of the last line:
I work on Windows but I save my files with UNIX line ending. Each time that package.json
is saved, the line ending format of the last line of the c_cpp_properties.json
file is modificated. From LF to CRLF.
the c_cpp_properties.json file is rewritten at each save of the packages.json.
That's correct, it must reflect the possible changes in build configurations.
the line ending format of the last line of the c_cpp_properties.json file is modificated. From LF to CRLF.
Yes, this is weird, the JSON serialiser uses only LF, even on Windows, and my code adds the portable definition os.EOL
, which on Windows is CRLF.
I fixed the line termination, now it is a single LF, please upgrade to 0.5.2.
Thank you Liviu, it works fine 🙏
Great, thank you for confirming.
Check the logic to update
c_cpp_properties.json
, to avoid rewriting it if not necessary.