Releases: BaryshevRS/angular-auto-import
Releases · BaryshevRS/angular-auto-import
Release v2.4.0
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.tsdoes 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
Fixed
- Stale indexes after dependency updates: the extension now watches
package.jsonand lockfiles, then automatically re-indexesnode_moduleswhen 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
Fixed
- Control flow detection in production builds: Replaced
constructor.namechecks with duck typing for Angular template AST nodes, fixing broken@if/@for/@switchdiagnostics in minified builds - Diagnostics on startup: Re-run diagnostics on all open documents after
@angular/compilerfinishes loading
Changed
- Show Logs command: Simplified to directly open the Output Channel instead of showing a modal dialog
Release v2.1.0
Fixed
- Diagnostics Update: Fixed race condition where diagnostics for HTML files were not always updated when related TypeScript component files changed. Added proper
awaitto ensure diagnostics update completes before continuing.
Release v2.0.0
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.mdand added documentation for the new "Go to Definition" feature.
Release v1.17.0
Added
- Granular Completion Control: Separate settings for each Angular element type:
angular-auto-import.completion.pipes.enabled- Toggle pipe completionsangular-auto-import.completion.components.enabled- Toggle component completionsangular-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.enabledreplaced with three type-specific settings - Provider Registration: Completion provider always registers, filtering moved to internal logic
Release v1.16.0
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
Added
- Enhanced Diagnostics Mode: Introduced a new
quickfix-onlymode 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.enabledsetting has been replaced withdiagnostics.mode, which now supports three options:full(diagnostics with quick fixes),quickfix-only, anddisabled. - 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
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
Added
- Completion Control:
angular-auto-import.completion.enabledsetting to toggle auto-completion (default: true)
Improved
- Transitive Module Exports: Modules now include all transitive dependencies from re-exported module