@@ -133,8 +133,12 @@ describe('SwitchTimelineTheme', () => {
133133 await command . run ( { } as never ) ;
134134
135135 const items = mockQuickPick . items ;
136- expect ( items . some ( ( i ) => i . label === 'My Custom Theme' ) ) . toBe ( true ) ;
137- expect ( items . some ( ( i ) => i . label === 'Another Theme' ) ) . toBe ( true ) ;
136+ const myCustom = items . find ( ( i ) => i . label === 'My Custom Theme' ) ;
137+ const another = items . find ( ( i ) => i . label === 'Another Theme' ) ;
138+ expect ( myCustom ) . toBeDefined ( ) ;
139+ expect ( myCustom ?. description ) . toBe ( 'custom' ) ;
140+ expect ( another ) . toBeDefined ( ) ;
141+ expect ( another ?. description ) . toBe ( 'custom' ) ;
138142 } ) ;
139143
140144 it ( 'should sort themes alphabetically' , async ( ) => {
@@ -172,6 +176,18 @@ describe('SwitchTimelineTheme', () => {
172176 expect ( defaultItem ?. description ) . toBe ( 'default' ) ;
173177 } ) ;
174178
179+ it ( 'should not mark non-default built-in themes as custom' , async ( ) => {
180+ const mockContext = createMockContext ( ) ;
181+ const command = SwitchTimelineTheme . getCommand (
182+ mockContext as unknown as import ( '../../Context.js' ) . Context ,
183+ ) ;
184+
185+ await command . run ( { } as never ) ;
186+
187+ const draculaItem = mockQuickPick . items . find ( ( i ) => i . label === 'Dracula' ) ;
188+ expect ( draculaItem ?. description ) . toBe ( '' ) ;
189+ } ) ;
190+
175191 it ( 'should deduplicate themes when custom theme has same name as preset' , async ( ) => {
176192 mockGetConfig . mockReturnValue ( {
177193 timeline : {
0 commit comments