amatiasq / vsc-sort-imports

Sort ES6 imports automatically.
ISC License
57 stars 24 forks source link

Workspace support > Only the latest parsed configuration is used on all repositories of a workspace #68

Closed jerome-benoit closed 3 years ago

jerome-benoit commented 4 years ago

To reproduce, setup a workspace with two repository folders containing typescript code. One with no specific configuration for sort-imports and the second with a configuration like:

"importSort": {
    ".js, .jsx, .es6, .es, .mjs": {
      "parser": "babylon",
      "style": "module",
      "options": {}
    },
    ".ts, .tsx": {
      "parser": "typescript",
      "style": "module",
      "options": {}
    }
  }, 

The configuration that will be used inside the whole workspace will be only the one parsed the first session time for the first saved file in a repo. The plugin does not seem to parse again the configuration relative to the saved file current repository unless code is reloaded or restarted.

jerome-benoit commented 3 years ago

Added in 6.2.2 version.