which_editor: remove Atom.

It's been deprecated. Make VSCode first because it's what we recommend.
This commit is contained in:
Mike McQuaid 2023-02-23 08:53:32 +00:00
parent 5272640cfc
commit aca3eead71
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -365,8 +365,8 @@ module Kernel
editor = Homebrew::EnvConfig.editor editor = Homebrew::EnvConfig.editor
return editor if editor return editor if editor
# Find Atom, Sublime Text, VS Code, Textmate, BBEdit, or vim # Find VS Code, Sublime Text, Textmate, BBEdit, or vim
editor = %w[atom subl code mate bbedit vim].find do |candidate| editor = %w[code subl mate bbedit vim].find do |candidate|
candidate if which(candidate, ORIGINAL_PATHS) candidate if which(candidate, ORIGINAL_PATHS)
end end
editor ||= "vim" editor ||= "vim"