SettingsStoreExplorer icon indicating copy to clipboard operation
SettingsStoreExplorer copied to clipboard

Allow modification under "roaming"

Open smaillet opened this issue 6 years ago • 4 comments

Currently, modification under Roaming is disabled. This should be enabled as it is effectively part of User settings.

smaillet avatar Sep 25 '19 18:09 smaillet

Support for Roaming settings was a bit of a quick hack, so I didn't enable writing. ~~Even so, I don't see methods on the ISettingsManager interface for modifying settings. I will poke around, but I suspect it's not possible.~~

Edit: I see ISettingsManager.SetValueAsync. I will see if that can be used.

pharring avatar Oct 06 '19 16:10 pharring

I got basic editing operations going: Create and modify new values. But I haven't figured out how to delete values which also means that rename doesn't work (rename clones the existing value using the new name and then deletes the old value). I've sent email to the VS feature owner.

pharring avatar Oct 06 '19 17:10 pharring

@pharring

Are you planning on coming back to this again at some time?

yannduran avatar Jun 05 '20 10:06 yannduran

Only if there's overwhelming demand. Here's what I got back from the Settings Store feature owner:

There isn’t a way to delete settings through the settings manager API, sorry. You could call ProfileHttpClient.DeleteAttributeAsync directly (which requires wiring up authentication yourself and also replicating some implementation details of the settings manager around setting name transformations) but I’m not sure that’s exactly the effect you want because it deletes from the online store directly, not the local cache (which is what you’re looking at when you use ISettingsManager).

pharring avatar Jun 10 '20 03:06 pharring