Skip to content

Opening a file resets global file explorer settings for hidden files under GNOME (Nautilus/Files) #151153

@akilangh

Description

@akilangh

VS Code version: Code 1.67.2 (c3511e6, 2022-05-17T18:23:40.286Z)
OS version: Linux x64 5.13.0-41-generic
Restricted Mode: No

Steps to Reproduce:

  1. Go to Files (Nautilus) and make sure you can see hidden files (dotfiles) by checking the checkbox under Hamburger Menu -> Show Hidden Files.
  2. Go to VS Code
  3. From menu choose File -> Open File...
  4. Open a file or click cancel.
  5. Go to Files (Nautilus). You can no longer see hidden files. The checkbox under Hamburger Menu -> Show Hidden Files is now unchecked.

Some thoughts:
VS Code resets 'show hidden files' setting in KDE too. But KDE resets it only in the file opener dialog box that vscode shows. KDE does not change the settings in KDE's file manager Dolphin or any other app. I can confirm this, since I use KDE on my personal machine.

It could be argued that this is a GNOME problem. To an extent yes, I do not like GNOME's behaviour of changing global preferences because one app wants to do something different in its file dialog.

Nevertheless, it would be nice, and indeed one would expect that VS Code does not change view options when opening the file dialog and respect the defaults that the user has chosen in their desktop environment's settings.

Thoughts?

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)electronIssues and items related to ElectronlinuxIssues with VS Code on Linuxnative-file-dialogIssues with native file dialogupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions