Skip to content

Commit

Permalink
fix type hierarchy regression
Browse files Browse the repository at this point in the history
Signed-off-by: Shi Chen <[email protected]>
  • Loading branch information
CsCherrYY authored and fbricon committed Feb 10, 2023
1 parent 9da3f15 commit 31b0a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typeHierarchy/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class TypeHierarchyModel implements SymbolItemNavigation<TypeHierarchyIte
}

location(item: TypeHierarchyItem) {
return new vscode.Location(vscode.Uri.file(item.uri), item.range);
return new vscode.Location(vscode.Uri.parse(item.uri), item.range);
}

nearest(uri: vscode.Uri, _position: vscode.Position): TypeHierarchyItem | undefined {
Expand Down

0 comments on commit 31b0a60

Please sign in to comment.