mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 17:25:28 -05:00
15 lines
642 B
TypeScript
15 lines
642 B
TypeScript
'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 readonly uri: GitUri, protected readonly context: ExtensionContext, protected readonly git: GitService) { }
|
|
|
|
abstract getChildren(): ExplorerNode[] | Promise<ExplorerNode[]>;
|
|
abstract getTreeItem(): TreeItem | Promise<TreeItem>;
|
|
} |