mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Remove references to root in sql projects (#21911)
* update getFileProjectEntry and getRelativePath * remove root and fix tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user