Skip to content

Commit

Permalink
加一行快捷键描述
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Mar 28, 2024
1 parent e335f1b commit 237314d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mainMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import * as vscode from 'vscode';
import * as tools from './tools';

interface TreeNodeOptional {
command?: vscode.Command;
command?: typeof vscode.TreeItem.prototype.command;
iconPath?: typeof vscode.TreeItem.prototype.iconPath;
collapsibleState?: vscode.TreeItemCollapsibleState;
collapsibleState?: typeof vscode.TreeItem.prototype.collapsibleState;
description?: typeof vscode.TreeItem.prototype.description;
childs?: TreeNode[];
update?: (node: TreeNode, env: Env) => void | Thenable<void>;
}
Expand All @@ -18,6 +19,7 @@ class TreeNode extends vscode.TreeItem {
if (optional) {
this.command = optional.command;
this.iconPath = optional.iconPath;
this.description = optional.description;
this.childs = optional.childs;
this.update = optional.update;
this.collapsibleState = optional.collapsibleState;
Expand Down Expand Up @@ -122,6 +124,7 @@ let nodeAction = new TreeNode('操作', {
title: '启动游戏并附加调试器',
},
iconPath: new vscode.ThemeIcon('run-all'),
description: 'Shift + F5',
}),
]
});
Expand Down

0 comments on commit 237314d

Please sign in to comment.