mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Fix label value suggestion (#21294)
* Prometheus: Fix label value suggestion - remove quotes from typeahead input to suggest correct label values - fix acceptance of partial label values * Disable mid-word suggestions * Fix test
This commit is contained in:
@@ -301,7 +301,7 @@ describe('Language completion provider', () => {
|
||||
instance.lookupsDisabled = false;
|
||||
const value = Plain.deserialize('{job!=}');
|
||||
const ed = new SlateEditor({ value });
|
||||
const valueWithSelection = ed.moveForward(8).value;
|
||||
const valueWithSelection = ed.moveForward(6).value;
|
||||
const result = await instance.provideCompletionItems({
|
||||
text: '!=',
|
||||
prefix: '',
|
||||
|
||||
Reference in New Issue
Block a user