sc ide: switch editor type along with document type