Skip to content

textDocument/definition highlights the whole file in blue #644

Closed

Description

@rcjsuen

OS: macOS Sonoma 14.4
Editor: GoLand 2024.1.4 Build #GO-241.18034.61, built on June 20, 2024
LSP4IJ: 0.8.1-20241128-131140

Sorry, I'm quite positive this is a duplicate but I can't find the original issue anymore. :(

When using textDocument/definition the whole file ends up getting highlighted. Can be reproduced with my rcjsuen/dockerfile-language-server project.

Screen.Recording.2024-11-29.at.13.02.51.mov

Activity

  1. angelozerr commented on Nov 29, 2024

    @angelozerr
    Contributor

    It is the same issue than #98

    It os because you have not a custom Psi. I think you are using TextMate.

    @SCWells72 have you some idea how to fix it?

  2. rcjsuen commented on Nov 29, 2024

    @rcjsuen
    ContributorAuthor

    It is the same issue than #98

    You're right. Hahaha, I saw the screenshot with nothing and closed the tab. But I see now it's a movie and yes it shows the exact same behaviour. :)

    It os because you have not a custom Psi. I think you are using TextMate.

    It's just a Dockerfile so whatever JetBrains is doing in the back I don't know.

    Sorry for the noise. Feel free to close as a duplicate if desired! 🙇

  3. SCWells72 commented on Nov 29, 2024

    @SCWells72
    Contributor

    It is the same issue than #98

    It os because you have not a custom Psi. I think you are using TextMate.

    @SCWells72 have you some idea how to fix it?

    I've seen that as well. I'm not sure since the entire file is really a single PSI element instead of a true parsed PSI tree. There may be some EP from which the range of the link is derived. That would really just require some careful debugging of how link highlighting is happening.

  4. angelozerr commented on Nov 29, 2024

    @angelozerr
    Contributor

    I spend a lot of time to debug IJ and I fear that it is not possible to customize the hyperlinked psi élément. Perhaps I am wrong.

    Please read my comment in #98 with an another idea that I had startedbto investigate. But is a big hack.

  5. angelozerr commented on Nov 29, 2024

    @angelozerr
    Contributor

    Duplicate of #98

  6. added
    duplicate
    on Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions