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:
Matias Chomicki 2022-10-05 17:42:23 +02:00
parent 3ae2769343
commit 3d003ca4bc
2 changed files with 1 additions and 25 deletions

View File

@ -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',

View File

@ -184,7 +184,7 @@ async function getAfterSelectorCompletions(
isSnippet: true,
});
return [...LINE_FILTER_COMPLETIONS, ...completions];
return [...completions];
}
async function getLabelValuesForMetricCompletions(