Skip to content

Conversation

@vijayupadya
Copy link
Contributor

When chat response mentions a file with a line hint, for example:

utils/logger.ts (line 42)
in lines 10–12 of server.py
config.json, lines 5 through 9
at line 7 in README.md

this change now upgrades that file reference so clicking it opens the file directly at the specified line (first line of a range for now). This works whether the line annotation appears after the filename or before it.

image

@vijayupadya vijayupadya added this to the November 2025 milestone Nov 3, 2025
Copy link
Contributor

@mjbvz mjbvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should re-evaluate if we can get models to generate proper links that we can easily parse. Earlier models were not great at this and we still likely need to be a little pragmatic, but I'm really not a fan of extending the link handler to try parsing sentences like this


async linkify(text: string, context: LinkifierContext, token: CancellationToken): Promise<LinkifiedText> {
const parts: Array<Promise<LinkifiedPart> | LinkifiedPart> = [];
const parts: LinkifiedPart[] = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have an array of promises because we want to resolve all the links in parallel instead of sequentially. I'd prefer keeping it like that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants