提交 d96cd165 编写于 作者: P pi1024e

Fixed code

上级 d6bf20d8
......@@ -156,11 +156,11 @@ function pathToReplaceRange(valueBeforeCursor: string, fullValue: string, fullVa
// If whitespace exists, replace until it
const whitespaceIndex = valueAfterLastSlash.indexOf(' ');
if (whitespaceIndex === -1) {
return Range.create(startPos, shiftPosition(startPos, whitespaceIndex));
}
return Range.create(startPos, fullValueRange.end);
return Range.create(startPos, fullValueRange.end);
}
return Range.create(startPos, shiftPosition(startPos, whitespaceIndex));
}
function pathToSuggestion(p: string, replaceRange: Range): CompletionItem {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册