|
@ -19,11 +19,11 @@ export class GitUri extends Uri { |
|
|
if (!uri) return; |
|
|
if (!uri) return; |
|
|
|
|
|
|
|
|
const base = this as any; |
|
|
const base = this as any; |
|
|
base._scheme = uri.scheme; |
|
|
|
|
|
base._authority = uri.authority; |
|
|
|
|
|
base._path = uri.path; |
|
|
|
|
|
base._query = uri.query; |
|
|
|
|
|
base._fragment = uri.fragment; |
|
|
|
|
|
|
|
|
for (const key in uri) { |
|
|
|
|
|
if (uri.hasOwnProperty(key)) { |
|
|
|
|
|
base[key] = (uri as any)[key]; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.offset = 0; |
|
|
this.offset = 0; |
|
|
if (uri.scheme === DocumentSchemes.GitLensGit) { |
|
|
if (uri.scheme === DocumentSchemes.GitLensGit) { |
|
@ -141,4 +141,4 @@ export interface IGitUriData { |
|
|
originalFileName?: string; |
|
|
originalFileName?: string; |
|
|
index?: number; |
|
|
index?: number; |
|
|
decoration?: string; |
|
|
decoration?: string; |
|
|
} |
|
|
|
|
|
|
|
|
} |