@@ -168,16 +168,24 @@ export class Picker<T extends Detail> implements AsyncDisposable {
168168 }
169169
170170 #getExtensionIndicator( ) : string {
171- const { matcherIndex } = this . #matchProcessor;
172- const { sorterIndex } = this . #sortProcessor;
173- const { rendererIndex } = this . #renderProcessor;
174- const { previewerIndex } = this . #previewProcessor ?? { } ;
175- const matcherIndicator = `${ this . #matcherIcon} ${ matcherIndex + 1 } ` ;
176- const sorterIndicator = `${ this . #sorterIcon} ${ sorterIndex + 1 } ` ;
177- const rendererIndicator = `${ this . #rendererIcon} ${ rendererIndex + 1 } ` ;
178- const previewerIndicator = previewerIndex !== undefined
179- ? `${ this . #previewerIcon} ${ previewerIndex + 1 } `
171+ const { matcherIndex, matcherCount } = this . #matchProcessor;
172+ const { sorterIndex, sorterCount } = this . #sortProcessor;
173+ const { rendererIndex, rendererCount } = this . #renderProcessor;
174+ const { previewerIndex, previewerCount } = this . #previewProcessor ?? { } ;
175+ const matcherIndicator = matcherCount > 1
176+ ? `${ this . #matcherIcon} ${ matcherIndex + 1 } `
180177 : "" ;
178+ const sorterIndicator = sorterCount > 1
179+ ? `${ this . #sorterIcon} ${ sorterIndex + 1 } `
180+ : "" ;
181+ const rendererIndicator = rendererCount > 1
182+ ? `${ this . #rendererIcon} ${ rendererIndex + 1 } `
183+ : "" ;
184+ const previewerIndicator =
185+ previewerIndex !== undefined && previewerCount !== undefined &&
186+ previewerCount > 1
187+ ? `${ this . #previewerIcon} ${ previewerIndex + 1 } `
188+ : "" ;
181189 return `${ matcherIndicator } ${ sorterIndicator } ${ rendererIndicator } ${ previewerIndicator } ` ;
182190 }
183191
0 commit comments