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:
+1
-1
@@ -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 = {
|
||||
|
||||
+1
-2
@@ -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',
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user