- Notifications
You must be signed in to change notification settings - Fork16
Initial impl of defaultIde selection setting#522
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Initial impl of defaultIde selection setting#522
Uh oh!
There was an error while loading.Please reload this page.
Conversation
CONTRIBUTING.md Outdated
| ``` | ||
| ./gradlew clean runIDE --args="jetbrains-gateway://connect#type=coder&workspace=dev&agent=coder&folder=/home/coder&url=https://dev.coder.com&token=<redacted>&ide_product_code=IU&ide_build_number=223.8836.41&ide_download_link=https://download.jetbrains.com/idea/ideaIU-2022.3.3.tar.gz" | ||
| ./gradlew clean runIDE --args="jetbrains-gateway://connect#type=coder&workspace=bcpeinhardt&owner=benpeinhardt&agent=dev&folder=/home/coder&url=https://dev.coder.com&token=<redacted>" |
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'll change this back when I'm done messing with it.
github-actionsbot commentedJan 14, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Qodana Community for JVM5 new problems were found
💡 Qodana analysis was run in the pull request mode: only the changed files were checked View the detailed Qodana reportTo be able to view the detailed Qodana report, you can either:
To get -name:'Qodana Scan'uses:JetBrains/qodana-action@v2023.3.2with:upload-result:true Contact Qodana teamContact us atqodana-support@jetbrains.com
|
bcpeinhardt commentedJan 15, 2025
@code-asher I'm not actually sure what the best way to test this is 🤔 |
code-asher left a comment
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.
Makes sense to me!
| importcom.jetbrains.gateway.ssh.IntelliJPlatformProduct | ||
| importcom.jetbrains.gateway.ssh.deploy.DeployException | ||
| importcom.jetbrains.gateway.ssh.util.validateRemotePath | ||
| importcom.jetbrains.rd.generator.nova.PredefinedType |
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.
You probably already see the warning but appears to be unused (I thinkktlint will delete unused imports if you want to try using that)
| // Using contains on the displayable version of the ide means they can be as specific or as vague as they want | ||
| // CL 2023.3.6 233.15619.8 -> a specific Clion build | ||
| // CL 2023.3.6 -> a specific Clion version | ||
| // 2023.3.6 -> a specific version (some customers will on have one specific IDE in their list anyway) |
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.
Typo I think inwill on have (will only have maybe)
| ) | ||
| // Check the provided setting to see if there's a default IDE to set. | ||
| val defaultIde= ides.find { 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.
Qodana will complain aboutit -> since that is the default, although idk how much we should care about Qodana. Possiblyktlint would change this automatically.
Tangent, but I think there is an alias forfind calledfirstOrNull. Kinda surprised there is noindexOfFirstOrNull, onlyindexOfFirst.indexOfFirst().takeIf { it >= 0 } would work around that I guess.
Anyway, no need to change to those, more that I nerd sniped myself. 😆
| row(CoderGatewayBundle.message("gateway.connector.settings.default-ide")) { | ||
| textField().resizableColumn().align(AlignX.FILL) | ||
| .bindText(state::defaultIde) | ||
| .comment("The default IDE version to display in the IDE selection dropdown."+ |
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 wonder if we need to make mention that JetBrains by default only shows the latest version (latest stable and latest EAP I think, right?), so as soon as JetBrains updates their list this setting may become obsolete unless they are using just the IDE name or year.
But, maybe this option will only be used by folks that have provided their own list instead of fetching from JetBrains, so that might not be an issue.
code-asher commentedJan 17, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I think we have no way to test this view really, but I suppose one could extract the list model and test that part. I did a similar thing with the workspace selection list. |
d27a65e intomainUh oh!
There was an error while loading.Please reload this page.
No description provided.