Fork me on GitHub
#joyride
<
2022-10-12
>
dumrat17:10:21

Is there a way to store/retrieve key value pairs from a joyride script?

borkdude17:10:03

@UC1DTFY1G There are plenty npm libraries around which can do that, right? There is keyv for example

dumrat17:10:00

@U04V15CAJ Sorry, I think I didn't ask correctly. I want to have some storage across multiple invocations of the script.

pez17:10:38

VS Code has API for storing things. Something Global Storage something.

pez17:10:49

I think it’s memento based.

borkdude17:10:02

yes, I assumed that. So you can e.g. use keyv with sqlite or so. But if VSCode has something built-in, go for it

dumrat17:10:41

@U0ETXRFEW That needs an ExtensionContext which I assumed I have no access to

dumrat18:10:17

woo works nice

dumrat18:10:25

I can enable disable on the fly now

metal 2