From 8726450ff89b9c680948ef88f8044fdadeaba229 Mon Sep 17 00:00:00 2001 From: Garo Brik Date: Mon, 1 Feb 2021 11:35:53 -0800 Subject: [PATCH] make all hover alerts non-dismissible --- shared/hover-alerts.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shared/hover-alerts.ts b/shared/hover-alerts.ts index 4ec6ec38e..964e7cfb5 100644 --- a/shared/hover-alerts.ts +++ b/shared/hover-alerts.ts @@ -23,20 +23,20 @@ const partialBadge = makeBadge([ 'Click to learn how to make these results precise by enabling semantic indexing for that project.', ]) +// note: used to have type: 'LSIFAvailableNoCaveat' export const lsif: sourcegraph.Badged = { - type: 'LSIFAvailableNoCaveat', summary: makeSummary('Semantic result.', 'Learn more.'), badge: lsifBadge, } +// note: used to have type: 'LSIFAvailableNoCaveat' export const lsifPartialHoverOnly: sourcegraph.Badged = { - type: 'LSIFAvailableNoCaveat', summary: makeSummary('Partial semantic result: Go to definition may be imprecise.', 'Learn more.'), badge: partialBadge, } +// note: used to have type: 'LSIFAvailableNoCaveat' export const lsifPartialDefinitionOnly: sourcegraph.Badged = { - type: 'LSIFAvailableNoCaveat', summary: makeSummary('Partial semantic result: this hover text may be imprecise.', 'Learn more.'), badge: partialBadge, } @@ -72,13 +72,13 @@ export const searchLSIFSupportRobust: sourcegraph.Badged badge: robustSupportBadge, } +// note: used to have type: 'SearchResultExperimentalLSIFSupport' export const searchLSIFSupportExperimental: sourcegraph.Badged = { - type: 'SearchResultExperimentalLSIFSupport', summary: makeSummary('Search-based result.', 'Learn more.'), badge: experimentalSupportBadge, } +// note: used to have type: 'SearchResultNoLSIFSupport' export const searchLSIFSupportNone: sourcegraph.Badged = { - type: 'SearchResultNoLSIFSupport', summary: makeSummary('Search-based result.', 'Learn more.'), }