Skip to content
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

Send files content to Deployment File webview #1489

Merged
merged 6 commits into from
May 1, 2024

Conversation

dotNomad
Copy link
Collaborator

@dotNomad dotNomad commented May 1, 2024

This PR sets up the new Deployment Files webview component with content using File Watchers and our new message conduits.

Intent

Resolves #1342

Type of Change

    • Bug Fix
    • New Feature
    • Breaking Change
    • Documentation
    • Refactor
    • Tooling

Approach

The approach here is two-fold. The homeView sets up:

  • a activeConfigChanged listener that immediately sends the new refreshed include/exclude list, and sets up a file watcher for the currently selected configuration that sends the files again when that configuration changes.
  • sends a refreshed files list whenever a file is created or deleted

We can be a bit more careful about not sending messages, for example, only updating it when the configuration files attribute changes, but I've kept it simple here.

Copy link
Collaborator

@sagerb sagerb left a comment

Choose a reason for hiding this comment

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

This looks exactly like I expected it to, so well done!

@dotNomad dotNomad merged commit 1fd25cc into main May 1, 2024
16 checks passed
@dotNomad dotNomad deleted the dotnomad/project-files-content branch May 1, 2024 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Deployment Files webview component
2 participants