mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Tempo: Wrap the autocomplete value for a tag in double quotes (#55610)
This commit is contained in:
parent
ff7225745a
commit
4be78095c9
@ -75,12 +75,13 @@ export default class TempoLanguageProvider extends LanguageProvider {
|
||||
tagName = tagName.split('=')[0];
|
||||
|
||||
const response = await this.request(`/api/search/tag/${tagName}/values`, []);
|
||||
|
||||
const suggestions: CompletionItemGroup[] = [];
|
||||
|
||||
if (response && response.tagValues) {
|
||||
suggestions.push({
|
||||
label: `Tag Values`,
|
||||
items: response.tagValues.map((tagValue: string) => ({ label: tagValue })),
|
||||
items: response.tagValues.map((tagValue: string) => ({ label: tagValue, insertText: `"${tagValue}"` })),
|
||||
});
|
||||
}
|
||||
return { suggestions };
|
||||
|
Loading…
Reference in New Issue
Block a user