question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add the ability to rename / move SourceFiles

See original GitHub issue

Would be nice to be able to rename or move a SourceFile to a different directory.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dsherretcommented, Feb 25, 2018

I looked around a bit, but didn’t immediately find anything using the TypeScript compiler. I also briefly just looked at the code for findReferences in the TypeScript repo, but I didn’t find anything useful in there yet (maybe getImportersForExport). I’ll have to look back again later.

0reactions
dsherretcommented, Mar 18, 2018

FYI, it uses a lazy graph now in v9.4.0 so it should be way faster for moving lots of files.

I talked with the Typescript team and they told me about getAllDependencies in BuilderProgram, but it seems dependent on compilation (ex. returning all files when specifying the outFile or out compiler options). So I had to roll with my own implementation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

to move files and rename if needed - TechNet - Microsoft
PSIsContainer)} # verify if the list of source files is empty if ($files -ne ... How can I add a sequential number right...
Read more >
Move and rename file with double extension using MSBuild
Starting with MSBuild 4.0 we can use String Item Functions, for example Replace: <ItemGroup> <RenameFile Include="Main\App.*" ...
Read more >
How To Move or Rename a File using MSBuild | Blog - Ardalis
Move File Task or Rename File Task ... <Copy SourceFiles=" ... There's also a library of tasks you can install separately that includes...
Read more >
Rename, Move, and Copy Files - JRiver Media Center Wiki
Right -click > Library Tools > Rename, Move, & Copy Files ... This mode does not alter the Library or the source files...
Read more >
Working With Files - Gradle User Manual
You do this by adding an into() declaration for just the PDFs: ... Gradle has no API for moving files and directories around,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found