mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Fixed whitespace related comments to be a complete sentence.
This commit is contained in:
@@ -108,7 +108,8 @@ function pathToSuggestion(p: string, valueBeforeCursor: string, fullValue: strin
|
||||
// Find the last slash before cursor, and calculate the start of replace range from there
|
||||
const valueAfterLastSlash = fullValue.slice(lastIndexOfSlash + 1);
|
||||
const startPos = shiftPosition(range.end, -1 - valueAfterLastSlash.length);
|
||||
// If whitespace exists, replace until it
|
||||
|
||||
// If whitespace exists, replace until there is no more remaining.
|
||||
const whitespaceIndex = valueAfterLastSlash.indexOf(' ');
|
||||
if (whitespaceIndex === -1) {
|
||||
replaceRange = Range.create(startPos, shiftPosition(range.end, -1));
|
||||
|
||||
Reference in New Issue
Block a user