Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh Explorer is broken when Activity Bar Position Hidden #197301

Closed
dacapoday opened this issue Nov 3, 2023 · 18 comments
Closed

Refresh Explorer is broken when Activity Bar Position Hidden #197301

dacapoday opened this issue Nov 3, 2023 · 18 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@dacapoday
Copy link

dacapoday commented Nov 3, 2023

Steps to Reproduce:

  1. Enable a Plugin that contribute status bar button

  2. Select the Activity Bar Position as Hidden
    xxx3

  3. Click Refresh Explorer

Then:
xxx4

Version: 1.84.0
Commit: d037ac0
Date: 2023-11-01T11:29:04.398Z
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.84.0 Chrome/114.0.5735.289 Electron/25.9.2 Safari/537.36

@dacapoday
Copy link
Author

Probably depends on #118692

@gjsjohnmurray
Copy link
Contributor

Probably #197169

@sandy081
Copy link
Member

sandy081 commented Nov 3, 2023

May not be #197169.

@dacapoday What do you mean by Refresh Explorer is broken? Can you please elaborate what is not working?

@sandy081 sandy081 assigned sandy081 and unassigned bhavyaus Nov 3, 2023
@sandy081 sandy081 added info-needed Issue requires more information from poster and removed triage-needed labels Nov 3, 2023
@dacapoday
Copy link
Author

May not be #197169.

@dacapoday What do you mean by Refresh Explorer is broken? Can you please elaborate what is not working?

As shown in the screenshot, after hiding Activity Bar, click Refresh Explorer. Folders disappears, Only empty view shown.
But I expected that the folders should not change (disk or remote host has not changed).

I can reproduce this behavior on both the local folder and Remote SSH.

@gjsjohnmurray
Copy link
Contributor

May not be #197169

Agreed. I haven't been able to repro a problem with Refresh Explorer resulting in a blank tree, no matter whether Activity Bar is hidden or not.

@dacapoday
Copy link
Author

dacapoday commented Nov 3, 2023

May not be #197169

Agreed. I haven't been able to repro a problem with Refresh Explorer resulting in a blank tree, no matter whether Activity Bar is hidden or not.

tab_switch_ani2

@gjsjohnmurray
Copy link
Contributor

@dacapoday does this repro for you after you run the command to reload with all extensions disabled?

@dacapoday
Copy link
Author

dacapoday commented Nov 3, 2023

@dacapoday does this repro for you after you run the command to reload with all extensions disabled?

Oh, sorry. Need a Plugin that contribute status bar button to reproduce.
tab4

The Plugin in the screenshoot is very simple, only create two status bar button.

@gjsjohnmurray
Copy link
Contributor

@dacapoday
Copy link
Author

@sandy081
Copy link
Member

sandy081 commented Nov 9, 2023

What is this Selected Line Numbers extension? Can you please provide us steps to reproduce? Also provide the source code of the sample extension that is causing this issue.

@dacapoday
Copy link
Author

What is this Selected Line Numbers extension? Can you please provide us steps to reproduce? Also provide the source code of the sample extension that is causing this issue.

This extension is compiled from the source code of https://github.com/microsoft/vscode-extension-samples/tree/main/statusbar-sample mentioned by @gjsjohnmurray, I only modified the package.json publisher for local installation.

You can directly unzip the extension by zip. vsix is just a zip file. It already contains the source code.

@dacapoday
Copy link
Author

By the way, for Version 1.84.2
tab6

@sandy081
Copy link
Member

Do you see any errors in the following places?

  • F1 > Toggle Developer Tools > Console
  • F1 > Open View... > Window

@dacapoday
Copy link
Author

Do you see any errors in the following places?

  • F1 > Toggle Developer Tools > Console
  • F1 > Open View... > Window

No, during the operation, no new logs are generated.

@dacapoday
Copy link
Author

I'm not familiar with VSCode's code, but could it be related to Explorer and Folders alteration:
Historically, I've tried to use Secondary Side Bar to achieve the effect of #118692, but failed because #143264.
Later, #173619 modifies the relationship between Explorer and Folders.

@sandy081
Copy link
Member

Unfortunately I cannot reproduce it with the statusbar-sample extension. The last thing I would try is to start VS Code using fresh user data and extensions directories and check. You can do this from CLI
code --user-data-dir <folder1> --extensions-dir <folder-2>

@VSCodeTriageBot
Copy link
Collaborator

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

5 participants