Skip to content

Search result 'show in Explorer' shows in side-panel #83139

Closed

Description

@leegee

Issue Type: Bug

  • Perform a search
  • In the results panel, right-click a filename
  • Select 'Reveal in Explorer'
  • File is highlighted in the 'Files' side panel.

VS Code version: Code 1.39.2 (6ab5985, 2019-10-15T15:35:18.241Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 x 4200)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.93GB (23.18GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (7)
Extension Author (truncated) Version
Bookmarks ale 10.5.0
cucumberautocomplete ale 2.14.1
vscode-svgviewer css 2.0.0
vscode-markdownlint Dav 0.31.1
vscode-eslint dba 1.9.1
vscode-scss-formatter sib 1.4.2
perforce sle 3.2.0

(1 theme extensions excluded)

Activity

  1. gjsjohnmurray commented on Oct 23, 2019

    @gjsjohnmurray
    Contributor

    Lee Goddard (@leegee) what you refer to as "the 'Files' side panel" is called Explorer. So the current behaviour of 'Reveal in Explorer' from a filename in Search results makes sense. But I can see it's confusing because when you then right-click on the filename that's been revealed in VS Code's Explorer, you get another 'Reveal in Explorer', and that one opens a Windows Explorer onto the folder containing the file and highlights the file. I guess on macOS the equivalent context menu will say 'Reveal in Finder'.

  2. leegee commented on Oct 23, 2019

    @leegee
    Author
  3. gjsjohnmurray commented on Oct 23, 2019

    @gjsjohnmurray
    Contributor

    So maybe the option in the Search side bar's context menu should be recaptioned 'Reveal in Explorer Side Bar' (1 change):

    title: nls.localize('revealInSideBar', "Reveal in Explorer")

    Alternatively, make the Explorer side bar context menu on Windows use the caption 'Reveal in Windows Explorer' (3 changes):

    const REVEAL_IN_OS_LABEL = isWindows ? nls.localize('revealInWindows', "Reveal in Explorer") : isMacintosh ? nls.localize('revealInMac', "Reveal in Finder") : nls.localize('openContainer', "Open Containing Folder");

    title: isWindows ? nls.localize('revealInWindows', "Reveal in Explorer") : isMacintosh ? nls.localize('revealInMac', "Reveal in Finder") : nls.localize('openContainer', "Open Containing Folder")

    appendToCommandPalette(REVEAL_IN_OS_COMMAND_ID, { value: REVEAL_IN_OS_LABEL, original: isWindows ? 'Reveal in Explorer' : isMacintosh ? 'Reveal in Finder' : 'Open Containing Folder' }, category);

  4. added
    feature-request
    file-explorer
    on Oct 23, 2019
  5. isidorn commented on Oct 23, 2019

    @isidorn
  6. leegee commented on Oct 24, 2019

    @leegee
    Author

    I'm still on Windows, I right-click the tab of an open file, and it offers Open in Explorer and Open in Side Bar.

  7. gjsjohnmurray commented on Oct 24, 2019

    @gjsjohnmurray
    Contributor

    I'm still on Windows, I right-click the tab of an open file, and it offers Open in Explorer and Open in Side Bar.

    Lee Goddard (@leegee) on my 1.39.2 on Windows the context menu from a file tab captions the options "Reveal in Explorer" and "Reveal in Side Bar" (not "Open in ..." as you wrote).

    So for consistency I think the context menu from the filename on the Search list should be changed on this line to become Reveal in Side Bar

    title: nls.localize('revealInSideBar', "Reveal in Explorer")

  8. leegee commented on Oct 24, 2019

    @leegee
    Author
  9. roblourens commented on Oct 25, 2019

    @roblourens
    Member

    We talked about this at the time. The thing is, "Explorer" is used in a bunch of places to refer to the file explorer in vscode and it doesn't seem like a big deal to me. However I realized that there is precedent for referring to it as "Side bar", the command "File: Reveal active file in side bar". I think that's kind of imprecise and also you are already looking at the search results in the side bar, so it doesn't make sense to "reveal in side bar" again.

    But anyway, I don't have a strong opinion.

  10. bpasero commented on Oct 27, 2019

    @bpasero
    Contributor

    We have been using the term "side bar" exactly for this reason: to have a way to distinguish between the Windows Explorer and the explorer in VSCode. We could in theory refer to it as "Explorer View", but that may cause frustration when users search for "reveal explorer" and find 2 results.

    I think no matter what we do, both commands should have a similar label. I don't think there is an issue calling the command in the search results "Reveal in Side Bar".

  11. leegee commented on Oct 27, 2019

    @leegee
    Author
  12. gjsjohnmurray commented on Oct 28, 2019

    @gjsjohnmurray
    Contributor

    Isidor Nikolic (@isidorn) are you willing to take my PR for this? It failed CI on windows and darwin but as far as I can tell that wasn't caused by anything in my PR itself.

  13. locked and limited conversation to collaborators on Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestfile-explorer

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions