Skip to content

Clicking on find references result leads to a textDocument/didOpen without a close #652

Closed

Description

Versions used
1.48.0-insider
0a7364f00514c46c9caceece15e1f82f82e3712f
x64
vscode-language-client version: 7.0.0-next.7

I'm not sure if this is a VS Code or language client issue, so please transfer this if it's the wrong repository.
After calling find references, I clicked on the link to the file in the results (shown in the image below).

Screen Shot 2020-07-22 at 8 49 30 PM

This sent a textDocument/didOpen request for the file in question (server_gen.go). I then navigated back to the file explorer view and never looked at the references results again, but the server never received a textDocument/didClose for the file. I also tried clearing the results, but that also did not send a textDocument/didClose.

Is this intended behavior? Some of the logic in the Go language server relies on showing different diagnostics if a file is opened or closed, and this results in some unexpected behavior.

Thanks!

Activity

  1. dbaeumer commented on Jul 23, 2020

    @dbaeumer
    Member

    Johannes Rieken (@jrieken) can you please comment on this. I am pretty sure that the event is not lost in the LSP client. I guess the file will never be closed in VS Code itself.

  2. added
    info-needed
    on Jul 23, 2020
  3. vscodebot commented on Jul 30, 2020

    @vscodebot

    This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

    Happy Coding!

  4. dbaeumer commented on Jul 30, 2020

    @dbaeumer
    Member

    Reopeing and ping a Johannes Rieken (@jrieken)

  5. kjeremy commented on Aug 1, 2020

    @kjeremy
    Contributor

    I can reproduce this using rust-analyzer (which does not use the node lsp server)

  6. kjeremy commented on Aug 1, 2020

    @kjeremy
    Contributor
  7. kjeremy commented on Aug 10, 2020

    @kjeremy
    Contributor

    I believe that this can be closed. In vscode there is a 3 minute timer for references. Once triggered it sends a didClose notification.

  8. dbaeumer commented on Aug 17, 2020

    @dbaeumer
    Member

    Jeremy Kolb (@kjeremy) thanks for getting back. Closing then.

  9. locked and limited conversation to collaborators on Oct 1, 2020
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

    info-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions