Skip to content
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

Feature request: Don't close the task terminal when I press a button #42066

Closed
petekinnecom opened this issue Jan 24, 2018 · 7 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release terminal Integrated terminal issues verified Verification succeeded

Comments

@petekinnecom
Copy link

  • VSCode Version: 1.20.0-insider/60440c72461e96893766bce73d7bdf1f5136a19f/x64
  • OS Version: MacOS

Steps to Reproduce:

  1. Add this as a custom task in a non-empty project. (Or on windows, run any command that displays the path to a file in your project.)
    {
      "args": ["."],
      "command": "find",
      "presentation": {
        "echo": true,
        "focus": true,
        "panel": "new",
        "reveal": "always"
      },
      "problemMatcher": [],
      "taskName": "repro",
      "type": "shell",
    }
  1. Run the 'repro' task.
  2. When the process terminates, see the text: "Terminal will be reused by tasks, press any key to close it."
  3. Try to cmd+click on one of the file paths to open the file in an editor.
  4. Terminal closes as soon as you push cmd, so you can't click on the path.

Does this issue occur when all extensions are disabled?: Yes

I think this behavior is recently introduced in the insiders build.

Essentially, I have a task (running tests) that outputs a stack trace when it fails. It used to be that I could cmd+click on some /path/to/file.ext:123 and get right to the code that failed. But now the terminal closes as soon as I start pressing cmd.

This also means that I can't use search in the terminal, because I need to press cmd+f.

Specifying "focus": false in the task's json somewhat mitigates the issue. However, I sometimes debug my tests interactively in the terminal during a test run, so the terminal ends up with focus regardless in many cases.

Let me know if there's a switch/setting I'm missing. If not, a global setting or a per-task setting to disable the "Terminal will be reused by tasks, press any key to close it." behavior would be great.

Thanks for the application and hard work!

@vscodebot vscodebot bot added the terminal Integrated terminal issues label Jan 24, 2018
@Tyriar
Copy link
Member

Tyriar commented Jan 29, 2018

What I'm hearing is modifiers should not be considered, and commands that will trigger keybindings (cmd+f) should not close.

@Tyriar Tyriar added the bug Issue identified by VS Code Team member as probable bug label Jan 29, 2018
@Tyriar Tyriar added this to the February 2018 milestone Jan 29, 2018
@gwk
Copy link

gwk commented Feb 5, 2018

Yes! Another glaring example is trying to copy a string from the build output with cmd+c - the current behavior is maddening. Thanks!

@Tyriar Tyriar closed this as completed in 2f5aba6 Feb 6, 2018
@Tyriar Tyriar added the candidate Issue identified as probable candidate for fixing in the next release label Feb 12, 2018
@Tyriar
Copy link
Member

Tyriar commented Feb 12, 2018

This is actually a regression and the fix I added doesn't fix everything It was caused by this PR: #38714 (#37983)

@Tyriar Tyriar reopened this Feb 12, 2018
Tyriar added a commit that referenced this issue Feb 12, 2018
This reverts commit 2f5aba6.

Undoing this in favor of reverting the PR that allowed arrows

Part of #42066
@Tyriar Tyriar closed this as completed in 2c43e3a Feb 12, 2018
Tyriar added a commit that referenced this issue Feb 12, 2018
This reverts commit f32ed90.

This caused problems with clicking/navigating/copying task output.

Fixes #42066
@Tyriar
Copy link
Member

Tyriar commented Feb 12, 2018

Reverted the commit that caused the issue f32ed90 and cherry picked the revert to release/1.20

@Tyriar Tyriar added the verified Verification succeeded label Feb 13, 2018
@BillDenton
Copy link

When is the recovery build that fixes this major issue going to be released? Every time I get a build error that I need to click on this catches me so I have to do another build to see the error. IMHO it is a bit early to close the issue given that there isn't release build that is fixed.

@Tyriar
Copy link
Member

Tyriar commented Feb 14, 2018

@BillDenton it's out now. We close the issue when the issue is fixed not when it's released, that's the process.

@BillDenton
Copy link

@Tyriar Just updated and tested it. Working OK - a relief. Thanks.

@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release terminal Integrated terminal issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants