提交 9b29c54c 编写于 作者: R Ramya Rao 提交者: GitHub

Add err handling for emmet and update commit hash (#20267)

上级 c290bb4e
......@@ -90,7 +90,7 @@
"emmet": {
"version": "1.3.1",
"from": "ramya-rao-a/emmet#vscode",
"resolved": "git+https://github.com/ramya-rao-a/emmet.git#1d75a37a8c75795e103dae72b897eb0790c523ae"
"resolved": "git+https://github.com/ramya-rao-a/emmet.git#c8eb99f46c6734a37beadfd826c98a7a44d3e141"
},
"expand-brackets": {
"version": "0.1.5",
......
......@@ -92,6 +92,8 @@ class LazyEmmet {
return this._loadEmmet().then((_emmet: typeof emmet) => {
this._messageService = messageService;
this._withEmmetPreferences(configurationService, _emmet, callback);
}, (e) => {
callback(null);
});
}
......@@ -241,6 +243,10 @@ export abstract class EmmetEditorAction extends EditorAction {
}
return LazyEmmet.withConfiguredEmmet(configurationService, messageService, workspaceRoot, (_emmet) => {
if (!_emmet) {
this.noExpansionOccurred(editor);
return undefined;
}
editorAccessor.onBeforeEmmetAction();
instantiationService.invokeFunction((accessor) => {
this.runEmmetAction(accessor, new EmmetActionContext(editor, _emmet, editorAccessor));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册