Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/better_errors/editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class Editor
{ symbols: [:textmate, :txmt, :tm], sniff: /mate/i, url: "txmt://open?url=file://%{file}&line=%{line}" },
{ symbols: [:vscode, :code], sniff: /code/i, url: "vscode://file/%{file}:%{line}" },
{ symbols: [:vscodium, :codium], sniff: /codium/i, url: "vscodium://file/%{file}:%{line}" },
{ symbols: [:cursor], sniff: /cursor/i, url: "cursor://file/%{file}:%{line}" }
]

def self.for_formatting_string(formatting_string)
Expand Down Expand Up @@ -80,7 +81,7 @@ def url(raw_path, line)
else
file = raw_path
end

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line change?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, it was an automated change. Would you like me to remove it?

url_proc.call(file, line)
end

Expand Down