Re-checks current resource on prefernce change and editor selection