fix regression: emmet commands not working in html tags

pull/223/head
nightwing 2015-11-24 23:02:58 +04:00
rodzic 844091f2d9
commit 3b1db263ff
1 zmienionych plików z 4 dodań i 5 usunięć

9
node_modules/ace/lib/ace/ext/emmet.js wygenerowano vendored
Wyświetl plik

@ -351,6 +351,10 @@ exports.runEmmetCommand = function runEmmetCommand(editor) {
if (this.action == "expand_abbreviation_with_tab") {
if (!editor.selection.isEmpty())
return false;
var pos = editor.selection.lead;
var token = editor.session.getTokenAt(pos.row, pos.column);
if (token && /\btag\b/.test(token.type))
return false;
}
if (this.action == "wrap_with_abbreviation") {
@ -360,11 +364,6 @@ exports.runEmmetCommand = function runEmmetCommand(editor) {
}, 0);
}
var pos = editor.selection.lead;
var token = editor.session.getTokenAt(pos.row, pos.column);
if (token && /\btag\b/.test(token.type))
return false;
var result = actions.run(this.action, editorProxy);
} catch(e) {
if (!emmet) {