From a507615cb0a620a903a09e0858d1edc5fd5e7f34 Mon Sep 17 00:00:00 2001 From: Keith Daulton Date: Wed, 8 Nov 2023 17:33:05 -0500 Subject: [PATCH] Adds links to cloud patches --- package.json | 9 +++++++++ src/commands/showView.ts | 3 +++ src/constants.ts | 1 + src/webviews/apps/home/home.html | 15 +++++++++++++++ src/webviews/apps/welcome/welcome.html | 14 ++++++++++++++ 5 files changed, 42 insertions(+) diff --git a/package.json b/package.json index 441d45b..8d8b7f6 100644 --- a/package.json +++ b/package.json @@ -5094,6 +5094,11 @@ "category": "GitLens" }, { + "command": "gitlens.showDraftsView", + "title": "Show Cloud Patches View", + "category": "GitLens" + }, + { "command": "gitlens.showFileHistoryView", "title": "Show File History View", "category": "GitLens" @@ -8598,6 +8603,10 @@ "when": "gitlens:enabled" }, { + "command": "gitlens.showDraftsView", + "when": "gitlens:enabled" + }, + { "command": "gitlens.showFileHistoryView", "when": "gitlens:enabled" }, diff --git a/src/commands/showView.ts b/src/commands/showView.ts index af4f4f9..be20a62 100644 --- a/src/commands/showView.ts +++ b/src/commands/showView.ts @@ -13,6 +13,7 @@ export class ShowViewCommand extends Command { Commands.ShowCommitDetailsView, Commands.ShowCommitsView, Commands.ShowContributorsView, + Commands.ShowDraftsView, Commands.ShowFileHistoryView, Commands.ShowGraphView, Commands.ShowHomeView, @@ -44,6 +45,8 @@ export class ShowViewCommand extends Command { return this.container.commitsView.show(); case Commands.ShowContributorsView: return this.container.contributorsView.show(); + case Commands.ShowDraftsView: + return this.container.draftsView.show(); case Commands.ShowFileHistoryView: return this.container.fileHistoryView.show(); case Commands.ShowHomeView: diff --git a/src/constants.ts b/src/constants.ts index 360f550..815947c 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -242,6 +242,7 @@ export const enum Commands { ShowCommitsInView = 'gitlens.showCommitsInView', ShowCommitsView = 'gitlens.showCommitsView', ShowContributorsView = 'gitlens.showContributorsView', + ShowDraftsView = 'gitlens.showDraftsView', ShowFileHistoryView = 'gitlens.showFileHistoryView', ShowFocusPage = 'gitlens.showFocusPage', ShowGraph = 'gitlens.showGraph', diff --git a/src/webviews/apps/home/home.html b/src/webviews/apps/home/home.html index c00e979..96bf7f0 100644 --- a/src/webviews/apps/home/home.html +++ b/src/webviews/apps/home/home.html @@ -216,6 +216,21 @@ > Cloud Patches☁️ + Search & Compare Cloud Patches ☁️ + Search & Compare Cloud Patches ☁️ +