Adds stash commands similar to SCM

This commit is contained in:
Eric Amodio
2017-07-03 02:00:15 -04:00
parent 52275215fe
commit af4f433972
4 changed files with 93 additions and 28 deletions

View File

@@ -1,6 +1,7 @@
'use strict';
import { Event, ExtensionContext, TreeItem} from 'vscode';
import { Command, Event, ExtensionContext, TreeItem} from 'vscode';
import { GitService, GitUri } from '../gitService';
export declare type ResourceType = 'status' | 'branches' | 'repository' | 'branch-history' | 'file-history' | 'stash-history' | 'commit' | 'stash-commit' | 'commit-file';
export abstract class ExplorerNode {
@@ -12,6 +13,11 @@ export abstract class ExplorerNode {
abstract getChildren(): ExplorerNode[] | Promise<ExplorerNode[]>;
abstract getTreeItem(): TreeItem | Promise<TreeItem>;
getCommand(): Command | undefined {
return undefined;
}
onDidChangeTreeData?: Event<ExplorerNode>;
refresh?(): void;
}