use properties

This commit is contained in:
Joao Moreno 2017-08-16 10:14:03 +02:00
parent 3160356614
commit a6907bc57f

View file

@ -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;