LSP "Language Server Protocol" is used by all developer IDE's to support things like intellisense. LSP provides a common standard between applications so that every code editor doesn't need to write support for every language.
https://microsoft.github.io/language-server-protocol/
There is already an openscad LSP built for vscode and linked below:
openscad
The advantage of implementing the LSP approach to the internal cadhub editor is that it will allow the same editor to quickly drop in LSP providers for even more languages (such as .gcode or .svg)