Skip to content

Link Terminal with Angular Project #95

Open

Description

@rubensa

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).

Activity

  1. probert94 commented on Jul 10, 2017

    @probert94
    Contributor

    @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.

  2. rubensa commented on Jul 10, 2017

    @rubensa
    Author

    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!

  3. probert94 commented on Jul 10, 2017

    @probert94
    Contributor

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

  4. rubensa commented on Jul 10, 2017

    @rubensa
    Author

    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.

  5. probert94 commented on Jul 10, 2017

    @probert94
    Contributor

    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.

  6. rubensa commented on Jul 11, 2017

    @rubensa
    Author

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions