Skip to content

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

@stamblerre

Description

@stamblerre
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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    info-neededIssue requires more information from poster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions