diff --git a/package.json b/package.json index 0cb5199..8d6de71 100644 --- a/package.json +++ b/package.json @@ -645,11 +645,11 @@ }, { "command": "gitlens.stashApply", - "when": "gitlens:enabled && config.gitlens.insiders" + "when": "gitlens:enabled" }, { "command": "gitlens.stashSave", - "when": "gitlens:enabled && config.gitlens.insiders" + "when": "gitlens:enabled" } ], "explorer/context": [ diff --git a/src/commands/stashApply.ts b/src/commands/stashApply.ts index bb0e5dc..beb0aca 100644 --- a/src/commands/stashApply.ts +++ b/src/commands/stashApply.ts @@ -21,7 +21,6 @@ export class StashApplyCommand extends Command { } async execute(args: StashApplyCommandArgs = { confirm: true, deleteAfter: false }) { - if (!this.git.config.insiders) return undefined; if (!this.git.repoPath) return undefined; if (args.stashItem === undefined || args.stashItem.stashName === undefined) { diff --git a/src/commands/stashDelete.ts b/src/commands/stashDelete.ts index f697647..0586be2 100644 --- a/src/commands/stashDelete.ts +++ b/src/commands/stashDelete.ts @@ -19,7 +19,6 @@ export class StashDeleteCommand extends Command { } async execute(args: StashDeleteCommandArgs = { confirm: true }) { - if (!this.git.config.insiders) return undefined; if (!this.git.repoPath) return undefined; if (args.stashItem === undefined || args.stashItem.stashName === undefined) return undefined; diff --git a/src/commands/stashSave.ts b/src/commands/stashSave.ts index 4aa003b..0e98e47 100644 --- a/src/commands/stashSave.ts +++ b/src/commands/stashSave.ts @@ -19,7 +19,6 @@ export class StashSaveCommand extends Command { } async execute(args: StashSaveCommandArgs = { unstagedOnly : false }) { - if (!this.git.config.insiders) return undefined; if (!this.git.repoPath) return undefined; if (args.unstagedOnly === undefined) { diff --git a/src/quickPicks/commitDetails.ts b/src/quickPicks/commitDetails.ts index 62ab443..ed8f55a 100644 --- a/src/quickPicks/commitDetails.ts +++ b/src/quickPicks/commitDetails.ts @@ -110,7 +110,7 @@ export class CommitDetailsQuickPick { let index = 0; - if (stash && git.config.insiders) { + if (stash) { items.splice(index++, 0, new CommandQuickPickItem({ label: `$(git-pull-request) Apply Stashed Changes`, description: `\u00a0 \u2014 \u00a0\u00a0 ${commit.message}` diff --git a/src/quickPicks/stashList.ts b/src/quickPicks/stashList.ts index 2923ada..6f95ecd 100644 --- a/src/quickPicks/stashList.ts +++ b/src/quickPicks/stashList.ts @@ -10,7 +10,7 @@ export class StashListQuickPick { static async show(git: GitService, stash: IGitStash, mode: 'list' | 'apply', goBackCommand?: CommandQuickPickItem, currentCommand?: CommandQuickPickItem): Promise { const items = ((stash && Array.from(Iterables.map(stash.commits.values(), c => new CommitQuickPickItem(c)))) || []) as (CommitQuickPickItem | CommandQuickPickItem)[]; - if (mode === 'list' && git.config.insiders) { + if (mode === 'list') { items.splice(0, 0, new CommandQuickPickItem({ label: `$(repo-push) Stash Unstaged Changes`, description: `\u00a0 \u2014 \u00a0\u00a0 stashes only unstaged changes`