Fix insert range of ts entries with replacement spans (#202287)

Fix #202153
This commit is contained in:
Matt Bierner
2024-01-11 14:27:22 -08:00
committed by GitHub
parent 43e7f46eb7
commit 34b0301287

View File

@@ -374,7 +374,7 @@ class MyCompletionItem extends vscode.CompletionItem {
// If TS returns an explicit replacement range, we should use it for both types of completion
return {
inserting: replaceRange,
inserting: new vscode.Range(replaceRange.start, this.position),
replacing: replaceRange,
};
}