Skip to content

textDocument/documentColor returns null #301

Description

@rchl

Per spec, textDocument/documentColor returns ColorInformation[] and must never return null. In vue language server it does return null in some cases. For example when style block is removed in a vue file.

I suppose this code might be responsible (undefined becomes null when passed through JSON RPC):

return plugin[1].provideDocumentColors?.(document, token);

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions