Fix making Problems from AetherProblems with no range
This commit is contained in:
parent
663c220eaf
commit
e0dafc571a
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module.exports = class Problem
|
||||||
{ @lineMarkerRange, @textMarkerRange } = @buildMarkerRangesFromAetherProblem(@aetherProblem) if isCast
|
{ @lineMarkerRange, @textMarkerRange } = @buildMarkerRangesFromAetherProblem(@aetherProblem) if isCast
|
||||||
|
|
||||||
{ @level, @range, @message, @hint, @userInfo } = @aetherProblem
|
{ @level, @range, @message, @hint, @userInfo } = @aetherProblem
|
||||||
{ @row, @column: col } = @aetherProblem.range?[0]
|
{ @row, @column: col } = @aetherProblem.range?[0] or {}
|
||||||
@createdBy = 'aether'
|
@createdBy = 'aether'
|
||||||
else
|
else
|
||||||
unless userCodeHasChangedSinceLastCast
|
unless userCodeHasChangedSinceLastCast
|
||||||
|
|
Reference in a new issue