Skip to content

No diagnostics being sent from the server #43

@itsraian

Description

@itsraian

There is a validation happening on the filename that is avoiding a very simple setup to work in my vim configuration.
Basically the +1 used to index the start of the array at this point is avoiding a further validation to happen and no diagnostic is being sent from the server.

file = path[len(h.rootDir)+1:]

Validated that removing the +1 my issue is gone. I'm not an expert in LSP definitions, so wondering why that validation is there.

The further validations I mentioned is here

if file != issue.Pos.Filename {

Because it's continuing, and the first character is being removed no messages are sent back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions