hey,
I'm trying to write script and run it in vscode. is there any way to make autocompletion happen. I'm a clojure/JXA beginner, so e.g showing possible methods on js/Applications would help me a lot. or know what function are available from ObjC
thanks for all the work
@szalaipeti.vagyok Maybe this helps a bit? https://github.com/babashka/obb#explore-app-specific-apis
yes I've seen that. I don't expect the app specific autocompletion.
What I would like is just the js functions.
e.g if I type js/the it shows me js/Application as a possible variable. is that possible?
Perhaps try:
$ obb -e '(js/Object.getOwnPropertyNames js/Application)'
#js ["length" "name" "prototype" "currentApplication"]This also works:
$ obb -e '(js/Object.getOwnPropertyNames js)'
#js ["NaN" "undefined" "Infinity" "$APP" "shadow$provide" "isNaN" "isFinite" "escape" "unescape" "decodeURI" "decodeURIComponent" "encodeURI" "encodeURIComponent" "eval" "globalThis" "parseInt" "parseFloat" "ArrayBuffer" "EvalError" "RangeError" "ReferenceError" "SyntaxError" "TypeError" "URIError" "AggregateError" "Proxy" "Reflect" "JSON" "Math" "console" "Int8Array" "Int16Array" "Int32Array" "Uint8Array" "Uint8ClampedArray" "Uint16Array" "Uint32Array" "Float32Array" "Float64Array" "BigInt64Array" "BigUint64Array" "DataView" "Date" "Error" "Boolean" "Map" "Number" "Set" "Symbol" "WeakMap" "WeakSet" "Object" "Function" "Array" "RegExp" "String" "Promise" "BigInt" "WeakRef" "FinalizationRegistry" "Intl" "__private__" "delay" "Automation" "Progress" "ObjC" "Path" "Library" "Ref" "$" "Application" "ObjectSpecifier" "obb_lib_dir" "run" "obb_brew"]But I understand it's not really optimal. What we need is an nREPL implementation which offers auto-completions
This is possible, but it needs some work, porting it over from other projects
ahh this already helps a lot thank you.