提交 65b0a4d8 编写于 作者: P pi1024e

Fixed comment

上级 d96cd165
......@@ -153,7 +153,8 @@ function pathToReplaceRange(valueBeforeCursor: string, fullValue: string, fullVa
// Find the last slash before cursor, and calculate the start of replace range from there
const valueAfterLastSlash = fullValue.slice(lastIndexOfSlash + 1);
const startPos = shiftPosition(fullValueRange.end, -valueAfterLastSlash.length);
// If whitespace exists, replace until it
// If whitespace exists, replace until it is gone.
const whitespaceIndex = valueAfterLastSlash.indexOf(' ');
if (whitespaceIndex === -1) {
return Range.create(startPos, fullValueRange.end);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册