TypeStrong / atom-typescript

The only TypeScript package you will ever need
https://atom.io/packages/atom-typescript
MIT License
1.13k stars 205 forks source link

feat/check-related-files #1537

Closed firejune closed 4 years ago

firejune commented 4 years ago

This feature is about check errors from related files by cursor position in design time. It using several protocols of tsserver:

Way use sync protocol?

  1. geterr command is does not guarantee the response of all files. It should be necessary synchronized list of open(and closed) files between the Atom.
  2. Handle for error messages for triggerFile. It is recognize for currently opened file in editor with working on ChecklistResolver
  3. Doesn't need diagnostics of syntactic and suggestion because saved(or not opened) files are passed already(getter command will always get diagnostics syntactic and suggestion)
  4. And much faster response then geterr command.

This PR is recreated for resolve sync state of open/close/change of files between Atom editor and external modifier. #1533