浏览代码

Editor doesn't respect htmlDefaults.setOptions to turn off angular suggestions. Fixes #3

Martin Aeschlimann 8 年之前
父节点
当前提交
cf8dfdae8f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/htmlWorker.ts

+ 1 - 1
src/htmlWorker.ts

@@ -34,7 +34,7 @@ export class HTMLWorker {
     doComplete(uri: string, position: ls.Position): Thenable<ls.CompletionList> {
 		let document = this._getTextDocument(uri);
 		let htmlDocument = this._languageService.parseHTMLDocument(document);
-		return Promise.as(this._languageService.doComplete(document, position, htmlDocument));
+		return Promise.as(this._languageService.doComplete(document, position, htmlDocument, this._languageSettings && this._languageSettings.suggest));
 	}
     format(uri: string, range: ls.Range, options: ls.FormattingOptions): Thenable<ls.TextEdit[]> {
 		let document = this._getTextDocument(uri);