Skip to content

Commit

Permalink
Return text when no preface function
Browse files Browse the repository at this point in the history
  • Loading branch information
heaths committed Jan 17, 2016
1 parent 30799be commit e768dfb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ class GuidPickItem implements vscode.QuickPickItem {
}

get text() : string {
return this._format.preface(this._guid) +
this._format.format(this._guid);
let s = '';

if (typeof this._format.preface === 'function') {
s = this._format.preface(this._guid);
}

return s + this._format.format(this._guid);
}

get named() : boolean {
Expand Down

0 comments on commit e768dfb

Please sign in to comment.