Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getConfig(): WorkspaceConfiguration {
let config = workspace.getConfiguration('ember');
return config;
}
constructor(private pluginManager: PluginManager) {
const config = workspace.getConfiguration('tsserver')
const enableJavascript = !!config.get('enableJavascript')
this.enable = config.get('enable')
this.descriptions = standardLanguageDescriptions.filter(o => {
return enableJavascript ? true : o.id != 'javascript'
})
this.selector = this.descriptions.reduce((arr, c) => {
return arr.concat(c.modeIds)
}, [])
}
private configurationChanged(): void {
const config = workspace.getConfiguration('tsserver')
this.reportStyleCheckAsWarnings = config.get('reportStyleChecksAsWarnings', true)
}
public enableJavascript(): boolean {
const config = workspace.getConfiguration('tsserver')
return !!config.get('enableJavascript')
}