Skip to content

Commit 178883a

Browse files
committed
Fix issue in getTypeDefinitionAtPosition
1 parent d3c91e0 commit 178883a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5093,7 +5093,7 @@ namespace ts {
50935093
return undefined;
50945094
}
50955095

5096-
if (type.flags & TypeFlags.Union) {
5096+
if (type.flags & TypeFlags.Union && !(type.flags & TypeFlags.Enum)) {
50975097
const result: DefinitionInfo[] = [];
50985098
forEach((<UnionType>type).types, t => {
50995099
if (t.symbol) {

0 commit comments

Comments
 (0)