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:
David
2019-12-31 08:56:57 +01:00
committed by GitHub
parent 649fa6789e
commit 334b89f3ee
4 changed files with 29 additions and 7 deletions

View File

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