Skip to content

Commit

Permalink
feat(vscode): max depth tooltip
Browse files Browse the repository at this point in the history
fixes #26
  • Loading branch information
mxsdev committed Nov 15, 2022
1 parent 99f6878 commit 0c34a24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/typescript-explorer-vscode/src/view/typeTreeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export class TypeTreeProvider implements vscode.TreeDataProvider<TypeTreeItem> {
}

async getTreeItem(element: TypeTreeItem) {
if (element.typeInfo.locations) {
if (element.typeInfo.kind === "max_depth") {
element.tooltip = "max depth exceeded"
} else if (element.typeInfo.locations) {
for (const location of element.typeInfo.locations) {
const { documentation, tags } =
(await getQuickInfoAtLocation(location)) ?? {}
Expand Down

0 comments on commit 0c34a24

Please sign in to comment.