Skip to content

Commit

Permalink
Save navigate when attempting to compare paths
Browse files Browse the repository at this point in the history
I have been experiencing an issue where compare path is causing my vscode debugger to be unable to attach. Safe navigating the downcase function seems to have stabilized the issue for me so I figured I would contribute the change back.
  • Loading branch information
rbclark authored and ko1 committed Oct 4, 2022
1 parent de4720f commit 9de5d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/debug/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,7 @@ def self.step_in &b
# depend on the file system. So this check is only roughly estimation.

def self.compare_path(a, b)
a.downcase == b.downcase
a&.downcase == b&.downcase
end
else
def self.compare_path(a, b)
Expand Down

0 comments on commit 9de5d28

Please sign in to comment.