File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/shared/Core/Authentication Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 3
3
using System . Diagnostics ;
4
4
using System . IO ;
5
5
using System . Linq ;
6
- using System . Reflection ;
7
- using System . Text ;
8
6
using System . Threading ;
9
7
using System . Threading . Tasks ;
10
8
@@ -92,6 +90,16 @@ protected void ThrowIfUserInteractionDisabled()
92
90
}
93
91
}
94
92
93
+ protected void ThrowIfGuiPromptsDisabled ( )
94
+ {
95
+ if ( ! Context . Settings . IsGuiPromptsEnabled )
96
+ {
97
+ Context . Trace . WriteLine ( $ "{ Constants . EnvironmentVariables . GitTerminalPrompts } is 0; GUI prompts have been disabled.") ;
98
+
99
+ throw new InvalidOperationException ( "Cannot show prompt because GUI prompts have been disabled." ) ;
100
+ }
101
+ }
102
+
95
103
protected void ThrowIfTerminalPromptsDisabled ( )
96
104
{
97
105
if ( ! Context . Settings . IsTerminalPromptsEnabled )
You can’t perform that action at this time.
0 commit comments