You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we rename in VS code editor module alias ChitoGreetor in module1 then it will be renamed
in module2 too. Besides, if we look for references using "Find all references" in module1 then
it finds references in module2 too.
Expected behavior:
Rename the alias only locally in one module which uses the import.
And find references locally either.
The text was updated successfully, but these errors were encountered:
ghost
changed the title
VS 2015 code editor renames imports globally instead only for a module
VS 2015 code editor renames imports globally instead of only for a module
Apr 19, 2016
Uh oh!
There was an error while loading. Please reload this page.
This issue is in lieu of the issue #8118 (which was closed by @mhegazy , and according to his comment this should not happen as the alias is local)
TypeScript Version:
1.8.9
Code
For example we have 3 modules: app.ts, module1.ts and module2.ts
in app.ts module we have:
in module1.ts module we have:
in module2.ts module we have (the same import alias as in module1!):
Actual behavior:
If we rename in VS code editor module alias ChitoGreetor in module1 then it will be renamed
in module2 too. Besides, if we look for references using "Find all references" in module1 then
it finds references in module2 too.
Expected behavior:
Rename the alias only locally in one module which uses the import.
And find references locally either.
The text was updated successfully, but these errors were encountered: