Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not show non-workspace packs when installing pack dependencies #2960

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

koesie10
Copy link
Member

When using the "CodeQL: Install pack dependencies" command, we would show packs that are located in the package cache or distribution. Since there are no dependencies to install for these packs, these options are not useful.

This will filter out any packs that are not in the workspace folders when showing the quick pick. This should exclude most packs if you are in a workspace without the codeql submodule and should be a lot more intuitive in those cases. If you are in a workspace with the codeql submodule, it will still show all the packs.

Before:

Screenshot 2023-10-12 at 11 42 46

After:

Screenshot 2023-10-12 at 11 43 10

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

When using the "CodeQL: Install pack dependencies" command, we would
show packs that are located in the package cache or distribution. Since
there are no dependencies to install for these packs, these options are
not useful.

This will filter out any packs that are not in the workspace folders
when showing the quick pick. This should exclude most packs if you are
in a workspace without the `codeql` submodule and should be a lot more
intuitive in those cases. If you are in a workspace with the `codeql`
submodule, it will still show all the packs.
@koesie10 koesie10 marked this pull request as ready for review October 12, 2023 11:10
@koesie10 koesie10 requested a review from a team as a code owner October 12, 2023 11:10
Copy link
Contributor

@charisk charisk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@koesie10 koesie10 merged commit d78a4d1 into main Oct 16, 2023
14 checks passed
@koesie10 koesie10 deleted the koesie10/install-workspace-packs branch October 16, 2023 07:51
koesie10 added a commit that referenced this pull request Oct 16, 2023
koesie10 added a commit that referenced this pull request Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants