Show external link url when hovering over book tree item (#6441)

* show url when hovering over tree item

* show only for external links

* show url for external links only
This commit is contained in:
Lucy Zhang
2019-07-19 14:39:58 -07:00
committed by GitHub
parent b313cb58db
commit 0606772514

View File

@@ -119,4 +119,13 @@ export class BookTreeItem extends vscode.TreeItem {
public get nextUri(): string {
return this._nextUri;
}
get tooltip(): string {
if (this.book.type === BookTreeItemType.ExternalLink) {
return `${this._uri}`;
}
else {
return undefined;
}
}
}