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

Add new API 'onWillUpdate()' to IBuildSupport #2836

Merged
merged 3 commits into from
Oct 8, 2023

Conversation

jdneo
Copy link
Contributor

@jdneo jdneo commented Sep 6, 2023

  • A new API 'onWillUpdate()' is added to IBuildSupport, which can be used to do some preparation work before updating the project configuration. For example: For the Build Server support, send a reload request to Build Server, then do the real update task in 'update()'.
  • When a bunch of projects need to be updated, extract out the invocation of 'registerWatchers()' and 'updateEncoding()'. See: ProjectsManager#updateProjects(Collection, boolean force).

@jdneo jdneo marked this pull request as ready for review September 7, 2023 06:52
@jdneo jdneo changed the title [WIP] Add new API 'onWillUpdate()' to IBuildSupport Add new API 'onWillUpdate()' to IBuildSupport Sep 7, 2023
- A new API 'onWillUpdate()' is added to IBuildSupport, which can be used
  to do some preparation work before updating the project configuration.
  For example: For the Build Server support, send a reload request to Build
  Server, then do the real update task in 'update()'.
- When a bunch of projects need to be updated, extract out the invocation
  of 'registerWatchers()' and 'updateEncoding()'. See:
  ProjectsManager#updateProjects(Collection<IProject>, boolean force).

Signed-off-by: Sheng Chen <[email protected]>
Signed-off-by: Sheng Chen <[email protected]>
@jdneo jdneo merged commit 4a9e489 into eclipse-jdtls:master Oct 8, 2023
6 of 9 checks passed
@jdneo jdneo deleted the cs/onWillUpdate branch October 8, 2023 06:54
@rgrunber rgrunber added this to the End October 2023 milestone Oct 24, 2023
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