Core: Rename index.ts to completionUtils.ts in Loki monaco completion provider (#79253)

Rename index.ts to completionUtils.ts in Loki monaco completion provider

This is a follow up to #76374. The name `index.ts` is not matching with
the pattern in the whole project as per the original discussion. It was
noted in https://github.com/grafana/grafana/pull/76080#discussion_r1352812657
This commit is contained in:
Shabeeb Khalid
2023-12-12 15:19:50 +02:00
committed by GitHub
parent b232c64d9a
commit 8bf5cdcf0c
3 changed files with 2 additions and 3 deletions
@@ -12,8 +12,8 @@ import { useTheme2, ReactMonacoEditor, Monaco, monacoTypes, MonacoEditor } from
import { Props } from './MonacoQueryFieldProps';
import { getOverrideServices } from './getOverrideServices';
import { getCompletionProvider, getSuggestOptions } from './monaco-completion-provider';
import { CompletionDataProvider } from './monaco-completion-provider/CompletionDataProvider';
import { getCompletionProvider, getSuggestOptions } from './monaco-completion-provider/completionUtils';
import { placeHolderScopedVars, validateQuery } from './monaco-completion-provider/validation';
const options: monacoTypes.editor.IStandaloneEditorConstructionOptions = {
@@ -6,11 +6,10 @@ import { LokiDatasource } from '../../../datasource';
import { createLokiDatasource } from '../../../mocks';
import { CompletionDataProvider } from './CompletionDataProvider';
import { calculateRange } from './completionUtils';
import { getAfterSelectorCompletions, getCompletions } from './completions';
import { getSituation, Label, Situation } from './situation';
import { calculateRange } from './index';
jest.mock('../../../querybuilder/operations', () => ({
explainOperator: () => 'Operator docs',
}));