private checkWithExistingSettings()

in src/mapper.ts [73:84]


    private checkWithExistingSettings(vscodeSetting: VscodeSetting, config: vscode.WorkspaceConfiguration): IConfigCheck {
        const returnVal = { alreadyExists: false, existingValue: '' };
        const info = config.inspect(vscodeSetting.name);
        if (info && info.globalValue !== undefined) {
            if (info.globalValue === vscodeSetting.value) {
                returnVal.alreadyExists = true;
            } else {
                returnVal.existingValue = returnVal.existingValue === null ? '' : String(info.globalValue);
            }
        }
        return returnVal;
    }