We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent98a9aa1 commit2f59cd0Copy full SHA for 2f59cd0
site/src/modules/apps/useAppLink.ts
@@ -50,7 +50,19 @@ export const useAppLink = (
50
// an error message will be displayed.
51
constopenAppExternallyFailedTimeout=500;
52
constopenAppExternallyFailed=setTimeout(()=>{
53
-displayError(`${label} must be installed first.`);
+// Check if this is a JetBrains IDE app
54
+constisJetBrainsApp=
55
+app.url&&
56
+(app.url.startsWith("jetbrains-gateway:")||
57
+app.url.startsWith("jetbrains:"));
58
+
59
+if(isJetBrainsApp){
60
+displayError(
61
+`To use${label}, you need to have JetBrains Toolbox installed.`,
62
+);
63
+}else{
64
+displayError(`${label} must be installed first.`);
65
+}
66
},openAppExternallyFailedTimeout);
67
window.addEventListener("blur",()=>{
68
clearTimeout(openAppExternallyFailed);