Closed
Description
module SomeModule { export class SomeClass {} }
import M = SomeModule; // or import M = require(...)
import C = M.SomeClass;
On the M
identifier in M.SomeClass
, getSymbolAtLocation returns the SomeModule
module symbol, rather than the alias M
to it.
This affects renaming, find references, and occurrence highlighting:
- If you select the
M
inimport M = ...
, the secondM
will not be found - If you select the
M
inimport C = M.SomeClass
, the firstM
will not be found, but the twoSomeModule
references will be found instead.