Skip to content

Fix #418: Debugger should retry if extension isn't loaded yet #429

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
Jan 12, 2017

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Jan 12, 2017

This change adds retry logic to debugAdapter.ts so that it will check for
the language server's session file once a second for 30 seconds until it
appears. If the file appears debugging will resume, otherwise a specific
error message will be displayed saying that the debugger timed out waiting
for the extension to initialize.

This is a temporary fix until we get to leverage VS Code 1.9.0's new
debugger launch capabilities.

This change adds retry logic to debugAdapter.ts so that it will check for
the language server's session file once a second for 30 seconds until it
appears.  If the file appears debugging will resume, otherwise a specific
error message will be displayed saying that the debugger timed out waiting
for the extension to initialize.

This is a temporary fix until we get to leverage VS Code 1.9.0's new
debugger launch capabilities.
@daviwil daviwil added this to the 0.9.0 milestone Jan 12, 2017
@daviwil daviwil merged commit 5b32676 into master Jan 12, 2017
@daviwil daviwil deleted the daviwil/debug-retry branch January 12, 2017 19:06
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.

2 participants