This is an example to showcase a missing refactoring feature in TypeScript for projects which use multiple tsconfig.json
files. I use VS Code to demonstrate the problem.
$ git clone [email protected]:donaldpipowitch/typescript-refactoring-references.git
$ cd typescript-refactoring-references
$ yarn
$ yarn build
- Open
packages/add/src/add.ts
in VS Code andRename Symbol
the exported function fromadd
toadd2
.
add
is not correctly renamed to add2
inside packages/use-add/src/use-add.ts
.
If you run Find All References
for add
inside packages/add/src/add.ts
, it also doesn't show its usage in the use-add
package.