microsoft / microsoft/vscode-documentdb
Index hide and unhide actions lack consistent state icons and tooltip content
@tnaum-ms is already working on this.
Since Aug 5, 2026.
- Dominant language
- TypeScript
- Stars
- 31
- Forks
- 22
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 21
Description
Found during the 0.10.0-bug-bash-1 bug bash.
Summary
The index hide and unhide experience does not provide a consistent visual or tooltip model for the index state and the action that will occur.
Verified implementation details
IndexItem.getTreeItem()uses the same genericcombineicon for hidden and visible indexes.- The Hide Index and Unhide Index commands in
package.jsondo not declare command icons. - The context menu correctly shows Hide only for visible indexes and Unhide only for hidden indexes.
- The prior, currently commented-out tooltip action design used
eye-closedfor Hide andeyefor Unhide, with result-oriented hover text:- Hide:
Hide this index from queries - Unhide:
Make this index visible
- Hide:
The current state indication is limited to the localized (hidden) description and the detailed tree-item tooltip. It does not align iconography with the context-menu action.
Steps to reproduce
- Open a collection's Indexes node.
- Compare a visible index and a hidden index.
- Open the context menu for each index and inspect the Hide or Unhide action, its iconography, and tooltip.
Expected
The index icon, context-menu icon, and hover text consistently communicate both the current state and the action:
- Visible index: use a visible-eye state icon and an action such as
Hide index from queries. - Hidden index: use an eye-closed state icon and an action such as
Make index visible to queries.
The command tooltip should describe the action that will happen, not conflict with the state represented by the icon.
Actual
Both states show the generic combine icon. Hide and Unhide actions have no dedicated command icons, and the useful state/action icon and tooltip mapping exists only in commented-out code.
Suggested fix
Define explicit ThemeIcons for the Hide Index and Unhide Index commands in package.json, and assign state-specific icons to tree items. Use localized action-oriented command titles or tooltips that match the icon and the command's result. Add focused tests for visible and hidden index presentations.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.