Skip to content

fix(definition): implement on demand parsing for accurate first click definition jump#16

Merged
ntoulasm merged 3 commits into
mainfrom
fix/implement-on-demand-parsing-for-accurate-first-click-definition-jump
Mar 4, 2026
Merged

fix(definition): implement on demand parsing for accurate first click definition jump#16
ntoulasm merged 3 commits into
mainfrom
fix/implement-on-demand-parsing-for-accurate-first-click-definition-jump

Conversation

@ntoulasm

@ntoulasm ntoulasm commented Mar 4, 2026

Copy link
Copy Markdown
Owner

Summary

This PR resolves an issue where jumping to a definition in a previously unopened file would default to the top of the document. By extracting the symbol extraction logic into a reusable utility, the server now performs "Just-In-Time" parsing of the files in workspace.

Key Changes

  1. Updated the definition provider (definition.ts) to check for the existence of the target file in the symbol table and parses it from disk if missing.
  2. Moved the symbol extraction logic from server.ts to utils.ts to reuse it in the definition provider.
  3. Fixed "Attach to server" configuration (launch.json) outFiles to also match /out/providers as previous refactoring broke the debugger.

@ntoulasm ntoulasm self-assigned this Mar 4, 2026
previously the `extractSymbols` was returning only symbols which broke diagnostics
@ntoulasm ntoulasm merged commit 54a0d09 into main Mar 4, 2026
2 checks passed
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.

1 participant