code: function(editorContext, options) {
  			var that = this;
  			var deferred = new Deferred();
  			editorContext.getFileMetadata().then(function(metadata) {
  				if(Array.isArray(metadata.parents) && metadata.parents.length > 1) {
  					that.scriptResolver.setSearchLocation(metadata.parents[metadata.parents.length - 1].Location);
  				} else {
  					that.scriptResolver.setSearchLocation(null);	
  				}
  	    		return that._doRename(editorContext, options, deferred);
  			}, /* @callback */ function(err) {
  				deferred.reject({Severity: 'Error', Message: Messages['noFileMeta']}); //$NON-NLS-1$
  			});
  			return deferred;
  		}
docs: /*
  override
  @callback