Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DO NOT MERGE] Toolbox refactor#478

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

Draft
code-asher wants to merge11 commits intomain
base:main
Choose a base branch
Loading
fromasher/toolbox
Draft

Conversation

code-asher
Copy link
Member

@code-ashercode-asher commentedSep 12, 2024
edited
Loading

It must not be merged, because we still need to maintain the old plugin.

I kept as much refactoring as I could in the main branch, so the changes here are as minimal as I could make them. It is essentially a loop that polls for workspaces, plus some pages that return fields to implement a sign-in, and then filling out various trivial interfaces, so this PR is pretty simple in the end really.

There are a few TODOs that still need to be addressed. The ones suffixed with@JB are waiting for responses from JetBrains.

You will notice no new tests. There was no documentation on how this was to be done, and I think mocking out the Toolbox portion would be unfortunate because the main part I have concerns about is where we interact with Toolbox, and how it interacts with us, and mocking would remove that interaction. It would be less a concern if I could read their source to validate my mocks though...definitely open to thoughts on all this.

Also, CI is probably broken. Need to look at that later.


```
./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"
jetbrains://gateway/com.coder.gateway/connect?workspace=dev&agent=coder&url=https://dev.coder.com&token=<redacted>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks like we have to update our gateway module too.
Or should we create a new one to support this workflow?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Good point, probably a new one because I think we will have to maintain both standalone Gateway and Toolbox for a while.

matifali reacted with thumbs up emoji
I kept our core code intact as much as possible, but this is technicallyan entirely different plugin now.
This way, we can show our status labels.
It looks like you have to use the per-environment listener.  My guess isthat they do not update an environment if the ID is the same.  I madethe environment comparable, which also lets use use a set instead.
The rest (publishing) is a todo.
You can now start, stop, and update workspaces.  Since you can startworkspaces yourself now, I marked non-ready states as unreachable, whichprevents JetBrains from overriding with their own text ("disconnected"and "connected").  So now you will be able to see "stopped", "starting",and so on.  For the ready states you will still see "disconnected" or"connected" unfortunately.  Ideally this would be a completely separatestate displayed next to the workspace state.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@matifalimatifalimatifali left review comments

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@code-asher@matifali

[8]ページ先頭

©2009-2025 Movatter.jp