Skip to content

fix: Always Select Opened Element should select parent DocumentSymbol - #1531

Merged
angelozerr merged 1 commit into
redhat-developer:mainfrom
angelozerr:always_select_opened_parent
May 21, 2026
Merged

angelozerr merged 1 commit into
redhat-developer:mainfrom
angelozerr:always_select_opened_parent

Conversation

@angelozerr

Copy link
Copy Markdown
Contributor

fix: Always Select Opened Element should select parent DocumentSymbol

@angelozerr angelozerr added this to the 0.19.5 milestone May 21, 2026
@angelozerr angelozerr self-assigned this May 21, 2026
@angelozerr
angelozerr force-pushed the always_select_opened_parent branch from 940049e to d014eb2 Compare May 21, 2026 13:21
@angelozerr
angelozerr merged commit 4c8616f into redhat-developer:main May 21, 2026
6 checks passed
lagergren added a commit that referenced this pull request Nov 26, 2026
… the Structure view no longer needs (#2288)

Since 0.20.0 (#1531), the Structure view selects the DocumentSymbolData that contains the caret, and compares document symbols with each other. Matching a document symbol with a PSI element, which matchesPsiElement does for DocumentSymbolData.equals, is reached only when a symbol is compared with the file's PsiFile. The method is deprecated for removal and is still called, so a client that overrides it keeps its behaviour in this release. Making equals compare document symbols only follows in #2285.

Part of #2285
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant