Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/theme/src/browser/theme.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export class ThemeContribution implements MenuContribution, CommandContribution,
const themeId = await this.showPickWithPreview(
items,
{
selectIndex: () => defaultSelected,
selectIndex: (lookFor) => (lookFor ? -1 : defaultSelected), // 默认展示当前主题,如果有输入,则选择第一个,否则 selectIndex 一直不变导致显示有问题
placeholder: localize('theme.quickopen.plh'),
},
(value) => {
Expand Down Expand Up @@ -353,7 +353,7 @@ export class ThemeContribution implements MenuContribution, CommandContribution,
const themeId = await this.showPickWithPreview(
items,
{
selectIndex: () => defaultSelected,
selectIndex: (lookFor) => (lookFor ? -1 : defaultSelected),
placeholder: localize('icon.quickopen.plh'),
},
(value) => {
Expand Down