-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Added option whether to show terminal reuse alert #44461
Conversation
@@ -193,6 +193,11 @@ configurationRegistry.registerConfiguration({ | |||
'type': 'boolean', | |||
'default': false | |||
}, | |||
'terminal.integrated.hideTerminalReuseAlert': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The terminal.integrated
namespace currently doesn't have anything related to tasks/debug in it AFAIK. @dbaeumer is there a tasks settings namespace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, everything in a tasks.json is basically a setting. So whether the message is shown or not should be a task settings and a global setting in the tasks.json.
The corresponding schema for this is here: https://github.com/Microsoft/vscode/blob/master/src\vs\workbench\parts\tasks\electron-browser\jsonSchema_v2.ts#L7
I hope I got it right this time. |
I looked at the PR and it goes into the right direction. Since tasks have already a presentation property I opt to include it there and not make it a first level attribute. Something:
The default should be true although not a falsify value. But it makes more sense then negating the key. And you only need to adopt the V2 schema since the presentation attribute is only supported on V2. |
@dbaeumer, I force-pushed the whole branch, but take a look at the last commit. |
Code looks OK to me. Can you add a test to ensure the configuration is passed correctly. |
@dbaeumer I did the same as with "focus" property in |
@oriash93 I need to push this to Mai. I was extremely busy with other things in April. Sorry for that. |
Sorry for moving it again. I will promise to look into it first thing in June. |
Allow user to disable "Terminal will be reused by tasks, press any key to close it" message.
I merged in the PR however I will tweak it a little. Mostly rename |
Is this available in the latest insiders build? I can't seem to get it to work but maybe I'm missing something. |
I should be in today's insider. |
Has this not landed in the current release version yet? I'm getting "Property message is not allowed" for |
The property name is |
|
@dbaeumer so this just hides the message "Press any key to close the terminal.", but user still has to press a key to reveal their terminal?? |
@rustyx you can still set presentation.reveal to 'never' which will not bring the terminal to the front. |
Allow user to disable "Terminal will be reused by tasks, press any key to close it" message.
fixes #42993