MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / with

Method with

packages/vscode-shim/src/classes/Uri.ts:87–95  ·  view source on GitHub ↗

* Create a new URI with modifications * * @param change - The changes to apply * @returns A new Uri instance with the changes applied

(change: { scheme?: string; authority?: string; path?: string; query?: string; fragment?: string })

Source from the content-addressed store, hash-verified

85 * @returns A new Uri instance with the changes applied
86 */
87 with(change: { scheme?: string; authority?: string; path?: string; query?: string; fragment?: string }): Uri {
88 return new Uri(
89 change.scheme !== undefined ? change.scheme : this.scheme,
90 change.authority !== undefined ? change.authority : this.authority,
91 change.path !== undefined ? change.path : this.path,
92 change.query !== undefined ? change.query : this.query,
93 change.fragment !== undefined ? change.fragment : this.fragment,
94 )
95 }
96
97 /**
98 * Get the file system path representation

Callers 6

Range.test.tsFile · 0.45
Uri.test.tsFile · 0.45
Position.test.tsFile · 0.45
checkpointDiffFunction · 0.45
addLinesMethod · 0.45
openDiffEditorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected