mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Fix insert range of ts entries with replacement spans (#202287)
Fix #202153
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user