Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to re-enter username and password #6057

Merged
merged 1 commit into from
Jun 13, 2023
Merged

Conversation

thurka
Copy link
Contributor

@thurka thurka commented Jun 9, 2023

In context of LSP, when DB connection has incorrect username password, the user does not have a way to correct it. This PR tries to fix this problem and allows user to fill in new username and password, when connection fails. The same functionality was already available in netbeans, but VSCode integration (via LSP) just displayed the error dialog with exception and that's it. The LSP implenetation uses already established headless variable to distinguish GUI and LSP part. Common functionality of getting username/password was extracted to Credentials abstract class, with two implementations. One for LSP (CredetialsLine), which uses NotifyDescriptor.ComposedInput and the second one (CredetialsUI) for Swing UI.

@thurka thurka added LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests labels Jun 9, 2023
@thurka thurka requested review from jhorvath and sdedic June 9, 2023 07:12
@thurka thurka self-assigned this Jun 9, 2023
Copy link
Contributor

@jhorvath jhorvath left a comment

Choose a reason for hiding this comment

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

Looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants