Skip to content

Same references from different (but not found) modules #5551

@jkillian

Description

@jkillian

If you have code like the following:

import { resolve as resolveUrl } from 'url';
import { resolve } from 'path';

getDocumentHighlights marks both references of resolve as the same if the modules 'url' and 'path' can't be found. However, if 'url' and 'path' can be found, it correctly differentiates between the two.

I know this is somewhat of an edge-case, but is this intended behavior? Or is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions