Skip to content

Commit ca528b2

Browse files
authored
Merge pull request #3342 from mcowger/mccowger/vscodelm
settings(vscode-lm): display VS Code LM unavailable message in settings UI
2 parents b857bc0 + 8827792 commit ca528b2

File tree

24 files changed

+53
-1
lines changed

24 files changed

+53
-1
lines changed

.changeset/lemon-otters-type.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
Improved messaging when VS Code LM is unavailable

webview-ui/src/components/settings/providers/VSCodeLM.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,12 @@ export const VSCodeLM = ({ apiConfiguration, setApiConfigurationField }: VSCodeL
7676
</SelectContent>
7777
</Select>
7878
) : (
79+
/* kilocode_change start */
7980
<div className="text-sm text-vscode-descriptionForeground">
80-
{t("settings:providers.vscodeLmDescription")}
81+
<p>{t("settings:providers.vscodeLmUnavailable")}</p>
82+
<p className="mt-2">{t("settings:providers.vscodeLmUnavailableInstructions")}</p>
8183
</div>
84+
/* kilocode_change end */
8285
)}
8386
</div>
8487
<div className="text-sm text-vscode-errorForeground">{t("settings:providers.vscodeLmWarning")}</div>

webview-ui/src/i18n/locales/ar/settings.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/ca/settings.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/cs/settings.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/de/settings.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/en/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@
251251
"noProviderMatchFound": "No providers found",
252252
"noMatchFound": "No matching profiles found",
253253
"vscodeLmDescription": " The VS Code Language Model API allows you to run models provided by other VS Code extensions (including but not limited to GitHub Copilot). The easiest way to get started is to install the Copilot and Copilot Chat extensions from the VS Code Marketplace.",
254+
"vscodeLmUnavailable": "VS Code Language Model support is only available on Visual Studio Code. Forks such as VSCodium and others may not work. Further, this capability is not available in JetBrains tools.",
255+
"vscodeLmUnavailableInstructions": "Ensure you are using a supported tool and that VS Code Chat is installed and enabled",
254256
"awsCustomArnUse": "Enter a valid Amazon Bedrock ARN for the model you want to use. Format examples:",
255257
"awsCustomArnDesc": "Make sure the region in the ARN matches your selected AWS Region above.",
256258
"openRouterApiKey": "OpenRouter API Key",

webview-ui/src/i18n/locales/es/settings.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/fr/settings.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/hi/settings.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)