cloudwatch: use monaco from grafana-ui (#45597)

This commit is contained in:
Gábor Farkas 2022-02-18 17:14:14 +01:00 committed by GitHub
parent 175891a5e3
commit 78c35e6000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,6 @@ import { getTemplateSrv } from '@grafana/runtime';
import { CloudWatchDatasource } from '../../datasource';
import cloudWatchMetricMathLanguageDefinition from '../definition';
import { Monaco, monacoTypes } from '@grafana/ui';
import { IPosition } from 'monaco-editor';
import {
METRIC_MATH_FNS,
METRIC_MATH_KEYWORDS,
@ -15,7 +14,7 @@ import {
} from '../language';
import * as MetricMathTestData from '../../__mocks__/metric-math-test-data';
const getSuggestions = async (value: string, position: IPosition) => {
const getSuggestions = async (value: string, position: monacoTypes.IPosition) => {
const setup = new MetricMathCompletionItemProvider(
{
getVariables: () => [],