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

Fix/no results in gitservice #540

Merged
merged 8 commits into from
Jun 20, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to the "watermelon" extension will be documented in this fil

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [2.1.1]

- Fixed no results error in git Service

## [2.1.0]

- New Rich hover speeds up fetching
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "watermelon-tools",
"description": "Watermelon, your AI code archaelogy toolbox",
"version": "2.0.10",
"version": "2.1.0",
"publisher": "WatermelonTools",
"displayName": "Watermelon",
"private": true,
Expand Down
20 changes: 20 additions & 0 deletions src/utils/treeview/getHubLabBucketItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,26 @@ export const getHubLabBucketItems = async (
if (errorText) {
// show vs code alert
vscode.window.showErrorMessage(errorText);
if (errorText === "No search results") {
return items.push(
new ContextItem(
reposource === "gitlab.com"
? "GitLab"
: reposource === "bitbucket.com"
? "Bitbucket"
: "GitHub",
vscode.TreeItemCollapsibleState.None,
`No ${reposource === "gitlab.com" ? "M" : "P"}Rs found`,
undefined,
undefined,
reposource === "gitlab.com"
? "gitLab"
: reposource === "bitbucket.com"
? "bitbucket"
: "gitHub"
)
);
}
items.push(
new ContextItem(
`Please login to ${
Expand Down
Loading