vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Update settings JSON objects, and various related bug fixes

Open Colengms opened this issue 3 years ago • 0 comments

These changes correspond with JSON changes on the native side (to use a new native JSON library). Some settings were cleaned up to put fields in the correct places (workspace vs workspace folder). Also makes inlay hints settings resource scoped, to match similar settings in VS Code and for TypeScript. ( Addresses: https://github.com/microsoft/vscode-cpptools/issues/9782 )

Makes the set of settings sent up in initializationOptions the same as sent when settings are updated. Sends only 1 settings update in multiroot, instead of a separate update per workspace folder. (It should now be a lot easier to add new settings, as handling needs to be added in fewer places).

Fixed some multiroot bugs related to features that involve provider objects. For those features, it's necessary to leave the provider registered as long as one of the workspace folders might require it, and to check within the provider itself whether it needs to do anything for the specified workspace folder.

Colengms avatar Sep 20 '22 01:09 Colengms