Skip to content

v1.3.0 - Enhanced Hover Information

Choose a tag to compare

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

πŸš€ Major Hover Improvements

Fixed Hover Detection

  • βœ… Correct node type detection: Fixed getNodeType in hover provider to match definition provider
  • βœ… Component vs Property: Components with $ now properly show component information
  • βœ… Consistent behavior: Hover and go-to-definition now use identical node detection logic

Enhanced Component Hover

  • βœ… Framework detection: Shows MOL Framework indicator for $mol_ components
  • βœ… External components: Shows expected file paths for external components not in project
  • βœ… Project components: Shows file location, properties list, and usage examples
  • βœ… Inheritance info: Better component classification and framework identification

Enhanced Property Hover

  • βœ… Binding information: Shows binding types (<=, <=>, =>, ^)
  • βœ… Bound values: Displays what property is bound to
  • βœ… Current values: Shows direct value assignments
  • βœ… Common descriptions: Built-in descriptions for standard properties (title, hint, value, etc.)
  • βœ… Usage examples: Context-aware examples for different property types

Rich Information Display

  • Component hover: Framework, file path, properties list, usage examples
  • Property hover: Binding type, bound property, value, description, usage
  • Context awareness: Shows information based on current component context
  • Markdown formatting: Rich formatting with code blocks and proper styling

Technical Improvements

  • Synchronized getNodeType logic between hover and definition providers
  • Added PropertyContext structure for better property analysis
  • Enhanced regex patterns for binding detection
  • Comprehensive test coverage for hover functionality

Example Hover Content

Component hover:

Property hover:

This release makes hover information much more useful and informative for development.