[lsp] IJPL-189552 implement structure view with textDocument/documentSymbol

GitOrigin-RevId: 6fa463e38026f982aeb72b83e4eea352aa070ea4
This commit is contained in:
Tomasz Blachut
2025-10-13 14:43:21 +00:00
committed by intellij-monorepo-bot
parent 867fdf349f
commit ad079b6eeb
@@ -24,6 +24,9 @@ public final class LanguageStructureViewBuilder extends LanguageExtension<PsiStr
public @Nullable StructureViewBuilder getStructureViewBuilder(@NotNull PsiFile file) {
PsiStructureViewFactory factory = forLanguage(file.getLanguage());
if (factory == null) {
factory = forLanguage(Language.ANY);
}
if (factory != null) {
return factory.getStructureViewBuilder(file);
}