File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -790,12 +790,13 @@ will be reversed."
790790 (dap--send-message
791791 (dap--make-request " source" (list :sourceReference sourceReference))
792792 (dap--resp-handler
793- (-lambda ((&hash " body" (&hash " content" content)))
794- (switch-to-buffer (generate-new-buffer sourceReferenceKey))
795- (insert content)
796- (goto-char (point-min ))
797- (forward-line (1- line))
798- (forward-char column))
793+ (-lambda ((&hash " body" body))
794+ (let ((content (if body (gethash " content" body) " " )))
795+ (switch-to-buffer (generate-new-buffer sourceReferenceKey))
796+ (insert content)
797+ (goto-char (point-min ))
798+ (forward-line (1- line))
799+ (forward-char column)))
799800 (lambda (errmsg )
800801 (message " No source code for %s . Cursor at %s :%s . Error: %s . " name line column errmsg)))
801802 debug-session))))
You can’t perform that action at this time.
0 commit comments