simplify tests, fix tests, promise ftw

This commit is contained in:
Johannes Rieken
2017-05-26 11:07:17 +02:00
parent e14e783ca8
commit 7e68adad64
2 changed files with 13 additions and 22 deletions

View File

@@ -249,8 +249,8 @@ export class ExtHostDocumentData extends MirrorModel {
} else if (regExpLeadsToEndlessLoop(regexp)) {
// use default when custom-regexp is bad
regexp = getWordDefinitionFor(this._languageId);
console.warn(`[getWordRangeAtPosition]: ignoring custom regexp '${regexp.source}' because it matches the empty string.`);
regexp = getWordDefinitionFor(this._languageId);
}
let wordAtText = getWordAtText(