Remove references to root in sql projects (#21911)

* update getFileProjectEntry and getRelativePath

* remove root and fix tests
This commit is contained in:
Kim Santiago
2023-02-14 10:34:46 -08:00
committed by GitHub
parent d5384cad0e
commit 71c12883fe
4 changed files with 78 additions and 61 deletions

View File

@@ -25,14 +25,4 @@ export abstract class BaseProjectTreeItem {
public get friendlyName(): string {
return path.parse(this.relativeProjectUri.path).base;
}
public get root() {
let node: BaseProjectTreeItem = this;
while (node.parent !== undefined) {
node = node.parent;
}
return node;
}
}