vs-make-hidden icon indicating copy to clipboard operation
vs-make-hidden copied to clipboard

If settings.json exists and contains other settings (or is completely blank), Make Hidden doesn't work

Open my1e5 opened this issue 2 years ago • 1 comments

In my project, I already had a .vscode/ folder and a settings.json file. And the settings.json file already contained other settings (but not a "files.exclude" entry). But then, when I try to RightClick + Hide on a file, nothing happens? The file is not hidden and settings.json doesn't populate with a "files.exclude" entry. But, I've found that if I delete all the other settings in settings.json so the file is essentially blank, with just two brackets

{

}

then in this case Make Hidden does work and creates a "files.exclude" as expected. Note that if settings.json is completely blank -- without even the two brackets { } -- then in this case Make Hidden also doesn't work.

I'm using Make Hidden v4.0.4

VSCode version/OS info

Version: 1.73.0 (user setup)
Commit: 8fa188b2b301d36553cbc9ce1b0a146ccb93351f
Date: 2022-11-01T15:34:06.111Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19044
Sandboxed: No

my1e5 avatar Nov 09 '22 15:11 my1e5

I was happy to find this extension, then sad after finding this issue :(

harkairt avatar May 01 '23 16:05 harkairt