Feedback to improve compileOnSave with tsserver. #17630
Labels
API
Relates to the public API for TypeScript
Help Wanted
You can do this
Suggestion
An idea for TypeScript
VS Code Tracked
There is a VS Code equivalent to this issue
Milestone
I have implemented inside Eclipse
compile on save
with tsserver by consumingcompileOnSaveAffectedFileList
andcompileOnSaveEmitFile
commands. It works great but I think we could again improved itFor
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.jsoncompileOnSaveAffectedFileList
returns *.d.ts files (see ttps://github.com/ ts.TypeScriptNoContentAvailableException on compile angelozerr/typescript.java#190#issuecomment-317876026) those *.d.ts files must be ignored for compilation.For
compileOnSaveEmitFile
:compileOnSaveEmitFile
should return diagnostics errors. I had to call the two tsserver commandssyntacticDiagnosticsSync
andsemantacticDiagnosticsSync
after the call ofcompileOnSaveEmitFile
to display errors in the Eclipse "Problem View"compileOnSaveEmitFile
should return the emited files path (js and *.js.map). In Eclipse case it's very helpful because I could refresh the files.The text was updated successfully, but these errors were encountered: