Typescript: Organize Imports CLI command

Created on 12 Aug 2019  路  4Comments  路  Source: microsoft/TypeScript

https://github.com/microsoft/vscode/issues/78839

Suggestion

Organize imports is a nice editor feature for VSCode, but if we start using it as an organization, we'll need to enforce that everyone is using it.

  • We need to be able to run this command on all files in our CI, otherwise people will fall out of sync.
  • People using other editors need to be able to run this command.

Checklist

My suggestion meets these guidelines:

  • [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • [x] This wouldn't change the runtime behavior of existing JavaScript code
  • [x] This could be implemented without emitting different JS based on the types of the expressions
  • [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • [x] This feature would agree with the rest of TypeScript's Design Goals.
Awaiting More Feedback Suggestion

Most helpful comment

All 4 comments

Could be implemented as a community tool today, but we should think about this use case as part of our longer-term thinking on LS tooling from the commandline

cc @rbuckton related to the extension API: I think if we have one, we really shouldn't have separate tsc/service layers, if it can be avoided, and this is a mark towards moving everything towards the services-included model (so if that has perf issues, we should start fixing them!).

Thanks @thorn0 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manekinekko picture manekinekko  路  3Comments

seanzer picture seanzer  路  3Comments

jbondc picture jbondc  路  3Comments

dlaberge picture dlaberge  路  3Comments

uber5001 picture uber5001  路  3Comments