提交 d34d2037 编写于 作者: J Johannes Rieken

don't ignore first select event, https://github.com/microsoft/vscode/issues/101941

上级 1fbfe227
......@@ -190,14 +190,10 @@ export class GotoSymbolQuickAccessProvider extends AbstractGotoSymbolQuickAccess
updatePickerItems();
disposables.add(picker.onDidChangeValue(updatePickerItems));
let ignoreFirstActiveEvent = true;
disposables.add(picker.onDidChangeActive(() => {
const [entry] = picker.activeItems;
if (entry && entries[entry.index]) {
if (!ignoreFirstActiveEvent) {
entries[entry.index]?.preview();
}
ignoreFirstActiveEvent = false;
if (entry) {
entries[entry.index]?.preview();
}
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册