★ wanayoo — archive 1999 https://github.com/microsoft/java-debug/pull/230Nouvelle recherche | Portail wanayoo
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

Fix codeLens for Run/Debug links showing up with latency #230

Merged
merged 3 commits into from Sep 29, 2018

Conversation

@testforstephen
Copy link
Contributor

@testforstephen testforstephen commented Sep 25, 2018

Signed-off-by: Jinbo Wang jinbwan@microsoft.com

It fixes the issue microsoft/vscode-java-debug#438

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
// trigger a background job to update the change to the CompilationUnit. Because of race condition, the resolveMainMethods may read
// an old CompilationUnit. So add some waiting logic to wait the Document Update to finish first.
try {
Job.getJobManager().join(DocumentLifeCycleHandler.DOCUMENT_LIFE_CYCLE_JOBS, new NullProgressMonitor());

This comment has been minimized.

@andxu

andxu Sep 25, 2018
Collaborator

Is there any chance to wait a smaller granularity of jobs of the current file?

This comment has been minimized.

@testforstephen

testforstephen Sep 26, 2018
Author Contributor

@yaohaizh is this possible?

This comment has been minimized.

This comment has been minimized.

@testforstephen

testforstephen Sep 27, 2018
Author Contributor

Don't find the logic to wait on a smaller granularity job yet.

andxu added 2 commits Sep 27, 2018
@andxu
andxu approved these changes Sep 29, 2018
@testforstephen testforstephen merged commit cb9c6b7 into master Sep 29, 2018
3 checks passed
3 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
license/cla All CLA requirements met.
@testforstephen testforstephen deleted the jinbo_bugfix branch Sep 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.