In recent CLI versions, LSP will suggest code actions for enabling/disabling linters and opening the Trunk config. By registering commands to the commands table, we can provide callbacks for these.
Atm we don't have a non-ANSI coloring mode so we strip the output again with sed.
This approach will likely not be feasible for emacs since if the commands don't exist it will attempt to execute them on the command line IIRC.
In recent CLI versions, LSP will suggest code actions for enabling/disabling linters and opening the Trunk config. By registering commands to the
commands
table, we can provide callbacks for these.Atm we don't have a non-ANSI coloring mode so we strip the output again with
sed
.This approach will likely not be feasible for
emacs
since if the commands don't exist it will attempt to execute them on the command line IIRC.