···111111 ```
112112113113 ([Andrey Kozhev](https://github.com/ankddev))
114114+115115+- Fixed a bug where renaming would not work properly if there was an error in
116116+ target file.
117117+ ([Surya Rose](https://github.com/GearsDatapacks))
···607607 let _ = incomplete_modules.insert(name.clone());
608608 // Register the partially type checked module data so that it can be
609609 // used in the language server.
610610- modules.push(Module {
610610+ let mut module = Module {
611611 dependencies,
612612 origin,
613613 extra,
···616616 code,
617617 ast,
618618 input_path: path,
619619- });
619619+ };
620620+ module.attach_doc_and_module_comments();
621621+622622+ let _ = module_types.insert(module.ast.name.clone(), module.ast.type_info.clone());
623623+624624+ modules.push(module);
620625 // WARNING: This cannot be used for code generation as the code has errors.
621626 return Outcome::PartialFailure(modules, error);
622627 }
···141141 }
142142143143 match renamed.target_kind {
144144+ // When renaming an unqualified import, instead of renaming the original
145145+ // value, we simply want to alias it in the current module.
146146+ // It's an unqualified import if we are referencing it using unqualified
147147+ // syntax, and it is from a different module.
144148 RenameTarget::Unqualified if renamed.module_name != ¤t_module.name => {
145149 return alias_references_in_module(
146150 params,