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: Disposal Logic + Error toast #175

Merged
merged 13 commits into from
Nov 15, 2024
Merged

fix: Disposal Logic + Error toast #175

merged 13 commits into from
Nov 15, 2024

Conversation

bmingles
Copy link
Collaborator

@bmingles bmingles commented Nov 13, 2024

Copy link

github-actions bot commented Nov 13, 2024

End-to-end Test Summary

Tests 📝Passed ✅Failed ❌Skipped ⏭️Pending ⏳Other ❓Flaky 🍂Duration ⏱️
660000004:41:38
A ctrf plugin

Detailed Test Results

NameStatusmsFlaky 🍂
should default to the correct settingspassed ✅1905
should return custom settings: Empty configspassed ✅121
should return custom settings: Populated configspassed ✅78
should be able to load VSCodepassed ✅1003
should only be visible when a supported file type is active: test.groovypassed ✅2619
should only be visible when a supported file type is active: test.pypassed ✅962
A ctrf plugin

Failed Test Summary

No failed tests ✨

Flaky Test Summary

No flaky tests detected. ✨

@bmingles bmingles changed the title fix: Cleanup subscriptions fix: Cleanup subscriptions + Error toast Nov 13, 2024
@@ -382,6 +404,7 @@ export class ExtensionController implements Disposable {

this._serverManager.onDidDisconnect(
serverUrl => {
this._panelService?.clearServerData(serverUrl);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes #145

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved out of utils

* @returns Promise that resolves when the poll function returns true + a `reject`
* function that can be used to cancel the polling.
*/
export function pollUntilTrue(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved out of utils to fix circular dependency

@bmingles bmingles marked this pull request as ready for review November 13, 2024 18:31
@bmingles bmingles changed the title fix: Cleanup subscriptions + Error toast fix: Disposal Logic + Error toast Nov 13, 2024
): Promise<ConnectionState[]> {
const filteredConnections: ConnectionState[] = [];

for await (const connection of iterateConnectionsForConsoleType(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never used this syntax before, TIL.

@bmingles bmingles merged commit 5d844b0 into main Nov 15, 2024
4 checks passed
@bmingles bmingles deleted the 152-connection-cleanup branch November 15, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants