command-variable icon indicating copy to clipboard operation
command-variable copied to clipboard

use memento API to persist remembered keys

Open dvirtz opened this issue 1 year ago • 3 comments

VSCode has a dedicated API to persist data: https://code.visualstudio.com/api/references/vscode-api#Memento Using that would solve the caveats with persistent.file described in https://marketplace.visualstudio.com/items?itemName=rioj7.command-variable#settings such as working with a remote workspace

dvirtz avatar Aug 15 '24 15:08 dvirtz

@dvirtz the update method is async and I don't think I can call async stuff in the deactivate method of the extension. VSC has signaled that it is about to remove the extension.

rioj7 avatar Aug 15 '24 16:08 rioj7

I think you can call it on every change instead. Maybe only save it there even.

dvirtz avatar Aug 15 '24 17:08 dvirtz

see, for example, https://marketplace.visualstudio.com/items?itemName=spadin.memento-inputs

dvirtz avatar Aug 15 '24 17:08 dvirtz