Skip to content

Releases: BaryshevRS/angular-auto-import

Release v2.4.0

18 Jun 10:03

Choose a tag to compare

Fixed

  • Path alias imports: quick fixes now avoid importing an Angular library from its own barrel and use relative imports inside the same alias root
  • Barrel alias safety: directory aliases now fall back to relative imports when the barrel index.ts does not re-export the target module
  • Stale index cache entries: cached project files that were moved or deleted while the extension was not running are detected and trigger a full reindex instead of producing broken import paths
  • Cross-platform relative paths: relative import generation now uses the shared path helper for consistent Windows path separator handling

Improved

  • External library indexing memory usage: library AST source files are released after indexing to keep ts-morph memory growth bounded in large workspaces

Release v2.3.0

17 Jun 10:06

Choose a tag to compare

Fixed

  • Stale indexes after dependency updates: the extension now watches package.json and lockfiles, then automatically re-indexes node_modules when dependencies change
  • Outdated missing-import diagnostics: open documents refresh after the reindex completes, so stale warnings clear without a manual reindex

Release v2.2.0

14 Mar 15:43

Choose a tag to compare

Fixed

  • Control flow detection in production builds: Replaced constructor.name checks with duck typing for Angular template AST nodes, fixing broken @if/@for/@switch diagnostics in minified builds
  • Diagnostics on startup: Re-run diagnostics on all open documents after @angular/compiler finishes loading

Changed

  • Show Logs command: Simplified to directly open the Output Channel instead of showing a modal dialog

Release v2.1.0

01 Dec 08:22

Choose a tag to compare

Fixed

  • Diagnostics Update: Fixed race condition where diagnostics for HTML files were not always updated when related TypeScript component files changed. Added proper await to ensure diagnostics update completes before continuing.

Release v2.0.0

28 Oct 19:17

Choose a tag to compare

Added

  • Go to Definition: Added support for definition lookups for HTML and TypeScript files, allowing navigation to component/directive definitions even if they are not yet imported.
  • Enhanced Documentation: Updated README.md and added documentation for the new "Go to Definition" feature.

Release v1.17.0

27 Oct 18:37

Choose a tag to compare

Added

  • Granular Completion Control: Separate settings for each Angular element type:
    • angular-auto-import.completion.pipes.enabled - Toggle pipe completions
    • angular-auto-import.completion.components.enabled - Toggle component completions
    • angular-auto-import.completion.directives.enabled - Toggle directive completions
  • Multi-line Tag Support: Completion now works across multi-line tags (searches up to 50 lines backwards)
  • Smart Bracket Detection: Ignores > inside string literals (e.g., *ngIf="value > 5") to correctly detect tag boundaries

Improved

  • Completion Accuracy: Element type filtering now happens before result limiting for more relevant suggestions
  • Selector Classification: Enhanced logic to distinguish element selectors from attribute selectors
  • Context Detection: Better handling of complex selectors like button[mat-button] and :not() pseudo-classes

Changed

  • Breaking: angular-auto-import.completion.enabled replaced with three type-specific settings
  • Provider Registration: Completion provider always registers, filtering moved to internal logic

Release v1.16.0

26 Oct 18:37

Choose a tag to compare

Improved

  • Template Parsing: Enhanced template parser to handle syntactically incorrect HTML, improving error resilience.
  • Template Detection: Implemented AST-based detection for inline templates, significantly improving accuracy.

Changed

  • Activation Notification: Removed the extension activation message for a quieter user experience.

Release v1.15.0

18 Oct 20:51

Choose a tag to compare

Added

  • Enhanced Diagnostics Mode: Introduced a new quickfix-only mode that enables quick fixes for missing imports without displaying diagnostic underlines, giving users more control over editor feedback.
  • Debugging Tools: Added a "Generate Diagnostics Report" command for advanced troubleshooting.

Changed

  • Settings Refactor: The diagnostics.enabled setting has been replaced with diagnostics.mode, which now supports three options: full (diagnostics with quick fixes), quickfix-only, and disabled.
  • Command Naming: Renamed "Show Performance Metrics" to "Show Performance Metrics (Debug)" to better reflect its purpose.

Fixed

  • Error Resilience: Improved the stability of the quick fix provider by adding graceful error handling for indexer failures.

Release v1.14.0

14 Oct 20:24

Choose a tag to compare

Changed

  • Forms Directives Refactoring: Extracted forms directives configuration to separate module for better maintainability
  • Library Exclusion Logic: Implemented centralized exclusion logic for Angular core packages, compiler tools, and infrastructure libraries

Release v1.13.0

06 Oct 18:39

Choose a tag to compare

Added

  • Completion Control: angular-auto-import.completion.enabled setting to toggle auto-completion (default: true)

Improved

  • Transitive Module Exports: Modules now include all transitive dependencies from re-exported module