Renames explorer views

Adds refresh commands for explorer views
Adds context menu commands to both explorer views
This commit is contained in:
Eric Amodio
2017-06-25 23:38:42 -04:00
parent 272bb4db45
commit 6410a274d5
4 changed files with 66 additions and 13 deletions

View File

@@ -92,12 +92,12 @@ export async function activate(context: ExtensionContext) {
let explorer: GitExplorer | undefined = undefined;
if (cfg.insiders) {
explorer = new GitExplorer(context, git);
context.subscriptions.push(window.registerTreeDataProvider('gitlens-explorer', explorer));
context.subscriptions.push(window.registerTreeDataProvider('gitlens.gitExplorer', explorer));
}
let stashExplorer;
if (cfg.insiders) {
stashExplorer = new StashExplorer(context, git);
context.subscriptions.push(window.registerTreeDataProvider('gitstash-explorer', stashExplorer));
context.subscriptions.push(window.registerTreeDataProvider('gitlens.stashExplorer', stashExplorer));
context.subscriptions.push(new ShowStashListCommand(git, stashExplorer!));
}