mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +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 {
|
function collectCloseTagSuggestions(afterOpenBracket: number, matchingOnly: boolean) : CompletionList {
|
||||||
let range = getReplaceRange(afterOpenBracket);
|
let range = getReplaceRange(afterOpenBracket);
|
||||||
let contentAfter = document.getText().substr(offset);
|
let contentAfter = document.getText().substr(offset, 1);
|
||||||
let closeTag = isWhiteSpace(contentAfter) || startsWith(contentAfter, '<') ? '>' : '';
|
let closeTag = isWhiteSpace(contentAfter) || startsWith(contentAfter, '<') ? '>' : '';
|
||||||
let curr = node;
|
let curr = node;
|
||||||
while (curr) {
|
while (curr) {
|
||||||
|
|
Loading…
Reference in a new issue