Skip to content

Commit b68fb67

Browse files
fix: improve JetBrains error message to mention Toolbox requirement
When users try to open JetBrains IDEs (GoLand, IntelliJ, etc.) without having JetBrains Toolbox installed, they now receive a more helpful error message that specifically mentions the Toolbox requirement instead of the generic 'must be installed first' message. Fixes #17786 Co-authored-by: kylecarbs <7122116+kylecarbs@users.noreply.github.com>
1 parent be4f5ef commit b68fb67

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

site/src/modules/apps/useAppLink.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,17 @@ export const useAppLink = (
5050
// an error message will be displayed.
5151
const openAppExternallyFailedTimeout = 500;
5252
const openAppExternallyFailed = setTimeout(() => {
53-
displayError(`${label} must be installed first.`);
53+
// Check if this is a JetBrains IDE app
54+
const isJetBrainsApp = app.url && (
55+
app.url.startsWith("jetbrains-gateway:") ||
56+
app.url.startsWith("jetbrains:")
57+
);
58+
59+
if (isJetBrainsApp) {
60+
displayError(`To use ${label}, you need to have JetBrains Toolbox installed.`);
61+
} else {
62+
displayError(`${label} must be installed first.`);
63+
}
5464
}, openAppExternallyFailedTimeout);
5565
window.addEventListener("blur", () => {
5666
clearTimeout(openAppExternallyFailed);

0 commit comments

Comments
 (0)