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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 // If TS returns an explicit replacement range, we should use it for both types of completion
return { return {
inserting: replaceRange, inserting: new vscode.Range(replaceRange.start, this.position),
replacing: replaceRange, replacing: replaceRange,
}; };
} }