Repository navigation
Emmet tweaks: simplify set/reset Emmet preferences and syntax profiles - #11003
Conversation
|
LGTM to thanks 🌹 |
|
Denis Malinochkin (@mrmlnc) since this change this preference setting results in an error: {
"emmet.preferences": {
"less.propertyEnd": "END"
}
}Therefore my question is for (let key in preferences) {
try {
_emmet.preferences.set(key, preferences[key]);
} catch (err) {
_emmet.preferences.define(key, preferences[key]);
}
} |
|
Erich Gamma (@egamma), unfortunately, it's my mistake. I forgot about it. 😞 This PR, as specified in the description to it, removes support for undocumented features of Emmet, which don’t have any sense for the end user. Correct code: try {
_emmet.loadPreferences(emmetPreferences.preferences);
_emmet.loadProfiles(emmetPreferences.syntaxProfiles);
} catch(err) {
// silence
}Available settings: http://docs.emmet.io/customization/preferences/ |
|
Denis Malinochkin (@mrmlnc) no problem, pushed the fix, thanks. |

Source: #9500 and #9002
The process of set/reset preferences and syntax profiles for Emmet has been simplify. We don’t have to support undocumented features of Emmet, which don’t have any sense for the end user.
Just use Emmet API.