Skip to content

fix: restore password support when new connections are created using a "connection string" feature.#247

Merged
tnaum-ms merged 1 commit into
nextfrom
dev/tnaum/connection-string-password-fix
Sep 8, 2025
Merged

fix: restore password support when new connections are created using a "connection string" feature.#247
tnaum-ms merged 1 commit into
nextfrom
dev/tnaum/connection-string-password-fix

Conversation

@tnaum-ms
Copy link
Copy Markdown
Collaborator

@tnaum-ms tnaum-ms commented Sep 5, 2025

This pull request improves the user experience and validation logic when entering a username during the new connection workflow. The main changes ensure that users cannot proceed with an empty username and that appropriate error messages are displayed.

Validation and user feedback improvements:

  • Added an asynchronous validation task in PromptUsernameStep to prevent empty usernames and display a localized error message if the username is empty.
  • Added the "Username cannot be empty" string to the localization bundle for proper error messaging.

Connection string handling:

  • Updated PromptPasswordStep to ensure the username is always set (to an empty string if not provided) when constructing the connection string.…a connection string

@tnaum-ms tnaum-ms added this to the 0.4.0 "August 2025" milestone Sep 5, 2025
Copilot AI review requested due to automatic review settings September 5, 2025 14:49
@tnaum-ms tnaum-ms added the bug Something isn't working label Sep 5, 2025
@tnaum-ms tnaum-ms requested a review from a team as a code owner September 5, 2025 14:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes password support when creating new connections using connection strings by improving username validation and connection string construction. The changes ensure users must provide a valid username and that the username is properly set in the connection string even when initially empty.

Key Changes

  • Added asynchronous validation to prevent empty usernames with localized error messages
  • Fixed connection string construction to always set the username field (even if empty)
  • Added localization support for the new validation error message

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/commands/newConnection/PromptUsernameStep.ts Added async validation to prevent empty usernames
src/commands/newConnection/PromptPasswordStep.ts Ensures username is always set when constructing connection string
l10n/bundle.l10n.json Added localization entry for username validation error

Comment thread src/commands/newConnection/PromptUsernameStep.ts
@tnaum-ms tnaum-ms merged commit 35388cd into next Sep 8, 2025
8 checks passed
@tnaum-ms tnaum-ms deleted the dev/tnaum/connection-string-password-fix branch September 8, 2025 07:37
@tnaum-ms tnaum-ms self-assigned this Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Development

Successfully merging this pull request may close these issues.

3 participants