[html] close tag fix

This commit is contained in:
Martin Aeschlimann 2016-09-14 11:16:13 +02:00
parent b66b9871a0
commit cf1596c6f0

View file

@ -56,7 +56,7 @@ export function doComplete(document: TextDocument, position: Position, doc: HTML
function collectCloseTagSuggestions(afterOpenBracket: number, matchingOnly: boolean) : CompletionList {
let range = getReplaceRange(afterOpenBracket);
let contentAfter = document.getText().substr(offset);
let contentAfter = document.getText().substr(offset, 1);
let closeTag = isWhiteSpace(contentAfter) || startsWith(contentAfter, '<') ? '>' : '';
let curr = node;
while (curr) {