mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
fix(54283): Provide better UX when an invalid file is selected for 'move to file' refactoring (#54300)
This commit is contained in:
@@ -721,6 +721,7 @@ export interface RefactorEditInfo {
|
||||
*/
|
||||
renameLocation?: Location;
|
||||
renameFilename?: string;
|
||||
notApplicableReason?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -2709,7 +2709,8 @@ export class Session<TMessage = string> implements EventSender {
|
||||
return {
|
||||
renameLocation: mappedRenameLocation,
|
||||
renameFilename,
|
||||
edits: this.mapTextChangesToCodeEdits(edits)
|
||||
edits: this.mapTextChangesToCodeEdits(edits),
|
||||
notApplicableReason: result.notApplicableReason,
|
||||
};
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user