Skip to content

Commit

Permalink
move painless lang support out of painless_lab
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Oct 16, 2020
1 parent f0e31b8 commit 7965d31
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 47,015 deletions.
7 changes: 0 additions & 7 deletions x-pack/plugins/painless_lab/public/lib/index.ts

This file was deleted.

174 changes: 0 additions & 174 deletions x-pack/plugins/painless_lab/public/lib/monaco_painless_lang.ts

This file was deleted.

9 changes: 1 addition & 8 deletions x-pack/plugins/painless_lab/public/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { PLUGIN } from '../common/constants';

import { PluginDependencies } from './types';
import { getLinks } from './links';
import { LanguageService } from './services';
import { ILicense } from '../../licensing/common/types';

const checkLicenseStatus = (license: ILicense) => {
Expand All @@ -25,8 +24,6 @@ const checkLicenseStatus = (license: ILicense) => {
};

export class PainlessLabUIPlugin implements Plugin<void, void, PluginDependencies> {
languageService = new LanguageService();

public setup(
{ http, getStartServices, uiSettings }: CoreSetup,
{ devTools, home, licensing }: PluginDependencies
Expand Down Expand Up @@ -80,8 +77,6 @@ export class PainlessLabUIPlugin implements Plugin<void, void, PluginDependencie
chrome,
} = core;

this.languageService.setup();

const license = await licensing.license$.pipe(first()).toPromise();
const licenseStatus = checkLicenseStatus(license);

Expand Down Expand Up @@ -117,7 +112,5 @@ export class PainlessLabUIPlugin implements Plugin<void, void, PluginDependencie

public start() {}

public stop() {
this.languageService.stop();
}
public stop() {}
}
Loading

0 comments on commit 7965d31

Please sign in to comment.