From 629ea860430c58d7054a31c5cf75c05cc7d1a2cc Mon Sep 17 00:00:00 2001 From: Paul van Brenk Date: Wed, 19 Nov 2014 15:05:07 -0800 Subject: [PATCH] Updated test case and added comment --- src/services/services.ts | 1 + tests/cases/fourslash/quickInfoForRequire.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/services.ts b/src/services/services.ts index 4fa28c56016..ef16b1f1cc7 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -4693,6 +4693,7 @@ module ts { case SyntaxKind.ImportDeclaration: return SemanticMeaning.Value | SemanticMeaning.Type | SemanticMeaning.Namespace; + // An external module can be a Value case SyntaxKind.SourceFile: return SemanticMeaning.Namespace | SemanticMeaning.Value; } diff --git a/tests/cases/fourslash/quickInfoForRequire.ts b/tests/cases/fourslash/quickInfoForRequire.ts index 394f1074363..91d59cb4318 100644 --- a/tests/cases/fourslash/quickInfoForRequire.ts +++ b/tests/cases/fourslash/quickInfoForRequire.ts @@ -7,4 +7,5 @@ ////import a = require("AA/B/*1*/B"); goTo.marker('1'); -verify.quickInfoIs('module a'); \ No newline at end of file +verify.quickInfoIs('module a'); +verify.referencesCountIs(0); \ No newline at end of file