Besides checking whether this editor is the currently active one and has the focus, it also checks the followings:
If any of the above-mentioned additional checks evaluates to true the canHandle will evaluate to false.
true
canHandle
false
See: https://github.com/eamodio/vscode-gitlens/blob/57226d54d1e929be04b02ee31ca294c50305481b/package.json#L2857
Besides checking whether this editor is the currently active one and has the focus, it also checks the followings:
If any of the above-mentioned additional checks evaluates to
true
thecanHandle
will evaluate tofalse
.See: https://github.com/eamodio/vscode-gitlens/blob/57226d54d1e929be04b02ee31ca294c50305481b/package.json#L2857