You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Manual localhost connection creation does not detect existing DocumentDB Local entries #858
When a user manually adds a localhost connection, the extension does not check whether it already has a matching DocumentDB Local connection. This allows duplicate entries for the same local service.
Steps to reproduce
Start DocumentDB Local through Local Quick Start so its connection is present in the Connections view.
Manually add a connection that targets the same localhost endpoint.
Complete the connection flow.
Expected
The extension detects the matching DocumentDB Local entry and prevents the duplicate, focuses the existing connection, or clearly asks the user whether to retain a separate configuration.
Actual
A second connection can be added for the same local endpoint.
Impact
Duplicate local connections make the Connections view harder to understand and can lead users to manage the wrong entry.
Suggested fix
Before saving a manually added localhost connection, compare its normalized endpoint with existing DocumentDB Local entries. Account for equivalent host forms such as localhost, 127.0.0.1, and IPv6 loopback where applicable, along with the port and relevant connection options.
Additional bug-bash context: checked all issues created on 2026-08-04 and searched existing localhost connection reports. No matching duplicate-detection issue was found. The intended comparison should normalize loopback host aliases and retain enough connection settings to avoid collapsing genuinely different configurations.
A user might really want to have another connection saved for the 'localhost' connection, so we should allow it. We should have a modal dialog that explains what's happening, and offer actions:
Fixed by #866, merged into feature/local-quickstart as 2803a38: adding a localhost connection by hand now detects the managed instance and offers Open Existing / Add Anyway / cancel, with normalized loopback host comparison.
Closing by hand rather than automatically: #866 targeted feature/local-quickstart, not the default branch, so GitHub ignores closing keywords and creates no link. Ships with 0.10.0.
Activity
tnaum-ms commentedon Aug 4, 2026
Additional bug-bash context: checked all issues created on 2026-08-04 and searched existing localhost connection reports. No matching duplicate-detection issue was found. The intended comparison should normalize loopback host aliases and retain enough connection settings to avoid collapsing genuinely different configurations.
tnaum-ms commentedon Aug 5, 2026
A user might really want to have another connection saved for the 'localhost' connection, so we should allow it. We should have a modal dialog that explains what's happening, and offer actions:
Fix the Local Quick Start bug-bash issues (#851, #852, #854, #855, #856…
fix(local-quickstart): detect DocumentDB Local when a localhost conne…
test(local-quickstart): pin the manifest-level bug-bash fixes in Jest
fix(local-quickstart): make Open Connection actually open the connection
Fix the Local Quick Start bug-bash issues (#851, #852, #855, #856, #857…
tnaum-ms commentedon Aug 6, 2026
Fixed by #866, merged into
feature/local-quickstartas 2803a38: adding a localhost connection by hand now detects the managed instance and offers Open Existing / Add Anyway / cancel, with normalized loopback host comparison.Closing by hand rather than automatically: #866 targeted
feature/local-quickstart, not the default branch, so GitHub ignores closing keywords and creates no link. Ships with 0.10.0.