ryu1kn/vscode-annotator

View on GitHub
src/lib/changed-file-label-maker.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

export class ChangedFileLabelMaker {

    make(item) {
        switch (item.changeType) {
        case 'D':
            return `[ D ] ${item.previousPath}`;
        case 'R':
            return `[ R ] ${item.previousPath} \u2192 ${item.path}`;
        default:
            return `[ ${item.changeType} ] ${item.path}`;
        }
    }

}