mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix regression: emmet commands not working in html tags
This commit is contained in:
parent
844091f2d9
commit
3b1db263ff
9
node_modules/ace/lib/ace/ext/emmet.js
generated
vendored
9
node_modules/ace/lib/ace/ext/emmet.js
generated
vendored
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user