Show git status in projects tree (#14182)

* show git status in project tree

* fix for windows

* fix tests
This commit is contained in:
Kim Santiago
2021-02-22 11:33:42 -08:00
committed by GitHub
parent cd4024625f
commit 9087a9fbb1
3 changed files with 20 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ export class ProjectRootTreeItem extends BaseProjectTreeItem {
fileSystemUri: vscode.Uri;
constructor(project: Project) {
super(vscode.Uri.parse(path.basename(project.projectFilePath, sqlprojExtension)), undefined);
super(vscode.Uri.file(project.projectFilePath), undefined);
this.project = project;
this.fileSystemUri = vscode.Uri.file(project.projectFilePath);
@@ -48,6 +48,7 @@ export class ProjectRootTreeItem extends BaseProjectTreeItem {
const projectItem = new vscode.TreeItem(this.uri, vscode.TreeItemCollapsibleState.Expanded);
projectItem.contextValue = DatabaseProjectItemType.project;
projectItem.iconPath = IconPathHelper.databaseProject;
projectItem.label = path.basename(this.uri.fsPath, sqlprojExtension);
return projectItem;
}