Skip to content

Commit 42436e6

Browse files
committed
Add JSDoc to db config store
1 parent 4087620 commit 42436e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

extensions/ql-vscode/src/databases/config/db-config-store.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ export class DbConfigStore extends DisposableObject {
145145
await this.writeConfig(config);
146146
}
147147

148+
/**
149+
* Adds a list of remote repositories to an existing repository list and removes duplicates.
150+
* @returns a list of repositories that were not added because the list reached 1000 entries.
151+
*/
148152
public async addRemoteReposToList(
149153
repoNwoList: string[],
150154
parentList: string,
@@ -173,6 +177,10 @@ export class DbConfigStore extends DisposableObject {
173177
return truncatedRepositories;
174178
}
175179

180+
/**
181+
* Adds one remote repository
182+
* @returns either nothing, or, if a parentList is given AND the number of repos on that list reaches 1000 returns the repo that was not added.
183+
*/
176184
public async addRemoteRepo(
177185
repoNwo: string,
178186
parentList?: string,

0 commit comments

Comments
 (0)