Open
Description
The DocumentFilter scheme property documentation has the following:
A Uri scheme, like
file
oruntitled
.
This is incomplete in several ways:
- 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.
- It is unclear which URI schemes are available, which are required, and which are optional.
- 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:
- DocumentFilter -- scheme? : string -> UriSchemeKind