Skip to content

Commit

Permalink
lightspeed: remove an unused block (#1362)
Browse files Browse the repository at this point in the history
The block was not actually never triggered.
  • Loading branch information
goneri authored Aug 2, 2024
1 parent 9f67ace commit a2c4e3f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/features/lightspeed/inlineSuggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -825,20 +825,6 @@ export async function inlineSuggestionReplaceMarker(position: vscode.Position) {
// Get the current text
const line = position.line;

const text = editor.document.getText(
new vscode.Range(
new vscode.Position(line, 0),
new vscode.Position(line + 1, 0),
),
);
// Remove the prepended text
const commentPosition = text.indexOf(
LIGHTSPEED_SUGGESTION_GHOST_TEXT_COMMENT,
);
if (commentPosition === -1) {
return;
}

// Update the editor with the new text
await editor.edit((editBuilder) => {
editBuilder.delete(
Expand Down

0 comments on commit a2c4e3f

Please sign in to comment.