angular-eclipse icon indicating copy to clipboard operation
angular-eclipse copied to clipboard

Link Terminal with Angular Project

Open rubensa opened this issue 8 years ago • 6 comments

I think that there should be one Terminal linked with one Angular Project.

When you execute a command on a project (Right click, Run as, ng build for example) and there is currently a linked Terminal opened (for previous command run), reuse. If there is no one (never opened or just closed), create a new one and link with the project (for future re-use).

rubensa avatar Jul 07 '17 14:07 rubensa

@rubensa As much as I know thats what it already does. However, there could be more then 1 Terminal/Project, since commands like "ng serve" run until you stop them. So to execute "ng generate" while "ng serve" is running, it needs to open a new Terminal.

probert94 avatar Jul 10 '17 06:07 probert94

Hello @Springrbua

I missed that cause Terminal used to create the project is not re-used (so a bit more "reuse" could be done).

I've just checked that if I run twice "Run As --> ng build", same Terminal is used.

Thanks!

rubensa avatar Jul 10 '17 06:07 rubensa

The Terminal used to create the project probably isn't linked to the Project. We might need to check that.
Thanks for the information!

probert94 avatar Jul 10 '17 07:07 probert94

Additional info on this issue... Terminal console used to create a new project is re-used to create other new projects...

NOTE: PATH variable is updated to last created project.

rubensa avatar Jul 10 '17 09:07 rubensa

Thank you for the information.
I guess the terminal, used to create a project, get's a different id from the Terminals used for other commands.
Thats why they will be reused for other "create" commands too.

probert94 avatar Jul 10 '17 12:07 probert94

Hello

Another issue on these is that Terminal should not be reused if a command is currently running (don't know if It's possible to ask the Terminal if there is a running process active).

Currently if a process is running you can see the new command written on the terminal (for example ng build) but It's never really run (cause there is an ongoing running process -for example if you previously manually executed an ng server).

rubensa avatar Jul 11 '17 10:07 rubensa