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);