提交 c2dc46c1 编写于 作者: R Ramya Achutha Rao

Offset is relative to position when finding comment

上级 c07abc03
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册