@@ -118,7 +118,7 @@ suite('Set Interpreter Command', () => {
118
118
const defaultInterpreterPath = 'defaultInterpreterPath' ;
119
119
const defaultInterpreterPathSuggestion = {
120
120
label : `${ Octicons . Gear } ${ InterpreterQuickPickList . defaultInterpreterPath . label ( ) } ` ,
121
- detail : defaultInterpreterPath ,
121
+ description : defaultInterpreterPath ,
122
122
path : defaultInterpreterPath ,
123
123
alwaysShow : true ,
124
124
} ;
@@ -210,12 +210,11 @@ suite('Set Interpreter Command', () => {
210
210
const multiStepInput = TypeMoq . Mock . ofType < IMultiStepInput < InterpreterStateArgs > > ( ) ;
211
211
const recommended = cloneDeep ( item ) ;
212
212
recommended . label = `${ Octicons . Star } ${ item . label } ` ;
213
- recommended . description = `${ interpreterPath } - ${ Common . recommended ( ) } ` ;
214
- const separator = { label : EnvGroups . Conda , kind : QuickPickItemKind . Separator } ;
213
+ recommended . description = interpreterPath ;
215
214
const suggestions = [
216
215
expectedEnterInterpreterPathSuggestion ,
217
216
defaultInterpreterPathSuggestion ,
218
- separator ,
217
+ { kind : QuickPickItemKind . Separator , label : EnvGroups . Recommended } ,
219
218
recommended ,
220
219
] ;
221
220
const expectedParameters : IQuickPickParameters < QuickPickItem > = {
@@ -305,18 +304,20 @@ suite('Set Interpreter Command', () => {
305
304
. returns ( ( ) => item ) ;
306
305
const recommended = cloneDeep ( item ) ;
307
306
recommended . label = `${ Octicons . Star } ${ item . label } ` ;
308
- recommended . description = ` ${ interpreterPath } - ${ Common . recommended ( ) } ` ;
307
+ recommended . description = interpreterPath ;
309
308
const suggestions = [
310
309
expectedEnterInterpreterPathSuggestion ,
311
310
defaultInterpreterPathSuggestion ,
311
+ { kind : QuickPickItemKind . Separator , label : EnvGroups . Recommended } ,
312
+ recommended ,
312
313
{ label : EnvGroups . Workspace , kind : QuickPickItemKind . Separator } ,
313
314
interpreterItems [ 0 ] ,
314
315
{ label : EnvGroups . VirtualEnvWrapper , kind : QuickPickItemKind . Separator } ,
315
316
interpreterItems [ 1 ] ,
316
317
interpreterItems [ 2 ] ,
317
318
{ label : EnvGroups . Conda , kind : QuickPickItemKind . Separator } ,
318
319
interpreterItems [ 3 ] ,
319
- recommended ,
320
+ item ,
320
321
{ label : EnvGroups . Global , kind : QuickPickItemKind . Separator } ,
321
322
interpreterItems [ 5 ] ,
322
323
] ;
@@ -392,12 +393,12 @@ suite('Set Interpreter Command', () => {
392
393
const multiStepInput = TypeMoq . Mock . ofType < IMultiStepInput < InterpreterStateArgs > > ( ) ;
393
394
const recommended = cloneDeep ( item ) ;
394
395
recommended . label = `${ Octicons . Star } ${ item . label } ` ;
395
- recommended . description = ` ${ interpreterPath } - ${ Common . recommended ( ) } ` ;
396
- const separator = { label : EnvGroups . Conda , kind : QuickPickItemKind . Separator } ;
396
+ recommended . description = interpreterPath ;
397
+ const separator = { label : EnvGroups . Recommended , kind : QuickPickItemKind . Separator } ;
397
398
398
399
const defaultPathSuggestion = {
399
400
label : `${ Octicons . Gear } ${ InterpreterQuickPickList . defaultInterpreterPath . label ( ) } ` ,
400
- detail : expandedDetail ,
401
+ description : expandedDetail ,
401
402
path : expandedPath ,
402
403
alwaysShow : true ,
403
404
} ;
0 commit comments