Problems with ChatVariablesService#attachContext
#229712
Open
Description
opened on Sep 25, 2024
There is couple of issues and code smell with attachContext
vscode/src/vs/workbench/contrib/chat/browser/chatVariables.ts
Lines 165 to 189 in f70bf17
- it checks for the
ChatLocation
- something that we have gotten past since a while - it uses the last focused widget which can very well be of another
ChatLocation
- it opens the chat panel (
showChatView
) if it finds no other widget - this is really awkward and bad
IMO instead the method should just be called with a target widget
Activity