Hi there :wave: I want to create a VSCode language...
# development
m
Hi there πŸ‘‹ I want to create a VSCode language plugin for Pants BUILD file (if there's one already, plz let me know), but I'm not familiar with Pants code source yet. I want to extract the functions/metadata available for the BUILD file, any suggestions to save some time on my side?
πŸ™ 3
πŸ’ͺ 2
f
it's just a special python file that's eval'd with some automatic imports, iirc; so i've just set it to python and ignored some errors in the past
w
yes: it’s possible to extract symbol information for targets
e
Copy code
$ ./pants help-all | jq ".name_to_target_type_info | keys"
[
  "archive",
  "docker_image",
  "files",
  "pex_binary",
  "python_distribution",
  "python_library",
  "python_requirement_library",
  "python_tests",
  "relocated_files",
  "resources",
  "shell_library",
  "shunit2_tests",
  "target"
]
And you can explore from there.
w
coke
(your answer is actually useful though!)
m
I have everything that I need with that πŸ™‚
πŸ™Œ 1
Thanks!
h
Please let us know if we can help - this would be amazing to have 🀩
πŸ‘ 1
h
Yes, if you're open to open-sourcing this, it sounds incredibly useful!
πŸ‘ 1
m
It was always the plan :)