-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for opening the IDE from DevUI even if the default IDE script doesn't exist #16121
Conversation
I tested this on IntelliJ for both cases where |
final class IdeUtil { | ||
|
||
private IdeUtil() { | ||
} | ||
|
||
static boolean isWindows() { | ||
String os = System.getProperty("os.name"); | ||
return os.toLowerCase(Locale.ENGLISH).startsWith("windows"); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isWindows()
is currently used only in the "ide" package, but it seems not be dependent on only "ide". Isn't it better to change the class name to be more general? like 'SystemUtil' or 'PlatfromUtil'. And since the package '../deploy/util' already exists, wouldn't this class be better to be in it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if the need arises, I'll move it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to do some fixes on Netbeans anyway, so I can change that null back to netbeans.
core/deployment/src/main/java/io/quarkus/deployment/ide/Ide.java
Outdated
Show resolved
Hide resolved
…ript doesn't exist Currently support for this is only added for IntelliJ. Code is opened client side (via the URL handler it installs) so this support isn't needed, Netbeans already used something similar and Eclipse seems to be sort of problematic because we don't have a command which we can test that would not launch the IDE. Fixes: quarkusio#15721
Currently support for this is only added for IntelliJ.
Code is opened client side (via the URL handler it installs)
so this support isn't needed, Netbeans already used something similar
and Eclipse seems to be sort of problematic because we don't have
a command which we can test that would not launch the IDE.
Furthermore this fallback is only tried if the default script does not exist
Fixes: #15721