Skip to content

Poll for updated tasks in project panel #1516

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

Merged
merged 1 commit into from
Apr 30, 2025

Conversation

plemarquand
Copy link
Contributor

When a task is updated, added or deleted it is not reflected in the project panel. There are no VS Code APIs that notify on task modification/update/deletion, so poll every 2 seconds and check if the tasks are updated. If they are, refresh the tasks list in the project panel.

When a task is updated, added or deleted it is not reflected in the
project panel. There are no VS Code APIs that notify on task
modification/update/deletion, so poll every 2 seconds and check if the
tasks are updated. If they are, refresh the tasks list in the project
panel.
@plemarquand plemarquand force-pushed the reload-updated-tasks branch from f829b82 to 8c46e0d Compare April 23, 2025 19:53
@plemarquand plemarquand marked this pull request as ready for review April 25, 2025 15:03
@matthewbastien
Copy link
Member

Have you tried adding a file watcher on the tasks.json? Though I suppose other extensions can add or remove tasks at will outside of the tasks.json.

@plemarquand
Copy link
Contributor Author

That was my initial idea, but the tasks the Swift extension provides (Build All, etc...) are liable to change if we want to support changing toolchains/settings on the fly without restarting.

@plemarquand plemarquand merged commit b35b94d into swiftlang:main Apr 30, 2025
16 checks passed
@plemarquand plemarquand deleted the reload-updated-tasks branch April 30, 2025 15:08
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.

3 participants