提交 8652482c 编写于 作者: A Alex Dima

Bring back asyncCtor to html

上级 d04c7e2e
......@@ -321,6 +321,13 @@ export class HTMLMode<W extends htmlWorker.HTMLWorker> extends AbstractMode impl
this.richEditSupport = this._createRichEditSupport();
}
public asyncCtor(): winjs.Promise {
return winjs.Promise.join([
this.modeService.getOrCreateMode('text/css'),
this.modeService.getOrCreateMode('text/javascript'),
]);
}
protected _createModeWorkerManager(descriptor:Modes.IModeDescriptor, instantiationService: IInstantiationService): ModeWorkerManager<W> {
return new ModeWorkerManager<W>(descriptor, 'vs/languages/html/common/htmlWorker', 'HTMLWorker', null, instantiationService);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册