mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 14:01:38 +01:00
fixes #39690
This commit is contained in:
@@ -45,6 +45,10 @@ interface OpenRepository extends Disposable {
|
||||
}
|
||||
|
||||
function isParent(parent: string, child: string): boolean {
|
||||
if (parent.charAt(parent.length - 1) !== path.sep) {
|
||||
parent += path.sep;
|
||||
}
|
||||
|
||||
return child.startsWith(parent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user