You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unsaved export not offered for auto-import after reopening the importing file #64953
Open exporter.ts (empty on disk) with export function unsavedFn() {}.
Reopen importer.ts with unsavedFn;, then request a completion at the end of unsavedFn, or call the API's getImportEditsForSymbols(importer, [unsavedFn]).
Expected
The completion list contains unsavedFn as an auto-import from ./exporter, and getImportEditsForSymbols returns an import edit.
Actual
The completion list has no auto-import entry for unsavedFn, and getImportEditsForSymbols returns [].
FAIL 0/5 [API] getImportEditsForSymbols, unsaved export, auto-imports computed before
FAIL 0/5 [LSP] completion, unsaved export, auto-imports computed before
PASS 5/5 [API] getImportEditsForSymbols, unsaved export, no auto-imports before
PASS 5/5 [LSP] completion, unsaved export, no auto-imports before
PASS 5/5 [API] getImportEditsForSymbols, saved export, auto-imports computed before
PASS 5/5 [LSP] completion, saved export, auto-imports computed before
Environment
typescript@7.1.0-beta; also reproduces with typescript@7.0.2 and typescript@7.1.0-dev.20261024.1
Activity