Skip to content

Commit b55ffb2

Browse files
committed
Change the display of the default
1 parent e7d2e4d commit b55ffb2

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,13 @@ const ApiOptions = ({
935935
<SelectValue placeholder={t("settings:common.select")} />
936936
</SelectTrigger>
937937
<SelectContent>
938-
<SelectItem value="default">{t("settings:toolProtocol.default")}</SelectItem>
938+
<SelectItem value="default">
939+
{t("settings:toolProtocol.default")} (
940+
{defaultProtocol === TOOL_PROTOCOL.NATIVE
941+
? t("settings:toolProtocol.native")
942+
: t("settings:toolProtocol.xml")}
943+
)
944+
</SelectItem>
939945
<SelectItem value={TOOL_PROTOCOL.XML}>
940946
{t("settings:toolProtocol.xml")}
941947
</SelectItem>
@@ -946,16 +952,6 @@ const ApiOptions = ({
946952
</Select>
947953
<div className="text-sm text-vscode-descriptionForeground mt-1">
948954
{t("settings:toolProtocol.description")}
949-
{!apiConfiguration.toolProtocol && (
950-
<>
951-
{" "}
952-
<span className="text-vscode-foreground">
953-
{t("settings:toolProtocol.currentDefault", {
954-
protocol: defaultProtocol,
955-
})}
956-
</span>
957-
</>
958-
)}
959955
</div>
960956
</div>
961957
)}

0 commit comments

Comments
 (0)