[html] update to TextDocument and switch to incremental

This commit is contained in:
Martin Aeschlimann
2019-11-05 22:19:36 +01:00
parent c198ec2eac
commit 1476c4e20b
18 changed files with 89 additions and 83 deletions

View File

@@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { TextDocument, Range, TextEdit, FormattingOptions, Position } from 'vscode-languageserver-types';
import { TextDocument, Range, TextEdit, FormattingOptions, Position } from 'vscode-html-languageservice';
import { LanguageModes, Settings, LanguageModeRange } from './languageModes';
import { pushAll } from '../utils/arrays';
import { isEOL } from '../utils/strings';
@@ -90,4 +90,4 @@ export function format(languageModes: LanguageModes, document: TextDocument, for
languageModes.onDocumentRemoved(newDocument);
}
}
}