Skip to content

v1.2.0 - Complete Diagnostic and Parser Fixes

Choose a tag to compare

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

πŸš€ Major Business Logic Fixes

Fixed Core Parsing Issues

  • βœ… Correct view.tree parsing: Only tabs for indentation, proper property detection
  • βœ… Fixed getCurrentComponent: Now correctly finds nested components by cursor position
  • βœ… Enhanced component tracking: Properties correctly assigned to their respective components
  • βœ… Improved project scanning: Components properly added to project on file open

Fixed Diagnostic Issues

  • βœ… No more false 'Component not found': Components defined in same document are recognized
  • βœ… No more false 'Duplicate property': Properties in different components no longer flagged as duplicates
  • βœ… Fixed operator validation: <= and <=> operators correctly distinguished
  • βœ… Removed built-in filtering: All components now shown in autocomplete (user requested)

Parser Logic Improvements

  • βœ… Nested component support: Parser correctly handles component hierarchy
  • βœ… Binding operator detection: Proper parsing of <=, <=>, and => operators
  • βœ… Property scope resolution: Properties correctly associated with their containing components
  • βœ… Tab-only indentation: Enforces view.tree standard (tabs only, no spaces)

Completion & Navigation

  • βœ… All project components: Shows ALL components found in project (no filtering)
  • βœ… Better context detection: Improved logic for component_name, property_name, etc.
  • βœ… Enhanced definition resolution: Correct file path resolution (.tree β†’ .ts/.css.ts)

πŸ”§ Implementation Details

  • Updated parseViewTreeFile to follow review recommendations
  • Fixed component stack tracking for nested components
  • Improved handleDidOpen to update project scanner before validation
  • Enhanced property-to-component relationship mapping
  • Streamlined binding validation regex patterns

πŸ“‹ Testing

  • All existing tests pass
  • Added tests for nested component parsing
  • Enhanced component validation tests
  • Verified on real project files

This release addresses all major diagnostic false positives and parsing issues reported in the review.