mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-21 17:26:05 -05:00
Adds an experimental custom view (wip)
This commit is contained in:
15
src/views/explorerNode.ts
Normal file
15
src/views/explorerNode.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
import { 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 {
|
||||
|
||||
abstract readonly resourceType: ResourceType;
|
||||
|
||||
constructor(public uri: GitUri, protected context: ExtensionContext, protected git: GitService) { }
|
||||
|
||||
abstract getChildren(): ExplorerNode[] | Promise<ExplorerNode[]>;
|
||||
abstract getTreeItem(): TreeItem | Promise<TreeItem>;
|
||||
}
|
||||
Reference in New Issue
Block a user