Skip to content

Commit

Permalink
🐛 Fix documentSymbol request errors (#1732)
Browse files Browse the repository at this point in the history
  • Loading branch information
misode authored Jan 26, 2025
1 parent f8b30f8 commit 971546e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-server/src/util/toLS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function documentSymbols(
...(s.typeDefinition ?? []),
].find((l) => l.uri === doc.uri),
] as const
).filter(([_s, l]) => !!l).map(([s, l]) =>
).filter(([s, l]) => !!l && s.identifier).map(([s, l]) =>
documentSymbol(s, l!, doc, hierarchicalSupport, supportedKinds)
)
}
Expand Down

0 comments on commit 971546e

Please sign in to comment.