Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
extension.activate().then(ext => {
const path = dict.getConfigLocation();
// We need to register the dictionary configuration with the Code Spell Checker Extension
if (ext && ext.registerConfig) {
ext.registerConfig(path);
ext.registerConfig(dictRussian.getConfigLocation());
}
});
}