Skip to content

Commit 6f6fb3d

Browse files
committed
Removes remaining Launchpad in Editor preferences and commands
1 parent 8df80ee commit 6f6fb3d

File tree

6 files changed

+12
-32
lines changed

6 files changed

+12
-32
lines changed

package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,13 +1351,6 @@
13511351
"scope": "window",
13521352
"order": 160
13531353
},
1354-
"gitlens.launchpad.indicator.openInEditor": {
1355-
"type": "boolean",
1356-
"default": false,
1357-
"markdownDescription": "Specifies whether to open _Launchpad_ as an editor tab when clicking on the status bar indicator",
1358-
"scope": "window",
1359-
"order": 170
1360-
},
13611354
"gitlens.launchpad.allowMultiple": {
13621355
"type": "boolean",
13631356
"default": true,
@@ -9915,7 +9908,7 @@
99159908
},
99169909
{
99179910
"command": "gitlens.launchpad.split",
9918-
"when": "gitlens:enabled && config.gitlens.launchpad.allowMultiple"
9911+
"when": "false && gitlens:enabled && config.gitlens.launchpad.allowMultiple"
99199912
},
99209913
{
99219914
"command": "gitlens.launchpad.indicator.toggle",

src/commands/quickCommand.buttons.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,6 @@ export const OpenOnWebQuickInputButton: QuickInputButton = {
147147
tooltip: 'Open on gitkraken.dev',
148148
};
149149

150-
export const OpenInEditorQuickInputButton: QuickInputButton = {
151-
iconPath: new ThemeIcon('link-external'),
152-
tooltip: 'Open in Editor',
153-
};
154-
155150
export const LaunchpadSettingsQuickInputButton: QuickInputButton = {
156151
iconPath: new ThemeIcon('gear'),
157152
tooltip: 'Launchpad Settings',

src/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export interface Config {
9898
readonly staleThreshold: number | null;
9999
readonly indicator: {
100100
readonly enabled: boolean;
101-
readonly openInEditor: boolean;
102101
readonly icon: 'default' | 'group';
103102
readonly label: false | 'item' | 'counts';
104103
readonly useColors: boolean;

src/constants.telemetry.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ export type TelemetryEvents = {
237237
'config.launchpad.ignoredOrganizations': number;
238238
'config.launchpad.ignoredRepositories': number;
239239
'config.launchpad.indicator.enabled': boolean;
240-
'config.launchpad.indicator.openInEditor': boolean;
241240
'config.launchpad.indicator.icon': 'default' | 'group';
242241
'config.launchpad.indicator.label': false | 'item' | 'counts';
243242
'config.launchpad.indicator.useColors': boolean;

src/plus/focus/focusIndicator.ts

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ export class FocusIndicator implements Disposable {
7676
private async onConfigurationChanged(e: ConfigurationChangeEvent) {
7777
if (!configuration.changed(e, 'launchpad.indicator')) return;
7878

79-
if (
80-
configuration.changed(e, 'launchpad.indicator.openInEditor') ||
81-
configuration.changed(e, 'launchpad.indicator.label')
82-
) {
79+
if (configuration.changed(e, 'launchpad.indicator.label')) {
8380
this.updateStatusBarCommand();
8481
}
8582

@@ -309,18 +306,16 @@ export class FocusIndicator implements Disposable {
309306

310307
private updateStatusBarCommand() {
311308
const labelType = configuration.get('launchpad.indicator.label') ?? 'item';
312-
this._statusBarFocus.command = configuration.get('launchpad.indicator.openInEditor')
313-
? 'gitlens.showFocusPage'
314-
: {
315-
title: 'Open Launchpad',
316-
command: Commands.ShowLaunchpad,
317-
arguments: [
318-
{
319-
source: 'launchpad-indicator',
320-
state: { selectTopItem: labelType === 'item' },
321-
} satisfies Omit<FocusCommandArgs, 'command'>,
322-
],
323-
};
309+
this._statusBarFocus.command = {
310+
title: 'Open Launchpad',
311+
command: Commands.ShowLaunchpad,
312+
arguments: [
313+
{
314+
source: 'launchpad-indicator',
315+
state: { selectTopItem: labelType === 'item' },
316+
} satisfies Omit<FocusCommandArgs, 'command'>,
317+
],
318+
};
324319
}
325320

326321
private updateStatusBarWithItems(tooltip: MarkdownString, categorizedItems: FocusItem[] | undefined) {

src/plus/focus/focusProvider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,6 @@ export class FocusProvider implements Disposable {
918918
'config.launchpad.ignoredOrganizations': cfg.ignoredOrganizations?.length ?? 0,
919919
'config.launchpad.ignoredRepositories': cfg.ignoredRepositories?.length ?? 0,
920920
'config.launchpad.indicator.enabled': cfg.indicator.enabled,
921-
'config.launchpad.indicator.openInEditor': cfg.indicator.openInEditor,
922921
'config.launchpad.indicator.icon': cfg.indicator.icon,
923922
'config.launchpad.indicator.label': cfg.indicator.label,
924923
'config.launchpad.indicator.useColors': cfg.indicator.useColors,

0 commit comments

Comments
 (0)