Skip to content

Re-consider LSP design for diagnostics during services #654

@toinehartman

Description

@toinehartman

Describe the bug

Currently, errors during LSP services (e.g. go to definition, outline computation) can only be shown to the user via logs. While designing the API for renaming #651, the question arose whether a more generic mechanism could be useful for other LSP services.

Maybe a specific exception, that than can be unwrapped to put the diagnostics in the editor

data Exception
    = LSPServiceError(set[Message] msgs)
    ;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions