Files
vscode/extensions/typescript-language-features/src
yogeshwaran-c ef6d5f314e fix: send user preferences to TS server even without visible editor
When ensureConfigurationForDocument is called and no visible text editor
is found for the document, getFormattingOptions returns undefined and
the method returns early without sending any configuration including
user preferences like preferTypeOnlyAutoImports to the TS server.

This causes source.addMissingImports to ignore the user's
preferTypeOnlyAutoImports setting.

Fix by falling back to undefined formatting options when no visible
editor is found, ensuring user preferences are always sent.

Closes #272479
2026-03-26 06:45:15 +05:30
..
2026-02-23 11:26:21 -08:00