Skip to content

v1.2.1 - Go to Definition Fix

Choose a tag to compare

@Dev-cmyser Dev-cmyser released this 06 Jun 05:59
· 9 commits to main since this release

πŸš€ Go to Definition Fix

Fixed Navigation Issues

  • βœ… Workspace root detection: Now properly extracts workspace root from LSP initialize parameters
  • βœ… Correct file path resolution: Fixed path building for go to definition functionality
  • βœ… Improved URI handling: Better file:// URI generation for LSP clients
  • βœ… Parameter extraction: Proper handling of RootURI, RootPath, and WorkspaceFolders from LSP client

Technical Details

  • Added workspace root storage in Server struct
  • Enhanced handleInitialize to extract workspace info from LSP params
  • Fixed pointer handling for nullable LSP parameters
  • Improved project file discovery accuracy

LSP Protocol Compliance

  • Better adherence to LSP specification for workspace initialization
  • Proper workspace root extraction from multiple possible sources
  • Enhanced compatibility with different LSP clients

This release ensures that 'Go to Definition' correctly navigates to component files based on the FQN (Fully Qualified Names) convention used in the mol framework.