Context awareness
Description
Opencode vscode extension page says that it features context awareness, but when I select lines from vscode and ask about them inside agent I see that agent does not "know" what is selected. Does it really support this feature? If it does how it should be used? Maybe needs some documentation updates
OpenCode version
0.15.18
Steps to reproduce
- Open vscode
- Install opencode extension
- Open opencode from the shortcut inside the ide
- Open any file and select some text
- Try to refer to it inside opencode prompt
Screenshot and/or share link
No response
Operating System
macOS 26.0.1
Terminal
VSCode terminal
This issue might be a duplicate of existing issues. Please check:
- #3393: vscode extension: Some extension keyboard shortcuts don't work (windows) - This issue also relates to VSCode extension functionality not working as expected, though it focuses on keyboard shortcuts rather than context awareness
Feel free to ignore if none of these address your specific case about context awareness and text selection.
Ah I think you need to do cmd + option + k to send the selected text to the prompt box
Can we make it automatic (explicit opt-in through settings maybe)? How about sending current open file(s)?
All popular agents (except zed) already do this by default without any config
Yeah that should be fine, @fwang may have an opinion on it he was the one who built it
Ah I think you need to do
cmd + option + kto send the selected text to the prompt box
This only works if I select and open opencode, if opencode is already open and I press these keybindings nothing happens really
Is this supposed to work, or is it just that the documentation is wrong?
Context Awareness: Automatically share your current selection or tab with OpenCode.
I think there is a case it isn't working we will fix
I wasn't following the repo lately, any updates on this?
Vscode extension hasn't gotten enough love lately, but someone is workign on some updates
Is it possible to also have this cmd+shift+k command to send the filepath to opencode opened in an external terminal? Like claude does
Vscode extension hasn't gotten enough love lately, but someone is workign on some updates
@rekram1-node Could you share when this issue is expected to be resolved?
I can see there is a beta version of the extension with a different package name, tried it but did not notice anything new
Folks, this is a real blocker, any updates on this or even any plans?
There are plans to make it better still a WIP but it's going to be pretty overhauled