Use Workspace::getActiveTextEditor

Signed-off-by: Nathan Sobo <nathan@github.com>