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

Automatically start workspace if started and not running#583

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

Merged

Conversation

EhabY
Copy link
Collaborator

Closes#582

Now it'll attempt to start the workspace when clicking on the "play" button or reloading a window that is already connected.

Currently when building we show a terminal with the build progress, this is good, but we can potentially also show a progress indicator between the different steps.

@mtojekmtojek self-requested a reviewSeptember 15, 2025 07:54
Copy link
Member

@mtojekmtojek left a comment

Choose a reason for hiding this comment

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

LGTM!

EhabY reacted with heart emoji
Copy link
Member

@mtojekmtojek left a comment

Choose a reason for hiding this comment

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

I presume it will be hard to cover with unit tests since it is mainly inremote.ts?

@EhabY
Copy link
CollaboratorAuthor

I presume it will be hard to cover with unit tests since it is mainly inremote.ts?

Indeed, and this is heavily using the VS Code API where there are no existing tests for (yet). Currently working a design that would allows us to mock this for tests :)

mtojek and mafredri reacted with rocket emoji

@EhabYEhabYforce-pushed theautomatic-start-workspace-when-starting branch from97c6288 to96109edCompareSeptember 15, 2025 08:22
@EhabYEhabY merged commit9ff3cb6 intocoder:mainSep 15, 2025
2 checks passed
@code-asher
Copy link
Member

code-asher commentedSep 15, 2025
edited
Loading

Ah wait we added this dialog because VS Code was starting user's workspaces automatically on reconnect which users did not want, since it continually kept their workspace up without asking. It basically bypasses cost controls by circumventing auto-stop.

We should only automatically start the workspace if the connection is explicitly started by user action (rather than automatic reconnect).

@code-asher
Copy link
Member

BTW there is an issue for this:#331

@code-asher
Copy link
Member

code-asher commentedSep 15, 2025
edited
Loading

And the original issue for adding the dialog:#309

An alternative (and more ideal) fix to the "start workspace?" dialog would be if we could make VS Code ask before reconnecting if the workspace is off, but not sure if that is possible so we went with the "start workspace?" dialog instead.

@EhabY
Copy link
CollaboratorAuthor

EhabY commentedSep 15, 2025
edited
Loading

Oh nice catch, I wasn't sure if we wanted to reconnect on explicit actions only. I think I can potentially make it automatically only using the "play" button. We can use some memento trickery to detect if this is a "first connect" so that when users press "play" it's automatic, but I am not sure if we can fix it for the recents menu..

code-asher reacted with rocket emoji

@code-asher
Copy link
Member

Yeah the recents menu might be a bust, I think we would have to replace the remote extension with our own so we fully control the whole lifecycle.

Memento is a neat idea!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mtojekmtojekmtojek approved these changes

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

Successfully merging this pull request may close these issues.

Automatically start workplace if started and not currently running
3 participants
@EhabY@code-asher@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp