function canSyncModel(modelService, resource) {
        var model = modelService.getModel(resource);
        if (!model) {
            return false;
        }
        if (model.isTooLargeForTokenization()) {
            return false;
        }
        return true;
    }
Stop the worker if it was not needed for 5 min.