2019-04-10 13:45:47 +02:00
|
|
|
import * as vscode from "vscode";
|
|
|
|
|
|
|
|
export class Issue extends vscode.TreeItem {
|
|
|
|
|
|
|
|
constructor(public readonly label: string,
|
|
|
|
public issueId: number,
|
|
|
|
public body: string,
|
|
|
|
public issueState: string,
|
|
|
|
public assignee: string,
|
2019-04-12 08:09:19 +02:00
|
|
|
public labels: any[],
|
|
|
|
public collapsibleState: vscode.TreeItemCollapsibleState,
|
2019-04-10 13:45:47 +02:00
|
|
|
public readonly command?: vscode.Command) {
|
|
|
|
super(label, collapsibleState);
|
|
|
|
}
|
|
|
|
|
|
|
|
get tooltip() {
|
|
|
|
return this.label + " - " + this.assignee;
|
|
|
|
}
|
|
|
|
contextValue = 'issue';
|
|
|
|
}
|