-
Notifications
You must be signed in to change notification settings - Fork 14
TypeScriptBuilder vs TS Server Watch mode #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
TS Server Watch mode seems beeing a new feature and perhaps VScode uses that? We must study that https://github.com/Microsoft/vscode/tree/master/extensions/typescript/src Any PR are welcome! |
Yes, we should look at that because I think the Watch mode could simplify a lot TypeScript IDE, probably an Eclipse project builder is not going to be needed anymore. I think the idea behind this kind of language services (like tsserver and lsp) is that clients don't need to do any heavy stuff, all the state and computation should be on the server side. |
The main problem with that is that you cannot see progress monitor and stop as soon as possible the compile process.
It looks like that today, I don't compute dependencies or other complex things, I'm using tsserevr commands for that. |
But it think it is a problem of |
Not sure that TypeScript teams will implement that. |
I guess they should if they want to be IDE independent. In the meantime, to stop the compilation we can kill the process, and print the output messages to show the progress. |
No we cannot do that, because tsserver is used too for completion, hover, etc
Perhaps tsserver watch supports that. The best mean is to study this feature, but I have no time to study that for the moment. Any help are welcome:) |
Yes, the tsserver emits the files are being compiled. I was looking into the VSCode TypeScript extension you pointed to me above and I did not find any related to the watch mode, however in the official tutorial about TypeScript development with VSCode they say the compiling is made via Tasks, traduced to the Eclipse world, via Run Configurations: https://code.visualstudio.com/docs/languages/typescript#_transpiling-typescript-into-javascript It means that the user is the one who executes the compiler, in watch mode or not. I think this is could be valid for TypeScript IDE, instead of implement a builder it can provides simpler ways of running the typescript compiler, for example, with Run Configurations or a TypeScript Compiler console. A TypeScript Compiler console could be a kind of terminal that adds |
This launch already exists https://github.com/angelozerr/typescript.java/wiki/TypeScript-Compiler You must not to use compileOnSave in this case. |
I have to test it :), actually, I see you mention there the watch mode. |
@boniatillo-com I think when you say tsserver watch mode, it's tsc watch mode. It's not the same thing. The benefit with tsserver compile on save is that you avoid double parsing of ts files (one by tsserver and one by tsc). More with tsserver you can manage progress monitor. |
Hi @angelozerr, sorry, I am not collaborating more, I am preparing the papers myself for two conventions and my time is zero. As soon as I back from the travel I will return on this. I want to deliver the new major Phaser Editor version with typescript ide. |
What features are provided by TypeScriptBuilder that are not provided by the TS Server Watch mode?
Probably to use
tsserver -w
could be a simpler solution to issues like for allowJs parameter .The text was updated successfully, but these errors were encountered: