Skip to content

Commit

Permalink
Merge branch 'app/painless' of github.com:elastic/kibana into app-pai…
Browse files Browse the repository at this point in the history
…nless/doc-links

* 'app/painless' of github.com:elastic/kibana:
  [Painless] Language Service (elastic#60612)
  i18n

# Conflicts:
#	x-pack/plugins/painless_lab/public/plugin.tsx
  • Loading branch information
jloleysens committed Mar 20, 2020
2 parents 5f67bd0 + ec81bf6 commit a0dd19c
Show file tree
Hide file tree
Showing 9 changed files with 246 additions and 204 deletions.
2 changes: 2 additions & 0 deletions packages/kbn-ui-shared-deps/monaco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import 'monaco-editor/esm/vs/base/worker/defaultWorkerFactory';
import 'monaco-editor/esm/vs/editor/browser/controller/coreCommands.js';
import 'monaco-editor/esm/vs/editor/browser/widget/codeEditorWidget.js';

import 'monaco-editor/esm/vs/editor/contrib/wordOperations/wordOperations.js'; // Needed for word-wise char navigation

import 'monaco-editor/esm/vs/editor/contrib/suggest/suggestController.js'; // Needed for suggestions
import 'monaco-editor/esm/vs/editor/contrib/hover/hover.js'; // Needed for hover
import 'monaco-editor/esm/vs/editor/contrib/parameterHints/parameterHints.js'; // Needed for signature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const ContextTab: FunctionComponent = () => {
<EuiFormRow
label={
<EuiToolTip
content={i18n.translate('xpack.painlessLab.queryFieldLabel', {
content={i18n.translate('xpack.painlessLab.queryFieldTooltipText', {
defaultMessage:
'Use query to specify that that _score will be used to calculate score.',
})}
Expand Down
195 changes: 0 additions & 195 deletions x-pack/plugins/painless_lab/public/application/register_painless.ts

This file was deleted.

5 changes: 2 additions & 3 deletions x-pack/plugins/painless_lab/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
*/

import './styles/_index.scss';
import { PluginInitializerContext } from 'src/core/public';
import { PainlessLabUIPlugin } from './plugin';

export function plugin(ctx: PluginInitializerContext) {
return new PainlessLabUIPlugin(ctx);
export function plugin() {
return new PainlessLabUIPlugin();
}
7 changes: 7 additions & 0 deletions x-pack/plugins/painless_lab/public/lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

export { monacoPainlessLang } from './monaco_painless_lang';
Loading

0 comments on commit a0dd19c

Please sign in to comment.