Split codeQL.copyVariantAnalysisRepoList into two commands#2646
Split codeQL.copyVariantAnalysisRepoList into two commands#2646robertbrignull merged 5 commits intomainfrom
Conversation
shati-patel
left a comment
There was a problem hiding this comment.
Seems reasonable! Though I'm slightly confused that we now have a lot of command identifiers referencing the same "action". I think it makes sense, since some of them are just the user-facing ones, others are the internal commands? 🤔
e.g. We already have codeQLQueryHistory.copyRepoList, so do we need to define codeQL.copyVariantAnalysisRepoListQueryHistory separately?
…tead call copyRepoListToClipboard directly
…l copyRepoListToClipboard directly
a0111ed to
59958a5
Compare
|
@shati-patel, you raise a very good question. Looking into it more, I agree we don't need to have The only thing we then have to consider is if we're still logging enough telemetry, so I've added in some telemetry when copying repo lists in the view. This mirrors what we do for exporting results which is defined just next to it. And in the query history case we're already executing |
Yep, I wasn't thinking properly when I wrote that. It should be mocking the right function now 😅 |
Fixes https://github.com/github/vscode-codeql/security/code-scanning/461
codeQL.copyVariantAnalysisRepoListis used from two places, but they're both internal so it's trivial to split the command into two.Checklist
ready-for-doc-reviewlabel there.