vscode-git-graph
vscode-git-graph copied to clipboard
fix(web): fix create file tree error when folder named constructor.
Issue Number / Link: No
Summary of the issue:
If a directory in a project is called constructor, Commit Detail View always show loading.
Description outlining how this pull request resolves the issue:
normal directory:

wrong directory:

because constructor and JS constructor have the same name:

After modification:

probably should use !Object.prototype.hasOwnProperty.call(cur.contents, path[j])