Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function registerInteractiveCommands(menu) {
actions.add('interactive_expand_abbreviation', function() {}, 'Expand Abbreviation (interactive)');
['wrap_with_abbreviation', 'update_tag', 'interactive_expand_abbreviation'].forEach(function(cmd) {
var action = actions.get(cmd);
CommandManager.register(actionLabel(action, cmd), 'io.emmet.' + cmd, function() {
editor.setup(EditorManager.getFocusedEditor());
interactive.run(cmd, editor);
});
});
}