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 spinning wheel in boot apps view #338

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

BoykoAlex
Copy link
Contributor

@BoykoAlex BoykoAlex commented Mar 28, 2024

Try to match custom debug event against project name in BootApp and DebugSession.
The fix in memory provider is just to avoid errors in the console

Fixes #216

Copy link
Member

@Eskibear Eskibear left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks Alex!

@testforstephen please help to verify.

@@ -153,7 +153,7 @@ export class MemoryViewProvider implements vscode.WebviewViewProvider {
case "FetchData": {
const type = message.type;
if (processKey === '') {
processKey = this.storeLiveProcesses.values().next().value.liveProcess.processKey;
processKey = this.storeLiveProcesses.values().next().value.liveProcess?.processKey;
}
if (type !== '' && type === "Heap Memory" && processKey !== undefined && processKey !== '') {
Copy link
Member

Choose a reason for hiding this comment

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

type !== '' && type === "Heap Memory"

type !== '' is obviously unnecessary. A lot of chaos in conditional checks, we might fix that in a separate PR, gracefully checking whether type of processkey is null or empty. @testforstephen

@BoykoAlex
Copy link
Contributor Author

BoykoAlex commented Mar 31, 2024

Likely custom debug event with PID and debug session started event were coming in reverse order in the past, i.e. debug session started first and then custom debug event with PID...

Copy link
Contributor

@testforstephen testforstephen left a comment

Choose a reason for hiding this comment

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

LGTM. The test failure is unrelated to this change, we can use a separate PR to fix the test.

@testforstephen testforstephen merged commit da1c7e5 into microsoft:main Apr 2, 2024
1 of 4 checks passed
@testforstephen
Copy link
Contributor

@BoykoAlex thanks for the fix.

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.

Spring boot Dashboard keep spinning
3 participants