monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

How may I add HIVE intellisense?

Open zanecola opened this issue 9 years ago • 2 comments

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!

zanecola avatar Jun 15 '17 02:06 zanecola

You can use the APIs the editor provides to register "smartness" providers.

There are some examples for specific providers:

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.

alexdima avatar Jun 15 '17 07:06 alexdima

Thanks that helps a lot!

zanecola avatar Jun 15 '17 07:06 zanecola