(cherry picked from commit 4be78095c9)
Co-authored-by: Hamas Shafiq <hamas.shafiq@grafana.com>
This commit is contained in:
co-authored by
Hamas Shafiq
parent
51144a427f
commit
e2f3ce1703
@@ -69,12 +69,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 };
|
||||
|
||||
Reference in New Issue
Block a user