Skip to content

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

Merged
koesie10 merged 2 commits intomainfrom
koesie10/install-workspace-packs
Oct 16, 2023
Merged

Do not show non-workspace packs when installing pack dependencies#2960
koesie10 merged 2 commits intomainfrom
koesie10/install-workspace-packs

Conversation

@koesie10
Copy link
Copy Markdown
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
Copy Markdown
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
@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