mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
[html] close tag fix
This commit is contained in:
parent
b66b9871a0
commit
cf1596c6f0
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue