Skip to content

Prevent Opening Generated SQL Files During Conversion #392

@xterao

Description

@xterao

When generating an SQL file from a @SQL annotation via an intention action, the newly created SQL file will no longer be automatically opened.

  • For conversions from annotations to SQL files, the generated SQL file is created but kept closed.

  • For conversions from SQL files to annotations, the SQL file is deleted as before, but the jump to the corresponding DAO method remains in place.

This ensures a smoother workflow by avoiding unnecessary file opening during conversions.
https://github.com/domaframework/doma-tools-for-intellij/blob/main/src/main/kotlin/org/domaframework/doma/intellij/common/psi/PsiDaoMethod.kt#L205

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions