Liking cljdoc? Tell your friends :D

dots.vscode.l-10n.uri

The URI of the localization bundle that has been loaded for the extension. It's undefined if no bundle has been loaded. The bundle is typically not loaded if there was no bundle found or when we are running with the default language.

The URI of the localization bundle that has been loaded for the extension.
It's undefined if no bundle has been loaded. The bundle is typically not loaded if
there was no bundle found or when we are running with the default language.
raw docstring

authoritycljs

(authority)

Authority is the www.example.com part of http://www.example.com/some/path?query#fragment. The part between the first double slashes and the next slash.

Returns: string

Authority is the `www.example.com` part of `http://www.example.com/some/path?query#fragment`.
The part between the first double slashes and the next slash.

**Returns:** `string`
sourceraw docstring

fragmentcljs

(fragment)

Fragment is the fragment part of http://www.example.com/some/path?query#fragment.

Returns: string

Fragment is the `fragment` part of `http://www.example.com/some/path?query#fragment`.

**Returns:** `string`
sourceraw docstring

fs-pathcljs

(fs-path)

The string representing the corresponding file system path of this Uri.

Will handle UNC paths and normalize windows drive letters to lower-case. Also uses the platform specific path separator.

  • Will not validate the path for invalid characters and semantics.
  • Will not look at the scheme of this Uri.
  • The resulting string shall not be used for display purposes but for disk operations, like readFile et al.

The difference to the {@linkcode Uri.path path}-property is the use of the platform specific path separator and the handling of UNC paths. The sample below outlines the difference:

const u = URI.parse('file://server/c$/folder/file.txt')
u.authority === 'server'
u.path === '/c$/folder/file.txt'
u.fsPath === '\\server\c$\folder\file.txt'

Returns: string

The string representing the corresponding file system path of this Uri.

Will handle UNC paths and normalize windows drive letters to lower-case. Also
uses the platform specific path separator.

* Will *not* validate the path for invalid characters and semantics.
* Will *not* look at the scheme of this Uri.
* The resulting string shall *not* be used for display purposes but
for disk operations, like `readFile` et al.

The *difference* to the {@linkcode Uri.path path}-property is the use of the platform specific
path separator and the handling of UNC paths. The sample below outlines the difference:
```ts
const u = URI.parse('file://server/c$/folder/file.txt')
u.authority === 'server'
u.path === '/c$/folder/file.txt'
u.fsPath === '\\server\c$\folder\file.txt'
```

**Returns:** `string`
sourceraw docstring

pathcljs

(path)

Path is the /some/path part of http://www.example.com/some/path?query#fragment.

Returns: string

Path is the `/some/path` part of `http://www.example.com/some/path?query#fragment`.

**Returns:** `string`
sourceraw docstring

querycljs

(query)

Query is the query part of http://www.example.com/some/path?query#fragment.

Returns: string

Query is the `query` part of `http://www.example.com/some/path?query#fragment`.

**Returns:** `string`
sourceraw docstring

schemecljs

(scheme)

Scheme is the http part of http://www.example.com/some/path?query#fragment. The part before the first colon.

Returns: string

Scheme is the `http` part of `http://www.example.com/some/path?query#fragment`.
The part before the first colon.

**Returns:** `string`
sourceraw docstring

to-jsoncljs

(to-json)

Returns a JSON representation of this Uri.

Returns: any - An object.

Returns a JSON representation of this Uri.

**Returns:** `any` - An object.
sourceraw docstring

to-stringcljs

(to-string)
(to-string skip-encoding?)

Returns a string representation of this Uri. The representation and normalization of a URI depends on the scheme.

  • The resulting string can be safely used with {@link Uri.parse }.
  • The resulting string shall not be used for display purposes.

Note that the implementation will encode aggressive which often leads to unexpected, but not incorrect, results. For instance, colons are encoded to %3A which might be unexpected in file-uri. Also & and = will be encoded which might be unexpected for http-uris. For stability reasons this cannot be changed anymore. If you suffer from too aggressive encoding you should use the skipEncoding-argument: uri.toString(true).

Parameters:

  • skip-encoding?: boolean | undefined - Do not percentage-encode the result, defaults to false. Note that the # and ? characters occurring in the path will always be encoded.

Returns: string - A string representation of this Uri.

Returns a string representation of this Uri. The representation and normalization
of a URI depends on the scheme.

* The resulting string can be safely used with {@link Uri.parse }.
* The resulting string shall *not* be used for display purposes.

*Note* that the implementation will encode _aggressive_ which often leads to unexpected,
but not incorrect, results. For instance, colons are encoded to `%3A` which might be unexpected
in file-uri. Also `&` and `=` will be encoded which might be unexpected for http-uris. For stability
reasons this cannot be changed anymore. If you suffer from too aggressive encoding you should use
the `skipEncoding`-argument: `uri.toString(true)`.

**Parameters:**
- `skip-encoding?`: `boolean | undefined` - Do not percentage-encode the result, defaults to `false`. Note that
the `#` and `?` characters occurring in the path will always be encoded.

**Returns:** `string` - A string representation of this Uri.
sourceraw docstring

withcljs

(with change)

Derive a new Uri from this Uri.

let file = Uri.parse('before:some/file/path');
let other = file.with({ scheme: 'after' });
assert.ok(other.toString() === 'after:some/file/path');

Parameters:

  • change: { scheme?: string | undefined; authority?: string | undefined; path?: string | undefined; query?: string | undefined; fragment?: string | undefined; } - An object that describes a change to this Uri. To unset components use null or the empty string.

Returns: Uri - A new Uri that reflects the given change. Will return this Uri if the change is not changing anything.

Derive a new Uri from this Uri.

```ts
let file = Uri.parse('before:some/file/path');
let other = file.with({ scheme: 'after' });
assert.ok(other.toString() === 'after:some/file/path');
```

**Parameters:**
- `change`: `{ scheme?: string | undefined; authority?: string | undefined; path?: string | undefined; query?: string | undefined; fragment?: string | undefined; }` - An object that describes a change to this Uri. To unset components use `null` or
the empty string.

**Returns:** `Uri` - A new Uri that reflects the given change. Will return `this` Uri if the change
is not changing anything.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close