Removes insiders flag from stash view

This commit is contained in:
Eric Amodio
2017-07-02 23:16:55 -04:00
parent 81a9092455
commit 7f3fdb48fd

View File

@@ -89,17 +89,10 @@ export async function activate(context: ExtensionContext) {
context.subscriptions.push(new Keyboard());
// let explorer: GitExplorer | undefined = undefined;
// if (cfg.insiders) {
// explorer = new GitExplorer(context, git);
// context.subscriptions.push(window.registerTreeDataProvider('gitlens.gitExplorer', explorer));
// }
// const explorer = new GitExplorer(context, git);
// context.subscriptions.push(window.registerTreeDataProvider('gitlens.gitExplorer', explorer));
let stashExplorer;
if (cfg.insiders) {
stashExplorer = new StashExplorer(context, git);
context.subscriptions.push(window.registerTreeDataProvider('gitlens.stashExplorer', stashExplorer));
}
context.subscriptions.push(window.registerTreeDataProvider('gitlens.stashExplorer', new StashExplorer(context, git)));
context.subscriptions.push(new CloseUnchangedFilesCommand(git));
context.subscriptions.push(new OpenChangedFilesCommand(git));