From bb349dafccb1e174059079e4f6fda060ba909b93 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Mon, 23 Feb 2015 16:50:16 -0800 Subject: [PATCH] Add a comment --- src/services/services.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services/services.ts b/src/services/services.ts index 79d27517369..38d444b6f68 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -3244,6 +3244,10 @@ module ts { return undefined; } + // If this is an alias, and the request came at the declaration location + // get the aliased symbol instead. This allows for goto def on an import e.g. + // import {A, B} from "mod"; + // to jump to the implementation directelly. if (symbol.flags & SymbolFlags.Import) { var declaration = symbol.declarations[0]; if (node.kind === SyntaxKind.Identifier && node.parent === declaration) {