-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Review CustomExecution Lifecycle #9418
Comments
VS Code seems to clean up some the executions of the tasks from
Tasks get a stable, computed id, so when re-contributing a task with the same id, the custom execution would get overwritten. This still feels like a memory-leak to me, since the set of contributed tasks can grow and shrink (and there seems to be no cleanup for that case). The cleanup upon completion of a task from
We have token that represents the scope of a user action in the task system (like invoking "Run Task..."). We know that this token will be renewed before the user starts a task related action. All tasks will be contributed again during such an action, all non-contributed tasks will be re-resolved before being executed. In this way, we'll hold on to the custom executions from the last time tasks were contributed, but this set is finite and will be cleaned up when we start the next task action. @alvsan09 @vince-fugnitto @RomanNikitenko your do you think this is a valid approach? |
It is unclear what the lifecycle for CustomExecution objects related to tasks should be: there is no explicit disposal of these objects. We should ask for clarification from the VS Code team or inspect the VS Code source to find out and implement the necessary steps in Theia.
The text was updated successfully, but these errors were encountered: