Skip to content

Commit

Permalink
Update record display format in tree view
Browse files Browse the repository at this point in the history
  • Loading branch information
langningchen committed Oct 29, 2024
1 parent 1985bab commit f0ecdd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/recordTreeDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export class cyezoiRecordTreeDataProvider implements vscode.TreeDataProvider<Rec

export class Record extends vscode.TreeItem {
constructor(rdoc: RecordDoc, pdoc: ProblemDoc) {
super('P' + rdoc.pid, vscode.TreeItemCollapsibleState.None);
super(rdoc.score + ' ' + statusName[rdoc.status], vscode.TreeItemCollapsibleState.None);
this.contextValue = 'record';
this.description = pdoc.title;
this.description = 'P' + rdoc.pid + ' ' + pdoc.title;
const tooltipDoc = new vscode.MarkdownString();
this.iconPath = path.join(__dirname, '..', 'res', 'icons', statusIcon[rdoc.status] + '.svg');
tooltipDoc.appendMarkdown(`- **Status**: ${statusName[rdoc.status]}\n`);
Expand Down

0 comments on commit f0ecdd7

Please sign in to comment.