@@ -50,23 +50,7 @@ export class InstallFormatterPrompt implements IInstallFormatterPrompt {
50
50
51
51
let selection : string | undefined ;
52
52
53
- if ( formatter === 'black' && ! black ) {
54
- this . shownThisSession = true ;
55
- selection = await showInformationMessage (
56
- ToolsExtensions . installBlackFormatterPrompt ,
57
- 'Black' ,
58
- 'Autopep8' ,
59
- Common . doNotShowAgain ,
60
- ) ;
61
- } else if ( formatter === 'autopep8' && ! autopep8 ) {
62
- this . shownThisSession = true ;
63
- selection = await showInformationMessage (
64
- ToolsExtensions . installAutopep8FormatterPrompt ,
65
- 'Black' ,
66
- 'Autopep8' ,
67
- Common . doNotShowAgain ,
68
- ) ;
69
- } else if ( black || autopep8 ) {
53
+ if ( black || autopep8 ) {
70
54
this . shownThisSession = true ;
71
55
if ( black && autopep8 ) {
72
56
selection = await showInformationMessage (
@@ -94,6 +78,22 @@ export class InstallFormatterPrompt implements IInstallFormatterPrompt {
94
78
selection = 'Autopep8' ;
95
79
}
96
80
}
81
+ } else if ( formatter === 'black' && ! black ) {
82
+ this . shownThisSession = true ;
83
+ selection = await showInformationMessage (
84
+ ToolsExtensions . installBlackFormatterPrompt ,
85
+ 'Black' ,
86
+ 'Autopep8' ,
87
+ Common . doNotShowAgain ,
88
+ ) ;
89
+ } else if ( formatter === 'autopep8' && ! autopep8 ) {
90
+ this . shownThisSession = true ;
91
+ selection = await showInformationMessage (
92
+ ToolsExtensions . installAutopep8FormatterPrompt ,
93
+ 'Black' ,
94
+ 'Autopep8' ,
95
+ Common . doNotShowAgain ,
96
+ ) ;
97
97
}
98
98
99
99
if ( selection === 'Black' ) {
0 commit comments