mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
Fix insert range of ts entries with replacement spans (#202287)
Fix #202153
This commit is contained in:
parent
43e7f46eb7
commit
34b0301287
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue