From c2dc46c1ce92ed2191574046b5286e76cc8eed84 Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Tue, 27 Mar 2018 12:28:20 -0700 Subject: [PATCH] Offset is relative to position when finding comment --- extensions/emmet/src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/emmet/src/util.ts b/extensions/emmet/src/util.ts index 8dd1d2d21f5..f0043f6b2db 100644 --- a/extensions/emmet/src/util.ts +++ b/extensions/emmet/src/util.ts @@ -223,7 +223,7 @@ function findClosingCommentAfterPosition(document: vscode.TextDocument, position if (offset === -1) { return; } - offset += 2; + offset += 2 + document.offsetAt(position); return document.positionAt(offset); } -- GitLab