joyride

2022-07-05T02:41:20.139129Z

Hi. I created an issue on github https://github.com/BetterThanTomorrow/joyride/issues/79 regarding load/eval current file makes cljs.user to be the active ns.

2022-07-05T03:39:57.666419Z

I’ve a question on how to show all the props of a js object.

(def *l (current-line))
;; (current-line) gives the vscode TextLine object

(js-keys *l) only gives limited output
#js ["_line" "_text" "_isLastLine"]

however, indeed `*l.range` does work so at least the `range` field is missing.

2022-07-05T08:21:48.241289Z

I cross posted an issue (more of a question) on github: https://github.com/BetterThanTomorrow/joyride/issues/80

pez 2022-07-05T09:18:04.841979Z

Yeah, I can reproduce this. Here's a snippet for getting that line:

(def text-line (vscode/window.activeTextEditor.document.lineAt vscode/window.activeTextEditor.selection.active))

2022-07-05T09:24:55.347189Z

Hi pez, what do you mean? My question is about incomplete list of js-keys. I also tried Object.keys, and Object.getOwnPropertyNames(), but none listed keys like range.

pez 2022-07-05T09:32:05.227859Z

Yes, I mean that I can reproduce the problem. I just provided the missing piece for someone else who'd like to examine it.

👍 1