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

Show Databases and Projects views only after NBLS extension activates. #3371

Merged
merged 1 commit into from Dec 16, 2021

Conversation

sdedic
Copy link
Member

@sdedic sdedic commented Dec 14, 2021

When vscode starts with a folder that do not contains any nice files like .java or .groovy, the Apache NBLS extension does not activate at all ! Still the UI shows Projects and Databases views, but empty - as the relevant TreeDataProviders are not registered yet.
This PR will just make appearance of those views depend on NBLS extension to become ready (it sets up a context variable).

@sdedic sdedic added kind:bug Bug report or fix VSCode Extension [ci] enable VSCode Extension tests labels Dec 14, 2021
@sdedic sdedic added this to the NB13 milestone Dec 14, 2021
@sdedic sdedic requested a review from dbalek December 14, 2021 15:18
@sdedic sdedic self-assigned this Dec 14, 2021
@sdedic sdedic added do not merge Don't merge this PR, it is not ready or just demonstration purposes. and removed do not merge Don't merge this PR, it is not ready or just demonstration purposes. labels Dec 14, 2021
},
{
"id": "database.connections",
"name": "Databases"
"name": "Databases",
"when": "nbJavaLSReady"
Copy link
Contributor

Choose a reason for hiding this comment

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

That's horrible token name!

Copy link
Contributor

@dbalek dbalek left a comment

Choose a reason for hiding this comment

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

Fine.

@sdedic
Copy link
Member Author

sdedic commented Dec 16, 2021

Failed in java and random-failure test, vscode ext build is clear; merging.

@sdedic sdedic merged commit de3c190 into apache:master Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug report or fix VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants