提交 eaebbe48 编写于 作者: J Johannes Rieken

htmlWorker always needs a range, fix issue #1321

上级 8ac83276
......@@ -454,11 +454,6 @@ export class HTMLMode<W extends htmlWorker.HTMLWorker> extends AbstractMode<W> i
return createAsyncDescriptor2('vs/languages/html/common/htmlWorker', 'HTMLWorker');
}
static $formatDocument = OneWorkerAttr(HTMLMode, HTMLMode.prototype.formatDocument);
public formatDocument(resource:URI, options:Modes.IFormattingOptions):winjs.TPromise<EditorCommon.ISingleEditOperation[]> {
return this._worker((w) => w.format(resource, null, options));
}
static $formatRange = OneWorkerAttr(HTMLMode, HTMLMode.prototype.formatRange);
public formatRange(resource:URI, range:EditorCommon.IRange, options:Modes.IFormattingOptions):winjs.TPromise<EditorCommon.ISingleEditOperation[]> {
return this._worker((w) => w.format(resource, range, options));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册