diff --git a/package.json b/package.json index da6ce8a..3045a39 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "watch": "tsc -w -p ./src && npm run copy-jsbeautify", "clean": "rimraf lib", "remove-sourcemap-refs": "node ./build/remove-sourcemap-refs.js", - "test": "npm run compile && mocha ./lib/umd/test/*.js && npm run lint", + "test": "npm run compile && mocha --timeout 5000 ./lib/umd/test/*.js && npm run lint", "lint": "eslint src/**/*.ts", "install-types-next": "yarn add vscode-languageserver-types@next -f -S && yarn add vscode-languageserver-textdocument@next -f -S", "copy-jsbeautify": "node ./build/copy-jsbeautify.js", diff --git a/src/services/htmlCompletion.ts b/src/services/htmlCompletion.ts index 9a46f85..fcf0669 100644 --- a/src/services/htmlCompletion.ts +++ b/src/services/htmlCompletion.ts @@ -368,7 +368,7 @@ export class HTMLCompletion { result.items.push({ label, kind: CompletionItemKind.Keyword, - documentation: l10n.t(`Character entity representing '${entities[entity]}'`), + documentation: l10n.t('Character entity representing \'{0}\'', entities[entity]), textEdit: TextEdit.replace(range, label), insertTextFormat: InsertTextFormat.PlainText }); diff --git a/src/tsconfig.esm.json b/src/tsconfig.esm.json index 7bb5ae1..ecd322b 100644 --- a/src/tsconfig.esm.json +++ b/src/tsconfig.esm.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "es2020", "module": "es6", "moduleResolution": "node", "sourceMap": true, @@ -8,7 +8,7 @@ "stripInternal": true, "outDir": "../lib/esm", "lib": [ - "es5", "es2015.promise" + "es2020" ], "strict": true } diff --git a/src/tsconfig.json b/src/tsconfig.json index 381766f..ca5c3b4 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "es2020", "module": "umd", "moduleResolution": "node", "sourceMap": true, @@ -8,7 +8,7 @@ "stripInternal": true, "outDir": "../lib/umd", "lib": [ - "es5", "es2015.promise" + "es2020" ], "strict": true }