Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async createConfig(): Promise {
this.commandService.executeCommand(CommonCommands.OPEN_PREFERENCES.id, PreferenceScope.Workspace);
const configs = this.cppBuildConfigurations.getConfigs().slice(0);
configs.push({ name: '', directory: '' });
await this.preferenceService.set(CPP_BUILD_CONFIGURATIONS_PREFERENCE_KEY, configs, PreferenceScope.Workspace);
}
}
async createConfig(): Promise {
this.commandService.executeCommand(CommonCommands.OPEN_PREFERENCES.id, PreferenceScope.Workspace);
const configs = this.cppBuildConfigurations.getConfigs().slice(0);
configs.push({ name: '', directory: '' });
await this.preferenceService.set(CPP_BUILD_CONFIGURATIONS_PREFERENCE_KEY, configs, PreferenceScope.Workspace);
}
}
export function createCppPreferences(preferences: PreferenceService): CppPreferences {
return createPreferenceProxy(preferences, defaultCppConfiguration, CppConfigSchema);
}