Officially confirmed folks, it is possible to get full Language Server support inside of javascript callbacks from within your python files.
Check out this GIF of code completion on a GridApi
object returned from dash_ag_grid.getApi()
, along with a working “jump to definition”:
I wrote a much longer-form post about how I got this working , assuming little to no prior JavaScript tooling experience. Please feel free to leave any feedback or suggestions, I’m still actively working on optimizing this workflow, and would love some input.
So far though, I am so happy with how this works. It allows me to strike a great balance between the extremes of
- all of my clientside function signatures have to be maintained in two places at once to have any semblance of type sanity
- I am just writing JS with no language support whatsoever
See also part 1. You can at least get syntax highlighting in VS Code, but I am a bit stumped as to how you could get something like this working in an editor other than neovim (btw). Gotta love that flexibility!