Skip to content

feat: jump from ref to label position#344

Open
iamhyc wants to merge 1 commit intomasterfrom
261-feature-request-jump-from-ref-to-label
Open

feat: jump from ref to label position#344
iamhyc wants to merge 1 commit intomasterfrom
261-feature-request-jump-from-ref-to-label

Conversation

@iamhyc
Copy link
Copy Markdown
Member

@iamhyc iamhyc commented Mar 13, 2026

closes #261

Copilot AI review requested due to automatic review settings March 13, 2026 13:57
@iamhyc iamhyc linked an issue Mar 13, 2026 that may be closed by this pull request
2 tasks
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds “Go to Definition” support for LaTeX references so users can Ctrl/Cmd+click \ref{...} and jump to the corresponding \label{...} within an Overleaf-Workshop project (closes #261).

Changes:

  • Extend ReferenceCompletionProvider to also act as a vscode.DefinitionProvider.
  • Parse the reference under the cursor and resolve its target \label{...} by searching open editors first, then project .tex files.
  • Register a definition provider for **/*.{tex,txt} under the Overleaf workspace scheme.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@iamhyc iamhyc force-pushed the 261-feature-request-jump-from-ref-to-label branch from fa78e64 to e6095c8 Compare March 13, 2026 15:29
@iamhyc iamhyc requested review from QianrenLi and zeyugao March 18, 2026 13:28
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.

[Feature Request] Jump from \ref{...} to \label{...}

2 participants