Skip to content

Commit 195b7c4

Browse files
committed
removes welcome webview
1 parent 079f67e commit 195b7c4

30 files changed

+4
-3719
lines changed

package.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"onWebviewPanel:gitlens.patchDetails",
5555
"onWebviewPanel:gitlens.settings",
5656
"onWebviewPanel:gitlens.timeline",
57-
"onWebviewPanel:gitlens.welcome",
5857
"onStartupFinished"
5958
],
6059
"capabilities": {
@@ -4849,13 +4848,6 @@
48494848
"title": "General",
48504849
"order": 0,
48514850
"properties": {
4852-
"gitlens.showWelcomeOnInstall": {
4853-
"type": "boolean",
4854-
"default": true,
4855-
"markdownDescription": "Specifies whether to show the Welcome experience on first install",
4856-
"scope": "window",
4857-
"order": 10
4858-
},
48594851
"gitlens.showWhatsNewAfterUpgrades": {
48604852
"type": "boolean",
48614853
"default": true,
@@ -6026,11 +6018,6 @@
60266018
"title": "Show Visual File History View",
60276019
"category": "GitLens"
60286020
},
6029-
{
6030-
"command": "gitlens.showWelcomePage",
6031-
"title": "Welcome",
6032-
"category": "GitLens"
6033-
},
60346021
{
60356022
"command": "gitlens.showWorktreesView",
60366023
"title": "Show Worktrees View",
@@ -12772,11 +12759,6 @@
1277212759
"when": "extension =~ /^eamodio.gitlens?$/ && extensionStatus == installed",
1277312760
"group": "9_gitlens@1"
1277412761
},
12775-
{
12776-
"command": "gitlens.showWelcomePage",
12777-
"when": "extension =~ /^eamodio.gitlens?$/ && extensionStatus == installed",
12778-
"group": "9_gitlens@2"
12779-
},
1278012762
{
1278112763
"command": "gitlens.showSettingsPage",
1278212764
"when": "extension =~ /^eamodio.gitlens?$/ && extensionStatus == installed",

src/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ export interface Config {
202202
readonly showDetailsView: 'open' | 'selection' | false;
203203
};
204204
readonly remotes: RemotesConfig[] | null;
205-
readonly showWelcomeOnInstall: boolean;
206205
readonly showWhatsNewAfterUpgrades: boolean;
207206
readonly sortBranchesBy: BranchSorting;
208207
readonly sortContributorsBy: ContributorSorting;

src/constants.commands.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ export const enum Commands {
220220
ShowTagsView = 'gitlens.showTagsView',
221221
ShowTimelinePage = 'gitlens.showTimelinePage',
222222
ShowTimelineView = 'gitlens.showTimelineView',
223-
ShowWelcomePage = 'gitlens.showWelcomePage',
224223
ShowWorktreesView = 'gitlens.showWorktreesView',
225224
ShowWorkspacesView = 'gitlens.showWorkspacesView',
226225
StashApply = 'gitlens.stashApply',

src/constants.telemetry.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,6 @@ export type Sources =
605605
| 'scm-input'
606606
| 'subscription'
607607
| 'walkthrough'
608-
| 'welcome'
609608
| 'worktrees';
610609

611610
export type Source = {

src/constants.views.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type TreeViewTypes =
1919
| 'worktrees';
2020
export type TreeViewIds<T extends TreeViewTypes = TreeViewTypes> = `gitlens.views.${T}`;
2121

22-
export type WebviewTypes = 'graph' | 'patchDetails' | 'settings' | 'timeline' | 'welcome';
22+
export type WebviewTypes = 'graph' | 'patchDetails' | 'settings' | 'timeline';
2323
export type WebviewIds = `gitlens.${WebviewTypes}`;
2424

2525
export type WebviewViewTypes = 'commitDetails' | 'graph' | 'graphDetails' | 'home' | 'patchDetails' | 'timeline';

src/container.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ import { RebaseEditorProvider } from './webviews/rebase/rebaseEditor';
9797
import { registerSettingsWebviewCommands, registerSettingsWebviewPanel } from './webviews/settings/registration';
9898
import type { WebviewViewProxy } from './webviews/webviewsController';
9999
import { WebviewsController } from './webviews/webviewsController';
100-
import { registerWelcomeWebviewPanel } from './webviews/welcome/registration';
101100

102101
export type Environment = 'dev' | 'staging' | 'production';
103102

@@ -263,8 +262,6 @@ export class Container {
263262
this._disposables.push(settingsPanels);
264263
this._disposables.push(registerSettingsWebviewCommands(settingsPanels));
265264

266-
this._disposables.push(registerWelcomeWebviewPanel(this._webviews));
267-
268265
this._disposables.push(new ViewFileDecorationProvider());
269266

270267
this._disposables.push((this._repositoriesView = new RepositoriesView(this)));

src/extension.ts

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export async function activate(context: ExtensionContext): Promise<GitLensApi |
186186
);
187187
}
188188

189-
void showWelcomeOrWhatsNew(container, gitlensVersion, prerelease, previousVersion);
189+
void showWhatsNew(container, gitlensVersion, prerelease, previousVersion);
190190

191191
void storage.store(prerelease ? 'preVersion' : 'version', gitlensVersion);
192192

@@ -316,7 +316,7 @@ function registerBuiltInActionRunners(container: Container): void {
316316
);
317317
}
318318

319-
async function showWelcomeOrWhatsNew(
319+
async function showWhatsNew(
320320
container: Container,
321321
version: string,
322322
prerelease: boolean,
@@ -325,30 +325,6 @@ async function showWelcomeOrWhatsNew(
325325
if (previousVersion == null) {
326326
Logger.log(`GitLens first-time install; window.focused=${window.state.focused}`);
327327

328-
if (configuration.get('showWelcomeOnInstall') === false) return;
329-
330-
if (window.state.focused) {
331-
await container.storage.delete('pendingWelcomeOnFocus');
332-
await executeCommand(Commands.ShowWelcomePage);
333-
} else {
334-
// Save pending on window getting focus
335-
await container.storage.store('pendingWelcomeOnFocus', true);
336-
const disposable = window.onDidChangeWindowState(e => {
337-
if (!e.focused) return;
338-
339-
disposable.dispose();
340-
341-
// If the window is now focused and we are pending the welcome, clear the pending state and show the welcome
342-
if (container.storage.get('pendingWelcomeOnFocus') === true) {
343-
void container.storage.delete('pendingWelcomeOnFocus');
344-
if (configuration.get('showWelcomeOnInstall')) {
345-
void executeCommand(Commands.ShowWelcomePage);
346-
}
347-
}
348-
});
349-
container.context.subscriptions.push(disposable);
350-
}
351-
352328
return;
353329
}
354330

src/telemetry/walkthroughStateProvider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export class WalkthroughStateProvider implements Disposable {
3030
private readonly walkthroughByTracking: Partial<Record<TrackedUsageKeys, WalkthroughContextKeys>> = {
3131
[`command:${Commands.PlusStartPreviewTrial}:executed`]: WalkthroughContextKeys.GettingStarted,
3232
[`command:${Commands.PlusReactivateProTrial}:executed`]: WalkthroughContextKeys.GettingStarted,
33-
[`command:${Commands.ShowWelcomePage}:executed`]: WalkthroughContextKeys.GettingStarted,
3433
[`command:${Commands.OpenWalkthrough}:executed`]: WalkthroughContextKeys.GettingStarted,
3534
[`command:${Commands.GetStarted}:executed`]: WalkthroughContextKeys.GettingStarted,
3635

src/webviews/apps/settings/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { formatDate, setDefaultDateLocales } from '../shared/date';
1717
import { DOM } from '../shared/dom';
1818
// import { Snow } from '../shared/snow';
1919
import '../shared/components/feature-badge';
20-
import '../welcome/components/gitlens-logo';
20+
import '../shared/components/gitlens-logo';
2121

2222
const topOffset = 83;
2323
const offset = (new Date().getTimezoneOffset() / 60) * 100;

0 commit comments

Comments
 (0)