Community
Participate
Working Groups
that.timeout = null;
}, 5000);
var files = [{type:'full', name:params.input, text:text}]; //$NON-NLS-1$
var offset = params.offset;
if (params.annotation) {
// this is used in the quickfix to get the right offset
offset = params.annotation.start;
}
that.ternworker.postMessage(
{request:'rename', args:{params:{offset: params.offset}, files: files, meta:{location: params.input}, newname:''}}, //$NON-NLS-1$
{request:'rename', args:{params:{offset: offset}, files: files, meta:{location: params.input}, newname:''}}, //$NON-NLS-1$
function(response) {
var changes = response.changes;
if(changes && changes.changes && changes.changes.length > 0) {
'no-self-compare' : 'Disallow self compare:',
'no-irregular-whitespace' : 'No irregular whitespace:',
'no-self-assign' : 'Disallow self assignment:',
'type-checked-consistent-return' : 'Report return inconsistent types'
'type-checked-consistent-return' : 'Report return inconsistent types',
'noShadowFixName' : 'Rename in scope'
});
{source: "annotation:id", match: "^(?:no-new-array)$"} //$NON-NLS-1$ //$NON-NLS-2$
]
);
provider.registerServiceProvider("orion.edit.command", //$NON-NLS-1$
new RenameCommand.RenameCommand(astManager, ternWorker, scriptresolver, CUProvider),
{
name: javascriptMessages["noShadowFixName"],
scopeId: "orion.edit.quickfix", //$NON-NLS-1$
id : "no.shadow.fix", //$NON-NLS-1$
contentType: ['application/javascript', 'text/html'], //$NON-NLS-1$ //$NON-NLS-2$
validationProperties: [
source: "annotation:id", //$NON-NLS-1$
match: "^(?:no-shadow)$" //$NON-NLS-1$
/**
* legacy pref id