UriScheme:
    | undefined
    | "local"
    | "relative"
    | "file"
    | "http"
    | "https"
    | "data"
    | "blob"
    | "jsr"
    | "npm"

recognized uri schemes (i.e. the url protocol's scheme) that are returned by getUriScheme.

  • local: "C://absolute/path/to/file.txt"
  • relative: "./path/to/file.txt" or "../path/to/file.txt"
  • file: "file://C://absolute/path/to/file.txt"
  • http: "http://example.com/path/to/file.txt"
  • https: "https://example.com/path/to/file.txt"
  • data: "data:text/plain;base64,SGVsbG9Xb3JsZA==" or "data:text/plain,HelloWorld"
  • jsr: "jsr:@scope/package-name"
  • npm: "npm:@scope/package-name" or "npm:package-name"