Skip to content

New connection appeared after restarting the database resource #431

@rafaelldi

Description

@rafaelldi

What happened?

If you restart the database resource from the dashboard, the new database connection will appear. It happens because Aspire starts the database container with a new random port (e.g.127.0.0.1:52442:5432/tcp) and the plugin detects the new connection string.

Image

Steps to reproduce

Expected behavior

JetBrains Rider version

2025.2 EAP 7

.NET Aspire plugin version

1.8.5

.NET Aspire version

9.3.1

.NET version

9.0

Operating System

Windows

Link to a test project to reproduce the bug

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions