Skip to content

Commit

Permalink
Add possibility to disable all welcome screens. Fixes gitkraken#1049.
Browse files Browse the repository at this point in the history
  • Loading branch information
rickardp committed Dec 10, 2020
1 parent 104bee0 commit fbbc11e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,7 @@ See also [View Settings](#view-settings- 'Jump to the View settings')
| `gitlens.insiders` | Specifies whether to enable experimental features |
| `gitlens.liveshare.allowGuestAccess` | Specifies whether to allow guest access to GitLens features when using Visual Studio Live Share |
| `gitlens.outputLevel` | Specifies how much (if any) output will be sent to the GitLens output channel |
| `gitlens.showWelcomeScreen` | Specifies to show any splash screens (including the the welcome and What's New screens) |
| `gitlens.showWhatsNewAfterUpgrades` | Specifies whether to show What's New after upgrading to new feature releases |
| `gitlens.advanced.abbreviatedShaLength` | Specifies the length of abbreviated commit SHAs (shas) |
| `gitlens.advanced.blame.customArguments` | Specifies additional arguments to pass to the `git blame` command |
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,12 @@
"markdownDescription": "Specifies user-defined remote (code-hosting) services or custom domains for built-in remote services",
"scope": "resource"
},
"gitlens.showWelcomeScreen": {
"type": "boolean",
"default": true,
"markdownDescription": "Specifies to show any splash screens (including the the welcome and What's New screens)",
"scope": "window"
},
"gitlens.showWhatsNewAfterUpgrades": {
"type": "boolean",
"default": true,
Expand Down
1 change: 1 addition & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export interface Config {
modes: Record<string, ModeConfig>;
outputLevel: TraceLevel;
remotes: RemotesConfig[] | null;
showWelcomeScreen: boolean;
showWhatsNewAfterUpgrades: boolean;
sortBranchesBy: BranchSorting;
sortTagsBy: TagSorting;
Expand Down
4 changes: 4 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ export function notifyOnUnsupportedGitVersion(version: string) {
}

async function showWelcomeOrWhatsNew(version: string, previousVersion: string | undefined) {
if (!Container.config.showWhatsNewAfterUpgrades) {
return;
}

if (previousVersion == null) {
Logger.log('GitLens first-time install');
await commands.executeCommand(Commands.ShowWelcomePage);
Expand Down

0 comments on commit fbbc11e

Please sign in to comment.