未验证 提交 19dcc791 编写于 作者: U Utsav Munendra 提交者: GitHub
上级 b4da98ac
...@@ -19,7 +19,7 @@ export function applyLineChanges(original: TextDocument, modified: TextDocument, ...@@ -19,7 +19,7 @@ export function applyLineChanges(original: TextDocument, modified: TextDocument,
// if this is a deletion at the very end of the document,then we need to account // if this is a deletion at the very end of the document,then we need to account
// for a newline at the end of the last line which may have been deleted // for a newline at the end of the last line which may have been deleted
// https://github.com/Microsoft/vscode/issues/59670 // https://github.com/Microsoft/vscode/issues/59670
if (isDeletion && diff.originalStartLineNumber === original.lineCount) { if (isDeletion && diff.originalEndLineNumber === original.lineCount) {
endLine -= 1; endLine -= 1;
endCharacter = original.lineAt(endLine).range.end.character; endCharacter = original.lineAt(endLine).range.end.character;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册