mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(loki-completions): remove line filters for after pipe case
We shouldn't offer line filters if we are after first pipe.
This commit is contained in:
parent
3ae2769343
commit
3d003ca4bc
@ -34,30 +34,6 @@ const otherLabels: Label[] = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
const afterSelectorCompletions = [
|
const afterSelectorCompletions = [
|
||||||
{
|
|
||||||
insertText: '|= "$0"',
|
|
||||||
isSnippet: true,
|
|
||||||
label: '|= ""',
|
|
||||||
type: 'LINE_FILTER',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
insertText: '!= "$0"',
|
|
||||||
isSnippet: true,
|
|
||||||
label: '!= ""',
|
|
||||||
type: 'LINE_FILTER',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
insertText: '|~ "$0"',
|
|
||||||
isSnippet: true,
|
|
||||||
label: '|~ ""',
|
|
||||||
type: 'LINE_FILTER',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
insertText: '!~ "$0"',
|
|
||||||
isSnippet: true,
|
|
||||||
label: '!~ ""',
|
|
||||||
type: 'LINE_FILTER',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
insertText: '',
|
insertText: '',
|
||||||
label: '// Placeholder for the detected parser',
|
label: '// Placeholder for the detected parser',
|
||||||
|
@ -184,7 +184,7 @@ async function getAfterSelectorCompletions(
|
|||||||
isSnippet: true,
|
isSnippet: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
return [...LINE_FILTER_COMPLETIONS, ...completions];
|
return [...completions];
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getLabelValuesForMetricCompletions(
|
async function getLabelValuesForMetricCompletions(
|
||||||
|
Loading…
Reference in New Issue
Block a user