https://pantsbuild.org/ logo
#development
Title
# development
c

curved-television-6568

01/16/2023, 1:35 AM
Hacking on the explorer graphql API (and frontend)
image.png
w

wide-midnight-78598

01/16/2023, 1:36 AM
Hey, unrelated to this exactly - but could the Explorer be put into the VS Code plugin?
c

curved-television-6568

01/16/2023, 1:38 AM
frontend re-work, using svelte rather than React, gives a lot less and easier to work with code šŸ™‚ (theme/colors tbd)
@wide-midnight-78598 care to elaborate slightly, I’ve no clue what that is/what it would look like..
w

wide-midnight-78598

01/16/2023, 1:39 AM
Me neither, but having a Pants documentation explorer directly in VS Code seems useful. Like, a tree-view menu, which goes through all available subsystems, goals, etc
c

curved-television-6568

01/16/2023, 1:39 AM
Ah, yea sure. as long as the backend server is up and running, the vs code plugin could issue graphql queries to get the data to present somehow…
šŸ‘ 1
w

wide-midnight-78598

01/16/2023, 1:40 AM
Awesome
c

curved-television-6568

01/16/2023, 1:41 AM
Maayybee… vs code can present something like an iframe..? in which case you could pull in the explorer ui directly in vscode.
would reduce duplicated efforts in the area…
unless there’s good frameworks in place already, as the api will be there regardless…
w

wide-midnight-78598

01/16/2023, 1:42 AM
So, the docs themselves would be whatever the VS Code equivalent of an iframe is (which I believe they have). The side nav part, if it can hook into auto-complete, would be pretty slick
Err, auto-find, or whatever that command palette is called
c

curved-television-6568

01/16/2023, 1:43 AM
we can have pretty slick search features in the api, to support feeding the data we want to whereever, I’m all into that šŸ™‚ (not using VS code myself though… so I would stay on the backend side of the fence šŸ˜› )
šŸ‘ 1
right now, I’ve only added pretty basic regexp filtering on names and the like + limit number of results returned, just to have something.
Subsystem docs… šŸ˜‰ This will include docs for any private plugins etc you may have.. cc @bitter-ability-32190
ā€œpeekā€ info from your project (and a terrible color theme.. šŸ˜› )
image.png