-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: call frame names appearing duplicated,
this
not appearing (#158)
* fix: call frame names appearing duplicated, `this` not appearing Fixes #150 - We always used the scope name as the reported name to VS Code, but there might be multiple scope names of different types. - Also in the issue, I noticed that `this` wasn't present. In the old adapters, we always add `this` to the top call scope. In PWA that was only happening if the top scope was `local` (and we never tried to add it anywhere if that wasn't the case). The most technically correct thing to do would be to show it at the nearest `local` scope, but I think showing it at the top is more useful and is what people are used to. * fixup! update unit tests
- Loading branch information
1 parent
89d0519
commit 0a41897
Showing
9 changed files
with
18 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
|
||
foo @ <eval>/VM<xx>:4:11 | ||
> scope #0: foo | ||
> scope #0: Local: foo | ||
n: 0 | ||
> this: Window | ||
scope #1: Global [expensive] | ||
|
||
bar @ <eval>/VM<xx>:13:15 | ||
> scope #0: bar | ||
> scope #0: Local: bar | ||
n: 0 | ||
> this: Window | ||
scope #1: Global [expensive] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters