Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Tesla auth workflow, Improve GitHub extension #1415

Merged
merged 5 commits into from
Mar 16, 2025

Conversation

Josh-XT
Copy link
Owner

@Josh-XT Josh-XT commented Mar 13, 2025

Working towards fixing the Tesla auth workflow and updating the GitHub extension. The code now has significantly improved handling for indentation-sensitive languages like Python and YAML.

Key improvements to the GitHub extension:

  1. Indentation Structure Detection

    • The new _is_indent_sensitive_content() method correctly identifies indentation-sensitive code patterns
    • The implementation checks for Python patterns (like function/class definitions) and YAML patterns
  2. Enhanced Pattern Matching

    • The _normalize_code() method now preserves indentation structure with the added indent_sensitive parameter
    • The code properly implements the indentation markers (using IL{level}: prefix) for better comparison
  3. Specialized Small Target Handling

    • The new _find_small_target_match() method is properly implemented
    • It correctly uses token-based matching for small code blocks, which is more reliable than general similarity
  4. Improved Aggressive Normalization

    • The updated _find_pattern_with_aggressive_normalization() method now properly handles indentation structure
    • It correctly implements different thresholds based on code type and fuzzy matching settings
  5. Smart Code Block Indentation

    • The enhanced _indent_code_block() method properly detects and preserves indentation styles
    • It correctly handles spaces vs. tabs and infers the proper spaces-per-level

This should significantly improve the file modification functionality in the "Fix GitHub Issue" command.

@Josh-XT Josh-XT changed the title Fix Tesla auth workflow Fix Tesla auth workflow, Improve GitHub extension Mar 16, 2025
@Josh-XT Josh-XT marked this pull request as ready for review March 16, 2025 09:08
@Josh-XT Josh-XT merged commit f5e3942 into main Mar 16, 2025
7 checks passed
@Josh-XT Josh-XT deleted the Fix-Tesla-auth-workflow branch March 16, 2025 09:09
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