Skip to content

fix(connection): disconnect all connections on VS shutdown #334

@CalvinAllen

Description

@CalvinAllen

Problem

When Visual Studio closes, active Couchbase connections are not properly disposed. The Package.Dispose() method only disposes the editor factory, leaving cluster connections orphaned.

Solution

Add a DisconnectAll() method to CouchbaseService and call it from Package.Dispose() to properly clean up all active connections on shutdown.

Acceptance Criteria

  • Add CouchbaseService.DisconnectAll() method
  • Call DisconnectAll() from CouchbaseExplorerPackage.Dispose()
  • All ICluster instances properly disposed on VS exit
  • No orphaned network connections

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:connectionConnection management featuresbugSomething isn't workingpriority:mustEssential for MVP - extension is not viable without this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions