Skip to content

rust: URI type implementation is non-compliant with LSP specification #442

Description

Our current URI handling uses the rust-url crate, which implements the WHATWG URL spec. However, the Language Server Protocol (LSP) specification explicitly requires URI's to follow RFC 3986.

This causes parsing errors for valid file paths that contain special characters, such as [ or {, which are common in modern frontend frameworks (e.g., Next.js, SvelteKit).

Ref: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#uri.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions