Skip to content

[folding] organize imports on save expands minimized imports #156675

@emiomacollins

Description

@emiomacollins

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.69.2
  • OS Version: windows

Steps to Reproduce:

  1. add this to settings.json
    "editor.codeActionsOnSave": {
    "source.organizeImports": true
    },
  2. minimize your imports
  3. save
  4. imports get expanded automatically

it's a bit annoying to manually minimize imports every time I save. and I also like having my imports get organized on save, it helps remove unused imports.

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugeditor-foldingEditor code folding issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions