You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feedback to improve compileOnSave with tsserver. #17630
I have implemented inside Eclipse compile on save with tsserver by consuming compileOnSaveAffectedFileList and compileOnSaveEmitFile commands. It works great but I think we could again improved it
For compileOnSaveAffectedFileList:
compileOnSaveAffectedFileList should throw error when the given file is excluded of tsconfig.json. It will give the capability to display an error dialog when user wishes to compile a ts file which is excluded by tsconfig.json
the reponse compileOnSaveEmitFile should return diagnostics errors. I had to call the two tsserver commands syntacticDiagnosticsSync and semantacticDiagnosticsSync after the call of compileOnSaveEmitFile to display errors in the Eclipse "Problem View"
the reponse compileOnSaveEmitFile should return the emited files path (js and *.js.map). In Eclipse case it's very helpful because I could refresh the files.
compileOnSaveAffectedFileList should throw error when the given file is excluded of tsconfig.json. It will give the capability to display an error dialog when user wishes to compile a ts file which is excluded by tsconfig.json
do not you have this already from projectInfo?
in some case, tsserver compileOnSaveAffectedFileList returns *.d.ts files (see angelozerr/typescript.java#190 (comment)) those *.d.ts files must be ignored for compilation.
I would say this is a bug.
the reponse compileOnSaveEmitFile should return diagnostics errors. I had to call the two tsserver commands syntacticDiagnosticsSync and semantacticDiagnosticsSync after the call of compileOnSaveEmitFile to display errors in the Eclipse "Problem View"
I would disassociate errors from compile-on-save.
the reponse compileOnSaveEmitFile should return the emited files path (js and *.js.map). In Eclipse case it's very helpful because I could refresh the files.
Activity
[-]Feedback to improve compile on save with tsserver.[/-][+]Feedback to improve compileOnSave with tsserver.[/+]mhegazy commentedon Aug 29, 2017
do not you have this already from
projectInfo?I would say this is a bug.
I would disassociate errors from compile-on-save.
seems like a reasonable request. PRs welcomed.
mhegazy commentedon Oct 27, 2017
PRs welcomed for changing
compileOnSaveEmitFileto return a list of generated files.