Fix 3146 - editor occassionaly doesn't jump to a line#3147
Conversation
1a6fead to
8ced320
Compare
| } else if (selectedSource.get("error")) { | ||
| this.showMessage(selectedSource.get("error")); | ||
| } else if (this.props.selectedSource !== selectedSource) { | ||
| this.showSourceText(selectedSource, selectedLocation); |
There was a problem hiding this comment.
decided to drop some sourceText refs while i was here
| function isTextForSource(sourceText) { | ||
| return !sourceText.get("loading") && !sourceText.get("error"); | ||
| } | ||
|
|
There was a problem hiding this comment.
this method was not helpful :)
| return { id: source.id, loading: true }; | ||
| } else if (action.status === "error") { | ||
| return { error: action.error, loading: false }; | ||
| return { id: source.id, error: action.error, loading: false }; |
There was a problem hiding this comment.
this fixes a bug where source wasn't getting these field because it couldn't merge w/o an id
8ced320 to
25b61a8
Compare
Codecov Report
@@ Coverage Diff @@
## master #3147 +/- ##
========================================
- Coverage 47.49% 47.3% -0.2%
========================================
Files 97 95 -2
Lines 4009 4004 -5
Branches 825 825
========================================
- Hits 1904 1894 -10
- Misses 2105 2110 +5
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #3147 +/- ##
==========================================
- Coverage 47.49% 47.42% -0.08%
==========================================
Files 97 97
Lines 4009 4013 +4
Branches 825 825
==========================================
- Hits 1904 1903 -1
- Misses 2105 2110 +5
Continue to review full report at Codecov.
|
25b61a8 to
5dd237c
Compare
Associated Issue: #3146
Summary of Changes
This fixes an annoying issue where the debugger would occasionally forget to jump to a line. the issue was that when you wanted to go to a source that was hidden, the first attempt would be to go to the line, then a second attempt would be to move the tab. The second attempt cleared the line number. The fix is to introduce a new action