async sectionChanged()

in vscode/qodana/src/core/config/index.ts [147:163]


    async sectionChanged(client: LanguageClient, context: vscode.ExtensionContext) {
        for (let setting of this.settings) {
            let allValues = vscode.workspace.getConfiguration().inspect(setting.id);
            if (allValues?.globalValue !== undefined && allValues.globalValue !== '') {
                let value = await vscode.window.showErrorMessage(USER_LEVEL_SETTINGS, ULS_PROCEED);
                if (value === ULS_PROCEED) {
                    await this.resetGlobalSettings();
                }
                return;
            }
        }

        // ok, it's not a global settings change, check if workspace settings are valid
        let silent = !IS_DEBUG;
        let isValid = await this.configIsValid(context, silent);
        await this.updateClientState(isValid, client);
    }