Skip to content

Enable API Explorer filter during regeneration path editing#7670

Open
jeffreybulanadi wants to merge 1 commit into
microsoft:mainfrom
jeffreybulanadi:vscode-filter-enabled-during-regeneration-6099
Open

Enable API Explorer filter during regeneration path editing#7670
jeffreybulanadi wants to merge 1 commit into
microsoft:mainfrom
jeffreybulanadi:vscode-filter-enabled-during-regeneration-6099

Conversation

@jeffreybulanadi
Copy link
Copy Markdown
Contributor

Summary

When selecting an existing client or plugin to regenerate, the filter button in the API Explorer toolbar was disabled and could not be used.

Root Cause

The filterDescription command is declared with enablement: kiota.openApiExplorer.showIcons

When the user clicks Edit Paths on a workspace item, EditPathsCommand calls updateTreeViewIcons(treeViewId, false, true), which sets showIcons=false (disabling generate and filter buttons) and showRegenerateIcon=true (enabling the regenerate button).

This left the filter disabled precisely when it is most needed, since the user is selecting paths from a potentially large API surface.

Change

Updated the enablement expression for kiota.openApiExplorer.filterDescription in package.json to:
kiota.openApiExplorer.showIcons || kiota.openApiExplorer.showRegenerateIcon

The filter is now enabled in both states where the API Explorer has content loaded.

Files Changed

  • vscode/packages/microsoft-kiota/package.json: updated enablement for filterDescription command
  • vscode/packages/microsoft-kiota/CHANGELOG.md: unreleased entry

Closes #6099

The filterDescription command was gated on kiota.openApiExplorer.showIcons.
When the user selects an existing client or plugin to regenerate, editPathsCommand
calls updateTreeViewIcons with showIcons=false and showRegenerateIcon=true,
which disabled the filter button in the API Explorer toolbar.

The filter is equally useful when editing paths for regeneration, so the
enablement condition now also accepts showRegenerateIcon being true.

Closes microsoft#6099
@jeffreybulanadi jeffreybulanadi requested a review from a team as a code owner May 1, 2026 22:16
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.

I can't filter the API explorer when regenerating

1 participant