-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/help inline chat link doesn't work #598
Comments
@roblourens The |
@joyceerhl It doesn't seem helpful to open an untitled editor with the inline chat widget, should we have this just list the keyboard shortcut or tell users to click the sparkle button? |
This message only appears when the user has an active editor at the time that the chat welcome message is rendered, but of course it doesn't rerender when the active editor changes. I think we could go with listing the keyboard shortcut |
Oh, actually, this text is still owned by Copilot Chat, and I don't think we should hardcode the keybinding. We don't yet allow extensions to look up the keybinding for a command, though there have been several issues filed about this microsoft/vscode#162433, microsoft/vscode#196835. I actually have a RemoteHub use case for being able to lookup keybindings microsoft/vscode-remote-repositories-github#366, I'll start an API proposal for that and remove the command link from the |
All the sparkle buttons are disabled by default for upcoming stable so the help text can't refer to them |
Shouldn't the markdown renderer simple insert keybindings? The MD refer to a command and all it takes is a lookup for the keybinding in the renderer. IMO no need for special API |
Do you mean to e.g. support the |
Apparently GitHub uses |
Filed upstream microsoft/vscode#199802 |
I think he's saying that vscode/ChatListRenderer should be responsible for seeing that we rendered a command link, looking up the keybinding, and doing something to render it, like adding it to the tooltip. Or it could do something smart like append it into the link text like kbd rendering is supported by our markdown renderer, the markdown preview uses it, but all the fancy stuff is disabled in chat. |
Hm, I don't know if injecting that everywhere is going to lead to weird/unexpected behavior. I was thinking of supporting |
That would be cool, but in chat in particular I want to keep command links very very limited so it wouldn't cause an issue if the renderer just did it automatically. |
I got pretty far with supporting |
Yeah, I was thinking about the tooltip and not much more. @joyceerhl What are you planning, not sure I can follow. Also, lets keep in mind that |
We'll inject the keybinding in parentheses after the command link text now if a keybinding exists (in insiders after we release stable). The welcome message doesn't include the inline chat command link if there is no active editor, but the welcome message is only computed once and then restored from serialized state, so most of the time it is stale. Maybe we should update it when the active editor changes and/or always call the api for the latest data? |
Inline chat isn't started in the open editor. Command ID
inlineChat.start
looks correctWorks with VS Code 1.84.2 and Copilot Chat stable
The text was updated successfully, but these errors were encountered: