Skip to content

VS2015 code editor for TypeScript shows all the references incorrectly #8118

Closed
@ghost

Description

TypeScript Version: 1.8.9 (Visual Studio 2015)

I have a problem of finding all references (uses) for imported declaration of an interface or class
into a module.

For example i have a dialog module: dialog.ts (in any other module the same behaviour)
https://github.com/BBGONE/JRIApp/blob/master/FRAMEWORK/CLIENT/addins/ui/jriapp_ui/dialog.ts

it contains
Code

import { ITemplate, ITemplateEvents, IApplication, IVoidPromise, IEditable, IBaseObject,
    TEventHandler, ISelectableProvider, IDeferred } from "jriapp_core/shared";
import * as langMOD from "jriapp_core/lang";
import { BaseObject } from "jriapp_core/object";
import { Utils as utils, DomUtils as dom, ERROR } from "jriapp_utils/utils";
import { bootstrap } from "jriapp_core/bootstrap";
import { ViewModel } from "jriapp_parts/mvvm";

Actual behavior:

When i click in VS2015 code editor with right button on imported class or interface or variable
and select "Find all references" in the menu it finds all the references for imported variable in the whole project !

P.S. - Stange but for
import * as langMOD from "jriapp_core/lang";

if i click on langMOD to find refences for it then it produces correct result- for the references to langMOD in the current module.
But for all other imported parts which use {} to import them. The result is references in the whole project.

Expected behavior:

Show only the references in the current module

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignDeprecated - use "Working as Intended" or "Design Limitation" instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions