Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion internal/ls/findallreferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,10 @@ func getReferencedSymbolsForSymbol(originalSymbol *ast.Symbol, node *ast.Node, s
symbol := core.Coalesce(skipPastExportOrImportSpecifierOrUnion(originalSymbol, node, checker /*useLocalSymbolForExportSpecifier*/, !isForRenameWithPrefixAndSuffixText(options)), originalSymbol)

// Compute the meaning from the location and the symbol it references
searchMeaning := getIntersectingMeaningFromDeclarations(node, symbol, ast.SemanticMeaningAll)
searchMeaning := ast.SemanticMeaningAll
if options.use != referenceUseRename {
searchMeaning = getIntersectingMeaningFromDeclarations(node, symbol, ast.SemanticMeaningAll)
}
state := newState(sourceFiles, sourceFilesSet, node, checker /*, cancellationToken*/, searchMeaning, options)

var exportSpecifier *ast.Node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// === /renameAlias3.ts ===
// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } }
// import M = SomeModule;
// import C = M.SomeClass;
// import C = M.[|SomeClassRENAME|];



// === findRenameLocations ===
// === /renameAlias3.ts ===
// module SomeModule { export class SomeClass { } }
// module SomeModule { export class [|SomeClassRENAME|] { } }
// import M = SomeModule;
// import C = M./*RENAME*/[|SomeClassRENAME|];

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@
// module SomeModule { export class /*RENAME*/[|SomeClassRENAME|] { } }
// export = SomeModule;

// === /b.ts ===
// import M = require("./a");
// import C = M.[|SomeClassRENAME|];



// === findRenameLocations ===
// === /a.ts ===
// module SomeModule { export class [|SomeClassRENAME|] { } }
// export = SomeModule;

// === /b.ts ===
// import M = require("./a");
// import C = M./*RENAME*/[|SomeClassRENAME|];

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// === findRenameLocations ===
// === /canada.ts ===
// export interface /*RENAME*/[|GingerRENAME|] {}
// export interface /*RENAME*/[|GingerRENAME|] {}

// === /dry.ts ===
// import { [|GingerRENAME|] as Ale } from './canada';

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
// }
// }
//
// const a: [|NSRENAME|].E = NS.E.A;
// const a: [|NSRENAME|].E = [|NSRENAME|].E.A;

This file was deleted.