-
Notifications
You must be signed in to change notification settings - Fork 62
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: disconnect extension when server is closed VSCODE-536 #734
Conversation
Are we going to continue this pr re #737 ? |
@Anemy you probably missed it during standup, yes this PR was in the debug mode therefore there are some prints around. I will clean this and ping you when ready to take a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, left a question/small comment or two
src/test/suite/oidc.test.ts
Outdated
@@ -398,6 +406,7 @@ suite('OIDC Tests', function () { | |||
} | |||
|
|||
await reAuthPromise; | |||
await sleep(100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this sleep now? Can this be down without it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to ensure here that it is enough time to capture the closing event. Let's try without sleeps, and see how tests react.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah we do need sleep here otherwise the connection Is not yet closed, but I cleaned up some other places that you have mentioned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of sleep
we can use something like a waitFor
with a timeout that keeps increasing, that way we will complete in 5ms if the end condition is already met.
Description
Bump some minor dependencies and fix VSCODE-536.
Checklist
Motivation and Context
Types of changes