[html] use languageModes for language types

This commit is contained in:
Martin Aeschlimann
2019-12-13 11:50:52 +01:00
parent f07fae16be
commit eb7ea2c435
15 changed files with 58 additions and 69 deletions

View File

@@ -7,8 +7,7 @@ import * as path from 'path';
import * as fs from 'fs';
import * as assert from 'assert';
import { getLanguageModes } from '../modes/languageModes';
import { TextDocument, Range, FormattingOptions, ClientCapabilities } from 'vscode-html-languageservice';
import { getLanguageModes, TextDocument, Range, FormattingOptions, ClientCapabilities } from '../modes/languageModes';
import { format } from '../modes/formatting';
@@ -168,7 +167,7 @@ suite('HTML Embedded Formatting', () => {
}
};
var content = [
const content = [
'<html>',
'',
'<body>',
@@ -179,7 +178,7 @@ suite('HTML Embedded Formatting', () => {
'</html>',
].join('\n');
var expected = [
const expected = [
'<html>',
'',
'<body>',