Skip to content

Commit b83d54f

Browse files
committed
Add a JSDoc description for the method
1 parent 5634c1e commit b83d54f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

extensions/ql-vscode/src/helpers.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,18 @@ export async function* walkDirectory(
786786
}
787787
}
788788

789+
/**
790+
* Returns the path of the first folder in the workspace.
791+
* This is used to decide where to create skeleton QL packs.
792+
*
793+
* If the first folder is a QL pack, then the parent folder is returned.
794+
* This is because the vscode-codeql-starter repo contains a ql pack in
795+
* the first folder.
796+
*
797+
* This is a temporary workaround until we can retire the
798+
* vscode-codeql-starter repo.
799+
*/
800+
789801
export function getFirstWorkspaceFolder() {
790802
const workspaceFolders = workspace.workspaceFolders;
791803

0 commit comments

Comments
 (0)