Skip to content

Conversation

@yangbobo2021
Copy link
Contributor

Changes

  • Fix: Use textRange property for PsiElement offset access throughout the codebase
  • Fix: Update line number retrieval in UnitTestsCVProvider
  • Fix: Simplify URL handling with direct BrowserUtil.browse(url)
  • Fix: Replace PluginManagerCore with PluginManager for version retrieval
  • Refactor: Improve service initialization and ToolWindowStateListener
  • Chore: Bump version from 0.3.3 to 0.3.9
  • Chore: Update IDE compatibility (target 2022.3.3 and extend to build 243.*)

This PR addresses several issues with PsiElement offset access and improves overall IDE compatibility.

- Replace direct startOffset/endOffset with textRange.startOffset/endOffset
- Apply consistent approach for both element and element.parent
- Ensure proper line number calculation for unit test generation
- Replace direct startOffset/endOffset with textRange.startOffset/endOffset
- Fix range calculation in IDEUtils.kt
- Update all CV providers to use proper PsiElement text range access
- Replace PluginManagerCore with PluginManager for version retrieval
- Fix element range calculation using textRange property
- Make editor retrieval null-safe in TriggerCompletion action
- Replace BrowserUtil.browse(URL(url)) with BrowserUtil.browse(url)
- Use getService(Class) instead of service<T>() extension function
- Refactor ToolWindowStateListener to use standard conditional logic
- Update version from 0.3.3 to 0.3.9
- Change IntelliJ target version from 2023.2.5 to 2022.3.3
- Extend plugin compatibility to build 243.*
@yangbobo2021 yangbobo2021 requested a review from kagami-l March 12, 2025 14:24
@kagami-l kagami-l merged commit a082752 into main Mar 13, 2025
5 checks passed
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.

3 participants