mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
less strict checking of rename locations, #58907
This commit is contained in:
@@ -524,9 +524,8 @@ class RenameAdapter {
|
||||
if (!range) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (!range.contains(pos)) {
|
||||
console.warn('INVALID rename location: range must contain position');
|
||||
if (range.start.line > pos.line || range.end.line < pos.line) {
|
||||
console.warn('INVALID rename location: position line must be within range start/end lines');
|
||||
return undefined;
|
||||
}
|
||||
return { range: typeConvert.Range.from(range), text };
|
||||
|
||||
Reference in New Issue
Block a user