Skip to content

Commit 500b101

Browse files
cheapredwineJason Sherron
andauthored
fix(vscode): emit V2 mention syntax (@path#37-42) instead of V1 #L prefix (#60737)
Co-authored-by: Jason Sherron <[email protected]>
1 parent 4228763 commit 500b101

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎sdks/vscode/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This extension requires the [opencode CLI](https://opencode.ai) to be installed
1111
- **Quick Launch**: Use `Cmd+Esc` (Mac) or `Ctrl+Esc` (Windows/Linux) to open opencode in a split terminal view, or focus an existing terminal session if one is already running.
1212
- **New Session**: Use `Cmd+Shift+Esc` (Mac) or `Ctrl+Shift+Esc` (Windows/Linux) to start a new opencode terminal session, even if one is already open. You can also click the opencode button in the UI.
1313
- **Context Awareness**: Automatically share your current selection or tab with opencode.
14-
- **File Reference Shortcuts**: Use `Cmd+Option+K` (Mac) or `Alt+Ctrl+K` (Linux/Windows) to insert file references. For example, `@File#L37-42`.
14+
- **File Reference Shortcuts**: Use `Cmd+Option+K` (Mac) or `Alt+Ctrl+K` (Linux/Windows) to insert file references. For example, `@File#37-42`.
1515

1616
## Support
1717

‎sdks/vscode/src/extension.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ export function activate(context: vscode.ExtensionContext) {
8686

8787
if (startLine === endLine) {
8888
// Single line selection
89-
filepathWithAt += `#L${startLine}`
89+
filepathWithAt += `#${startLine}`
9090
} else {
9191
// Multi-line selection
92-
filepathWithAt += `#L${startLine}-${endLine}`
92+
filepathWithAt += `#${startLine}-${endLine}`
9393
}
9494
}
9595

0 commit comments

Comments
 (0)