Fork me on GitHub
#joyride
<
2022-07-05
>
pinkfrog02:07:20

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.

pinkfrog03:07:57

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.

pinkfrog08:07:48

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

pez09:07:04

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))

pinkfrog09:07:55

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.

pez09:07:05

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