Skip to content

Commit 7ef35af

Browse files
authored
Don't create "." directory in queries/tests tree view (#2442)
1 parent f6b0ae2 commit 7ef35af

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

extensions/ql-vscode/src/common/file-tree-nodes.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export class FileTreeDirectory extends FileTreeNode {
4141
}
4242

4343
public createDirectory(relativePath: string): FileTreeDirectory {
44+
if (relativePath === ".") {
45+
return this;
46+
}
4447
const dirName = dirname(relativePath);
4548
if (dirName === ".") {
4649
return this.createChildDirectory(relativePath);

0 commit comments

Comments
 (0)