Disabled findAllRefs for 'this'/'super'.
This commit is contained in:
parent
1cd0b306ed
commit
131ac2f188
2 changed files with 7 additions and 3 deletions
|
@ -2378,8 +2378,9 @@ module ts {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node.kind !== SyntaxKind.Identifier &&
|
if (node.kind !== SyntaxKind.Identifier &&
|
||||||
node.kind !== SyntaxKind.ThisKeyword &&
|
// TODO (drosen): This should be enabled in a later release - currently breaks rename.
|
||||||
node.kind !== SyntaxKind.SuperKeyword &&
|
//node.kind !== SyntaxKind.ThisKeyword &&
|
||||||
|
//node.kind !== SyntaxKind.SuperKeyword &&
|
||||||
!isLiteralNameOfPropertyDeclarationOrIndexAccess(node) &&
|
!isLiteralNameOfPropertyDeclarationOrIndexAccess(node) &&
|
||||||
!isNameOfExternalModuleImportOrDeclaration(node)) {
|
!isNameOfExternalModuleImportOrDeclaration(node)) {
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|
|
@ -12,4 +12,7 @@
|
||||||
|
|
||||||
goTo.file("file1.ts");
|
goTo.file("file1.ts");
|
||||||
goTo.marker();
|
goTo.marker();
|
||||||
verify.referencesCountIs(8);
|
|
||||||
|
// TODO (drosen): The CURRENT behavior is that findAllRefs doesn't work on 'this' or 'super' keywords.
|
||||||
|
// This should change down the line.
|
||||||
|
verify.referencesCountIs(0);
|
Loading…
Reference in a new issue