mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-14 16:04:09 +01:00
notifications - tweak title
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user