Revert "Fixed comment"

This reverts commit 4b3e76abc170276a160f3d86ab424e9a40523d7d.
This commit is contained in:
pi1024e 2019-07-22 08:18:54 -04:00
parent a7a15df4ca
commit fd0116b8f6

View File

@ -153,8 +153,7 @@ 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 is gone.
// If whitespace exists, replace until it
const whitespaceIndex = valueAfterLastSlash.indexOf(' ');
if (whitespaceIndex === -1) {
return Range.create(startPos, fullValueRange.end);