How may I add HIVE intellisense?
Hi Monaco team,
Thanks for the fabulous editor. May I ask if I want to implement an online editor for HIVE(actually SQL) with intelli sense (regarding to the DB structure) and syntax check, what should I do first? Just want to get some ideas, thanks!
You can use the APIs the editor provides to register "smartness" providers.
There are some examples for specific providers:
- completion provider
- hover provider
- our built-in languages use the same APIs e.g. TypeScript/Javascript
The principle is very simple. The UI will adopt to reflect the existing providers for a certain language. For example Go To Definition is not shown in context menus if the language does not have a definition provider, etc. If the language has a definition provider, then the context menu will show the action and invoking the action will result in a call to the definition provider.
Thanks that helps a lot!