Skip to content

Define a URI scheme namespaced kind type for DocumentFilter #1627

Open
@rhdunn

Description

@rhdunn

The DocumentFilter scheme property documentation has the following:

A Uri scheme, like file or untitled.

This is incomplete in several ways:

  1. The link "#Uri.scheme" does not exist in the LSP specification. A "#uri" link name does, but that does not define a list of valid/supported URI schemes.
  2. It is unclear which URI schemes are available, which are required, and which are optional.
  3. It is unclear whether "untitled" is meant to be an example as a possible URI scheme from the scheme production (i.e. any sequence of ASCII characters), or is some special marker used in the specification/by a client.

The URI section should define the following namespaced kind type:

export type UriSchemeKind = string;

export namespace UriSchemeKind {
    export const FILE: UriSchemeKind = 'file';
    // ...
}

Updated interfaces:

  1. DocumentFilter -- scheme? : string -> UriSchemeKind

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions