Change:
this.panelState['multiline'] = this.markersViewModel.multiline; this.panelState['viewMode'] = this.markersViewModel.viewMode; <ins> this.memento.saveMemento(); </ins> super.saveState(); }

Discussion:
<!-- Do Not Delete This! featurerequesttemplate --<!-- Please read our Rules of Conduct: --<!-- Please search existing issues to avoid creating duplicates. --<!-- Describe the feature you'd like. --Currently in latest stable build, the selected item "Show Active File Only" in filter menu of the Problem View will reset after restart VSCode. Please change it to keep this filter item selected permanently until we unselected it.
This option is remembered per folder. Please let me know if you are not seeing this?
In latest stable build v1.83.0, this option still hasn't remembered when restarting VSCode.
Can you please provide steps to reproduce?
already have some open files editors in workspace and also have multiple problems of multiple files. on "More filters..." icon in Problem View then select "Show Active File Only" Problem View has changed to only show the messages for the active file. VSCode then start it. The Problem View has showed all messages for all files opened and the option "Show Active File Only" has not checked/selected anymore. I have changed the Problem View location from Panel to Explorer. I use VSCode on Windows 11.
I cannot reproduce with the steps you mentioned. Can you please share a recording of reproducing the problem?
The Problem View was changed location to Explorer View. ! The "View as Table" option has not remembered either (after restart VSCode). If you can not reproduce those step then fine, I have to do some workaround that by creating an extension to call the commands to select "Show Active File Only" and "View as Table" options when the VSCode startup. Hope someone else has the same issues as me will open these issues again with better explaination. Thanks.
I'm having the same issue. After I enable the "Show Active File Only" filter and then reload my VSCode, the filter will be inactive again.

Here is a screen recording: My VSCode version: Version: 1.85.1 (Universal) Commit: Date: 2023-12-13T09:48:06.308Z Electron: 25.9.7 ElectronBuildId: Chromium: 114.0.5735.289 18.15.0 V8: 11.4.183.29-electron.0 OS: Darwin x64 23.2.0
I do not see in your video that show active file filter is checked like below. Am I missing something in the video? <img width="225" alt="image" src=""
Right in the begining I'm enabling the filter. Looks like GitHub weirdly converted the video and caused a few missing frames. In the original video you can see that I'm enabling the filter. However, after the missing frames you can see "Showing 0 of 3". That indicates the filter is enabled. This files doesn't have these three hidden problems. Therefore I switch to the other file and can see the problems. So far so good. That works as intended. However, then I reload VSCode and suddenly the filter is not set anymore which is why the problems appear again while viewing the file.
Ok got it. I cannot reproduce it. Can you please provide me a simple reproducible set up and steps?
Here is a very simple project to reproduce the issue: I can reproduce the issue using this example project on a macOS machine as well as on a WSL2 machine.
Thanks for the repro project. I followed the steps and the filter is getting restored for me on reload.
Please diagnose the root cause of the issue by running the command and following the instructions. Once you have done that, please update the issue with the results. Happy Coding!
Can you please follow above instructions and provide us with the results?
Ok, I got results. Quo: Issue is reproducible 1 of (all extensions disabled): Issue is still reproducible 2 of (settings resetted to defaults): Issue is not reproducible (troubleshooting finished): Issue is not reproducible anymore So it seems that executing somehow fixes this issue. I expected that these steps will reset everything to the status quo. This was the case for my macOS and Windows VSCode instances.

Side fact: I couldn't execute the troubleshooting while having a WSL2 workspace open. I had to use a normal Windows one.
Addition: I have to do this for every single workspace. In workspaces which I didn't run the troubleshooting, the issue still persists.
Thanks for sharing the results. Yeah, this is know limitation. I suspect something is wrong with state, can you please check following? Open Search View Enable Match Case option Reload window and see if it is still enabled?
a workspace in which I didn't run the troubleshooting yet the problems filter the Match Case otpion window =Problems filter got disabled again but Match Case option is still enabled
Thanks for sharing the info and helping us understanding. Is it just with Active File filter or same with other filters like Show Errors, Show Warnings ?
It affects all filters, Toggle Excluded Files as well
Can you please follow these steps F1 Developer: Log Storage Database Contents F1 Developer: Toggle Developer Tools Open Console Tab where all storage contents are logged Look for following key in Storage: Workspace Map and share the value Toggle the filters and repeat above steps and share the value.
In workspaces which I didn't have run the troubleshooting on yet, this key does not exist. Neither before enabling the filter nor afterwards. btw thank you for the support!
Ok, it explains. I have prepared a fix and will let you know once it is available so that you can verify. Actually, I am surprised how it is working for me .