Skip to content

Commit 539a494

Browse files
authored
Only copy repos that have results when copying repo list (#1406)
1 parent 9c29c5c commit 539a494

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/ql-vscode/src/remote-queries/remote-queries-manager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ export class RemoteQueriesManager extends DisposableObject {
193193

194194
public async copyRemoteQueryRepoListToClipboard(queryId: string) {
195195
const queryResult = await this.getRemoteQueryResult(queryId);
196-
const repos = queryResult.analysisSummaries.map(a => a.nwo);
196+
const repos = queryResult.analysisSummaries
197+
.filter(a => a.resultCount > 0)
198+
.map(a => a.nwo);
197199

198200
if (repos.length > 0) {
199201
const text = [

0 commit comments

Comments
 (0)