mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
Fix insert range of ts entries with replacement spans (#202287)
Fix #202153
This commit is contained in:
parent
43e7f46eb7
commit
34b0301287
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue