Skip to content

Ws Lsp client not reinitializing after reconnecting #2910

Description

@shmeowker

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

After leaving the app for ~20 seconds the active ws lsp client shuts down and does not work after going back to Acode besides the logs saying it reconnected successfully, and only begins to work after restarted manually.
This happeneds because after reconnecting it does not reinitialize the workspace and the server rejects the subsequent requests:

[LSP:Hover] Provider failed 
Object {code: -32002, message: "expected initialize request, got Request { id: RequestId(I32(243)), method: "textDocument/hover",…"}

It would be more convenient if Acode kept the active LSP session alive even if the app is running in background.

Environment

1.13.5-nightly.903d651 (1011)
Webview 151

If applicable, add mockups / screenshots regarding your vision

Image

If applicable, attach your Acode.log file to this issue.

Activity

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

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions