Closed alexdima closed 4 days ago
Was this found in vscode, and if so, could you link the/a location in the repo where this happens? Currently, with the reported case, the import is correctly generated (#59884).
My guess is that this behavior is related to the autoImportFileExcludePatterns
setting. I fixed a related crash few months ago (https://github.com/microsoft/TypeScript/pull/58537), and the default case, if we could not find a non-excluded file to import from, was to finish the rest of the codefix without generating that particular import.
Appologies for the slow reply. I'm really sorry, I spent 20 minutes trying to reproduce in a separate project than vscode, but I did not manage (I tried bringing over the tsconfig from vscode, the settings from the vscode folder, but to no avail).
Here are the steps:
npm i
Version: 1.95.0-insider / Commit: c33745f66ce1cd626c3282112671e2a66471ce4f / Date: 2024-10-04T05:03:41.673Z (4 hrs ago)
5.7.0-dev.20240927
)src/vs/workbench/contrib/chat/browser/chatEditingService.ts#L338
ChatEditingSession
to a new filehttps://github.com/user-attachments/assets/41ec8198-ec4a-41d2-88c4-f2b005beb932
This looks like a name resolving bug, thanks for providing the repo location!
Doing move to a new file on
Something
generates the following 🐛 (note howDisposable
is not imported from_producer.ts
):