Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private activateEmmetWith(language: Languages) {
console.log(`Emmet activated with`, language);
const editor = this.editorInjector.editor;
if (language === Languages.html) {
this.emmetDisposeFn = emmetHTML(editor, monaco);
}
if (language === Languages.css) {
this.emmetDisposeFn = emmetCSS(editor, monaco);
}
}
private activateEmmetWith(language: Languages) {
console.log(`Emmet activated with`, language);
const editor = this.editorInjector.editor;
if (language === Languages.html) {
this.emmetDisposeFn = emmetHTML(editor, monaco);
}
if (language === Languages.css) {
this.emmetDisposeFn = emmetCSS(editor, monaco);
}
}