notifications - tweak title

This commit is contained in:
Benjamin Pasero
2019-04-17 11:50:10 +02:00
parent e18181e5fb
commit ee9dafcf74
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -400,7 +400,7 @@ export class NotificationViewItem extends Disposable implements INotificationVie
if (title && title.length > 0) {
massagedTitle = title;
} else if (startsWith(href, 'command:')) {
massagedTitle = localize('executeCommand', "Click to execute command '{0}'", href);
massagedTitle = localize('executeCommand', "Click to execute command '{0}'", href.substr('command:'.length));
} else {
massagedTitle = href;
}
@@ -124,7 +124,7 @@ suite('Notifications', () => {
assert.equal(links[2].name, 'Link 3');
assert.equal(links[2].href, 'command:without.title');
assert.equal(links[2].title, 'Click to execute command \'command:without.title\'');
assert.equal(links[2].title, 'Click to execute command \'without.title\'');
assert.equal(links[2].length, '[Link 3](command:without.title)'.length);
assert.equal(links[2].offset, 'Unable to [Link 1](http://link1.com) open [Link 2](command:open.me "Open This") and '.length);
});