mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add diagnostic info
This commit is contained in:
@@ -106,7 +106,11 @@ public class ZenCodingTemplate extends CustomLiveTemplateBase {
|
||||
@Override
|
||||
public void expand(@NotNull String key, @NotNull CustomTemplateCallback callback) {
|
||||
ZenCodingGenerator defaultGenerator = findApplicableDefaultGenerator(callback.getContext(), false);
|
||||
assert defaultGenerator != null;
|
||||
if (defaultGenerator == null) {
|
||||
LOG.error("Cannot find defaultGenerator for key `" + key +"` at " + callback.getEditor().getCaretModel().getOffset() + " offset",
|
||||
AttachmentFactory.createAttachment(callback.getEditor().getDocument()));
|
||||
return;
|
||||
}
|
||||
try {
|
||||
expand(key, callback, defaultGenerator, Collections.<ZenCodingFilter>emptyList(), true, Registry.intValue("emmet.segments.limit"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user