joyride

dumrat 2022-10-12T17:33:21.480119Z

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

borkdude 2022-10-12T17:43:03.259319Z

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

dumrat 2022-10-12T17:47:00.589799Z

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

pez 2022-10-12T17:47:38.877679Z

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

pez 2022-10-12T17:47:49.980679Z

I think it’s memento based.

borkdude 2022-10-12T17:48:02.305819Z

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

dumrat 2022-10-12T17:55:41.653219Z

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

dumrat 2022-10-12T17:56:56.654379Z

nvm, I just saw this https://github.com/BetterThanTomorrow/joyride/pull/34

borkdude 2022-10-12T18:05:15.066019Z

ah nice

dumrat 2022-10-12T18:11:17.530859Z

woo works nice

dumrat 2022-10-12T18:11:25.815669Z

I can enable disable on the fly now

2
borkdude 2022-10-12T18:11:52.499489Z

niiiice!