From fd0116b8f6fae9a899b9beb3f90cc863ea3f8b96 Mon Sep 17 00:00:00 2001 From: pi1024e Date: Mon, 22 Jul 2019 08:18:54 -0400 Subject: [PATCH] Revert "Fixed comment" This reverts commit 4b3e76abc170276a160f3d86ab424e9a40523d7d. --- extensions/css-language-features/server/src/pathCompletion.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/css-language-features/server/src/pathCompletion.ts b/extensions/css-language-features/server/src/pathCompletion.ts index 478e249549a..7de00f1d57b 100644 --- a/extensions/css-language-features/server/src/pathCompletion.ts +++ b/extensions/css-language-features/server/src/pathCompletion.ts @@ -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);