microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
161.77k stars 28.44k forks source link

[Bug] Can't search chats in quick open #209061

Open wenfangdu opened 5 months ago

wenfangdu commented 5 months ago

I have a chat open: image But it can't be found after typing the keywords: image

tcostew commented 4 months ago

Can I be assigned to this?

wenfangdu commented 4 months ago

@tcostew Thanks for dropping by, you can start a PR without being assigned.

bpasero commented 4 months ago

This is intentional, though arguable not very intuitive, if you want to strictly search through editors, there are pickers that only list editors.

wenfangdu commented 4 months ago

@bpasero Why intentional? With multiple chats open and tons of editors mixed in, it's very hard to pick the wanted chat.

bpasero commented 4 months ago

The standard file picker shows recently opened editors at the top when you do not search. This is already a bit inconsistent in that we include non-file editors here as well (for example chats or terminals). That is historic because we wanted to allow a user to quickly open a previous editor without searching. But the intent of the picker is to provide file search once you start typing, as you can see from the description:

image

As such, we exclude results from the list that are not file based (such as chat, terminal).

The edt <search> picker is meant for searching through all opened editors:

image

wenfangdu commented 4 months ago

@bpasero Thanks for the history recap, but I think if you remove the constraints i.e. terminal and chat editors can be searched through typing, it does no harm, right? Since it's an extension not a regression.

bpasero commented 4 months ago

Yeah, I think I am not opposed to changing this but then we should include everything from recently opened and drop the check for files.

wenfangdu commented 4 months ago

@bpasero Yes, please do so, is there an estimated date for this change? search.exclude should still apply though.