feat: improve AppLink error message for coder:// URLs (#18444)

Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
Co-authored-by: Dean Sheather <dean@deansheather.com>
This commit is contained in:
Atif Ali
2025-06-20 13:07:20 +05:00
committed by GitHub
parent bacdc28881
commit d788ab9e55
+7
View File
@@ -56,10 +56,17 @@ export const useAppLink = (
(app.url.startsWith("jetbrains-gateway:") ||
app.url.startsWith("jetbrains:"));
// Check if this is a coder:// URL
const isCoderApp = app.url?.startsWith("coder:");
if (isJetBrainsApp) {
displayError(
`To use ${label}, you need to have JetBrains Toolbox installed.`,
);
} else if (isCoderApp) {
displayError(
`To use ${label} you need to have Coder Desktop installed`,
);
} else {
displayError(`${label} must be installed first.`);
}