mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
## Summary Autocomplete support for ESQL lang. Initially target branch for that PR was [elastic:feature-esql](https://github.com/elastic/kibana/tree/feature-esql) but then we decided to merge it separately. This PR is as copy of #148006 ## Notes: Important: please do `yarn kbn clean & yarn kbn bootstrap` before testing. ## How to update syntax. `antlr` syntax was copied from `ES` and was slightly modified. In case if you need to update it please follow next steps: - modify `esql_parser.g4 `and/or `esql_lexer.g4` files - go to `kbn-monaco` package and execute `bazel clean & npm run build:antlr4ts:painless` - go to /painless_parser.ts file and revert the following change: <img width="478" alt="image" src="https://user-images.githubusercontent.com/20072247/209540586-bb77cad1-a6f0-42fa-9875-025bd4afbace.png"> - do `yarn kbn bootstrap`
24 lines
940 B
TypeScript
24 lines
940 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import './src/register_globals';
|
|
|
|
export { monaco } from './src/monaco_imports';
|
|
export { XJsonLang } from './src/xjson';
|
|
export { SQLLang } from './src/sql';
|
|
export { ESQL_LANG_ID, ESQL_THEME_ID, ESQLLang } from './src/esql';
|
|
export type { ESQLCustomAutocompleteCallbacks } from './src/esql';
|
|
|
|
export * from './src/painless';
|
|
/* eslint-disable-next-line @kbn/eslint/module_migration */
|
|
import * as BarePluginApi from 'monaco-editor/esm/vs/editor/editor.api';
|
|
|
|
import { registerLanguage } from './src/helpers';
|
|
|
|
export { BarePluginApi, registerLanguage };
|
|
export * from './src/types';
|