-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Infrastructure for mounting more than one webview at a time #12382
Conversation
Forgot to mention, I also upgraded Mocha. This was necessary to fix this bug: Skipped tests were causing the mounted web panels to not be cleaned up because the setup function for the skipped tests would run but the teardown wouldn't. |
@@ -75,11 +75,11 @@ suite('Daemon', () => { | |||
); | |||
}); | |||
teardown(() => { | |||
pythonProc.kill(); | |||
pythonProc?.kill(); |
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.
pythonProc?.kill(); | |
pythonProc?.kill(); // NOSONAR |
if (connection) { | ||
connection.dispose(); | ||
} | ||
pythonDaemon.dispose(); | ||
pythonDaemon?.dispose(); |
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.
pythonDaemon?.dispose(); | |
pythonDaemon?.dispose(); // NOSONAR |
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.
Hmm, guess we have ignored Sonar analysis for some files
const response = waitForMessageResponse(ioc, () => exportButton!.simulate('click')); | ||
await waitForPromise(response, 100); | ||
exportButton!.simulate('click'); | ||
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.
This change and the one below (copyToSource) seem like ordering changes. Were the waits just not needed?
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 got rid of waitForMessageResponse. It was rather hacky. However in this case the wait for not doing export still has to be there.
In reply to: 441176542 [](ancestors = 441176542)
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
For #11445
In order to get a functional test that opens an interactive window and a notebook, I had to refactor all of our webview stuff in the tests to not assume a single instance.
This PR is about creating just this change (test isn't there yet for testing both at the same time).
This was accomplished by creating a new service that mounts the webview.