Fork me on GitHub
#joyride
<
2022-06-23
>
Ivan Koz06:06:50

How can I change this map vscode/window.activeTextEditor.options I'm not sure how to work with JS object.

pez06:06:01

Something like:

(set! (.-cursorStyle vscode/window.activeTextEditor.options) 2)
Is that what you are looking for? You can also construct a new options object and assign that:
(set! (.-options vscode/window.activeTextEditor) (clj->js (assoc (js->clj vscode/window.activeTextEditor.options :keywordize-keys true) :cursorStyle 2)))

Ivan Koz06:06:11

Perfect, thank you!