jbockle / format-files

VS Code extension to format all files in workspace
41 stars 13 forks source link

Does not run Organize Imports #5

Closed snebjorn closed 5 years ago

snebjorn commented 5 years ago

I noticed that after having run "FormatFiles" my TypeScript imports would be rearranged when saving the file.

I have this option enabled:

  "editor.codeActionsOnSave": {
    "source.organizeImports": true
  }

Example:

Result after "FormatFiles"

import {
  Directive,
  HostListener,
  Input,
  Output,
  EventEmitter
} from "@angular/core";

Result after manually saving the file

import {
  Directive,
  EventEmitter,
  HostListener,
  Input,
  Output
} from "@angular/core";
jbockle commented 5 years ago

This should work now