We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5634c1e commit b83d54fCopy full SHA for b83d54f
1 file changed
extensions/ql-vscode/src/helpers.ts
@@ -786,6 +786,18 @@ export async function* walkDirectory(
786
}
787
788
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
+
801
export function getFirstWorkspaceFolder() {
802
const workspaceFolders = workspace.workspaceFolders;
803
0 commit comments