docs.sublimetext.io icon indicating copy to clipboard operation
docs.sublimetext.io copied to clipboard

`exec` argument hide_phantoms_only no longer works in ST4

Open haferburg opened this issue 3 years ago • 3 comments

It says __init__() got an unexpected keyword argument 'hide_phantoms_only'

https://docs.sublimetext.io/reference/commands.html#exec

haferburg avatar Jun 04 '21 07:06 haferburg

Indeed, this parameter has been removed in ST4.

FichteFoll avatar Jun 04 '21 11:06 FichteFoll

@FichteFoll Is there a replacement?

haferburg avatar Jun 04 '21 11:06 haferburg

Not a direct replacement, no. Build results messages are now shown in annotations and cleared with a callback instead of via a command argument, but you could just create a custom command that runs view.erase_regions("exec").

FichteFoll avatar Jun 06 '21 18:06 FichteFoll