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

#203 Added explanation to empty dashboard #316

Merged
merged 8 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@
}
]
},
"viewsWelcome": [
{
"view": "liberty-dev",
"contents": "%views.welcome.message%"
}
],
"commands": [
{
"command": "liberty.dev.show.commands",
Expand Down
3 changes: 2 additions & 1 deletion package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"commands.title.view.test.report": "View test report",
"commands.title.add.project": "Add project to Liberty Dashboard",
"commands.title.remove.project": "Remove project from Liberty Dashboard",
"commands.title.show.commands": "Show Liberty commands"
"commands.title.show.commands": "Show Liberty commands",
"views.welcome.message":" \n 1. If no projects are open in the VS Code Explorer, open or create a Liberty project using the File menu. \n 2. If there is one or more existing Maven or Gradle projects open in the VS Code Explorer, try one of the following: \n -Configure the Liberty build plugin in the build file of an existing Maven or Gradle project.\n - Add a server.xml file to an existing Maven or Gradle project at “src/main/liberty/config”.\n - Manually add an existing Maven or Gradle project to the Liberty Dashboard through the VS Code command palette action “Liberty: Add project to Liberty Dashboard”. "
TrevCraw marked this conversation as resolved.
Show resolved Hide resolved
}
4 changes: 4 additions & 0 deletions src/liberty/libertyProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ export class ProjectProvider implements vscode.TreeDataProvider<LibertyProject>

// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async getChildren(element?: LibertyProject): Promise<LibertyProject[]> {

if (this.projects.size <= 0) {
return Promise.resolve([]);
}
TrevCraw marked this conversation as resolved.
Show resolved Hide resolved
if (vscode.workspace.workspaceFolders === undefined) {
vscode.window.showInformationMessage(localize("no.liberty.project.found.in.empty.workspace"));
return [];
Expand Down