提交 a6907bc5 编写于 作者: J Joao Moreno

use properties

上级 31603566
......@@ -119,7 +119,7 @@ export class Resource implements SourceControlResourceState {
}
}
private getTooltip(): string {
private get tooltip(): string {
switch (this.type) {
case Status.INDEX_MODIFIED: return localize('index modified', "Index Modified");
case Status.MODIFIED: return localize('modified', "Modified");
......@@ -163,7 +163,7 @@ export class Resource implements SourceControlResourceState {
get decorations(): SourceControlResourceDecorations {
const light = { iconPath: this.getIconPath('light') };
const dark = { iconPath: this.getIconPath('dark') };
const tooltip = this.getTooltip();
const tooltip = this.tooltip;
const strikeThrough = this.strikeThrough;
const faded = this.faded;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册