-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allowing users to update the workspace if they edit the project devfile in VS Code #18670
Comments
I'm thinking about having some kind of rollback in case the user mistype something. |
I think we should implement it as simple as possible first, then we can improve the behaviour step by step. |
As we now have the VS Code command for restarting a DevWorkspace, the next step we can add to this UX is checking if the user's Devfile was modified. If it was, the user could be prompted to restart the DevWorkspce in one of the two modes:
WDYT? |
For confirmation: this is not about adding a file watcher mechanism and it's not about prompting the user when he edits the file right? And maybe, to avoid making "restart" too smart, we could initially add a separate "restart from local devfile" action. |
That's correct.
+1 |
I use DevWorkspace Generator library to generate new content based on the devfile changes. It helps to generate a new But it's still unclear for me how to get editor description on a VS Code extension side when |
I've added an ability to apply devfile changes and restart a workspace by using @l0rd @azatsarynnyy I'm concerned a little how to avoid annoying behaviour.
Yes, I know that there is |
@RomanNikitenko see the comment above: #18670 (comment) I believe the work is done and we can close this issue. |
Is your enhancement related to a problem? Please describe.
When editing a project devfile in VS Code, the workspace doesn’t get updated automatically.
Describe the solution you'd like
VS Code should watch for changes (including creation or deletion) of devfile.yaml and .devfile.yaml and when it happens propose to the user:
Note: to update the DevWorkspace VS Code should use the devworkspace-generator library
The text was updated successfully, but these errors were encountered: