瀏覽代碼

mixin state of super type

As discussed, this should be ok for Insiders and Stable and accommodate for our URI changes.
main
Johannes Rieken 7 年之前
committed by Eric Amodio
父節點
當前提交
459a8dce1d
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. +6
    -6
      src/git/gitUri.ts

+ 6
- 6
src/git/gitUri.ts 查看文件

@ -19,11 +19,11 @@ export class GitUri extends Uri {
if (!uri) return;
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;
if (uri.scheme === DocumentSchemes.GitLensGit) {
@ -141,4 +141,4 @@ export interface IGitUriData {
originalFileName?: string;
index?: number;
decoration?: string;
}
}

Loading…
取消
儲存