Add revealWorkspaceResource function to expose resources in Workspaces#1108
Merged
alexweininger merged 1 commit intomicrosoft:mainfrom Apr 15, 2025
Merged
Conversation
sevoku
added a commit
to microsoft/vscode-cosmosdb
that referenced
this pull request
Mar 31, 2025
…rameters in Workspace resource revealing This change requires an upstream change: microsoft/vscode-azureresourcegroups#1108
bwateratmsft
approved these changes
Apr 1, 2025
7 tasks
d1c7591 to
cdd14a0
Compare
alexweininger
approved these changes
Apr 15, 2025
Merged
bjfd0427KathleenYoung
added a commit
to bjfd0427KathleenYoung/vscode-cosmosdb
that referenced
this pull request
Oct 12, 2025
…rameters in Workspace resource revealing This change requires an upstream change: microsoft/vscode-azureresourcegroups#1108
godnd5326348MrRichardFreeman
added a commit
to godnd5326348MrRichardFreeman/vscode-cosmosdb
that referenced
this pull request
Oct 12, 2025
…rameters in Workspace resource revealing This change requires an upstream change: microsoft/vscode-azureresourcegroups#1108
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new public API feature to reveal a resource in the Workspace tree view. Similar to
revealAzureResourcethis allows revealing items inside the Workspaces tree view.Key changes include:
New Functionality:
api/src/resources/resourcesApi.ts: Added a new methodrevealWorkspaceResourceto theResourcesApiinterface to reveal a resource in the Workspace tree view.src/commands/revealResource.ts: Implemented therevealWorkspaceResourcefunction to handle the logic for revealing a resource in the Workspace tree view.Integration:
src/api/createAzureResourcesHostApi.ts: Imported the newrevealWorkspaceResourcefunction and added it to theAzureResourcesHostApiimplementation. [1] [2]src/api/createWrappedAzureResourcesExtensionApi.ts: Wrapped the newrevealWorkspaceResourcefunction in telemetry for the extension API.This is a requirement for microsoft/vscode-cosmosdb#2635 (specifically microsoft/vscode-cosmosdb@a282222#diff-e658a4603f6f310947489252c2deea4645903dc5b8fcf18c7f1ccc94ab9a21f8R216-R221)