jbenden / vscode-c-cpp-flylint

A VS Code extension for advanced, modern, static analysis of C/C++ that supports a number of back-end analyzer programs.
MIT License
152 stars 29 forks source link

json5 import #217

Closed dzid26 closed 4 months ago

dzid26 commented 4 months ago

This .default attribute somehow fixes TypeError: n(...).parse is not a function errors https://github.com/jbenden/vscode-c-cpp-flylint/issues/180

The change was inspired by https://github.com/node-config/node-config/issues/755#issuecomment-1886617466 - I don't know how any of this works.

I verified that json5 parser is indeed used with this, because it parses a c_cpp_properties.json that has comments generated by Platformio.

jbenden commented 4 months ago

Thanks for the information, I came up with a fix that seems to work no matter what.

Thanks again!