-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
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.
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 !== '') { |
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.
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
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... |
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.
LGTM. The test failure is unrelated to this change, we can use a separate PR to fix the test.
@BoykoAlex thanks for the fix. |
Try to match custom debug event against project name in
BootApp
andDebugSession
.The fix in memory provider is just to avoid errors in the console
Fixes #216