mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[lsp] IJPL-189552 implement structure view with textDocument/documentSymbol
GitOrigin-RevId: 6fa463e38026f982aeb72b83e4eea352aa070ea4
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user