File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,19 @@ export const useAppLink = (
50
50
// an error message will be displayed.
51
51
const openAppExternallyFailedTimeout = 500 ;
52
52
const openAppExternallyFailed = setTimeout ( ( ) => {
53
- displayError ( `${ label } must be installed first.` ) ;
53
+ // Check if this is a JetBrains IDE app
54
+ const isJetBrainsApp =
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
+ }
54
66
} , openAppExternallyFailedTimeout ) ;
55
67
window . addEventListener ( "blur" , ( ) => {
56
68
clearTimeout ( openAppExternallyFailed ) ;
You can’t perform that action at this time.
0 commit comments