mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -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 = [
|
||||
{
|
||||
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: '',
|
||||
label: '// Placeholder for the detected parser',
|
||||
|
@ -184,7 +184,7 @@ async function getAfterSelectorCompletions(
|
||||
isSnippet: true,
|
||||
});
|
||||
|
||||
return [...LINE_FILTER_COMPLETIONS, ...completions];
|
||||
return [...completions];
|
||||
}
|
||||
|
||||
async function getLabelValuesForMetricCompletions(
|
||||
|
Loading…
Reference in New Issue
Block a user