mixin state of super type

As discussed, this should be ok for Insiders and Stable and accommodate for our URI changes.
This commit is contained in:
Johannes Rieken
2017-07-20 14:34:31 +02:00
committed by Eric Amodio
parent 2650a84105
commit 459a8dce1d

View File

@@ -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; for (const key in uri) {
base._authority = uri.authority; if (uri.hasOwnProperty(key)) {
base._path = uri.path; base[key] = (uri as any)[key];
base._query = uri.query; }
base._fragment = uri.fragment; }
this.offset = 0; this.offset = 0;
if (uri.scheme === DocumentSchemes.GitLensGit) { if (uri.scheme === DocumentSchemes.GitLensGit) {