-
Notifications
You must be signed in to change notification settings - Fork 37.6k
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugfile-explorerExplorer widget issuesExplorer widget issueshelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunities
Description
Problem
When using the following code the corresponding file is highlighted in the files explorer:
vscode.commands.executeCommand(
"revealInExplorer",
vscode.Uri.file(path.join("path", "to", "folder", "existingFile.txt"))
);When I just want to highlight a folder it doesn't work:
vscode.commands.executeCommand(
"revealInExplorer",
vscode.Uri.file(path.join("path", "to", "folder"))
);I also tried vscode.Uri.parse with the same result.
Is this intended behaviour? And if so - is there a command to just reveal a folder?
Further info
- This is the corresponding code in 1.71.0: https://github.com/microsoft/vscode/blob/1.71.0/src/vs/workbench/contrib/files/browser/fileCommands.ts#L319
- I found another commit that implemented revealing folders in the markdown features extension: e7bc301 - but this feature is no longer available in the latest version.
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugfile-explorerExplorer widget issuesExplorer widget issueshelp wantedIssues identified as good community contribution opportunitiesIssues identified as good community contribution opportunities