Skip to content

program file improvements#506

Merged
TwitchBronBron merged 3 commits intomasterfrom
file-add-improvements
Feb 7, 2022
Merged

program file improvements#506
TwitchBronBron merged 3 commits intomasterfrom
file-add-improvements

Conversation

@TwitchBronBron
Copy link
Member

@TwitchBronBron TwitchBronBron commented Feb 4, 2022

  • Improves program.getFile() to support absolute and relative paths. This more closely aligns with the v1 implementation (excluding support currently for having pkg:/ prefixes for pkgPath like v1 has);
  • deprecates getFileByPathAbsolute and getFileByPkgPath in favor of using getFile for both. (they still work, but typescript will show them in strikethrough)
    image
  • deprecates getFilesByPkgPath in favor of `getFiles (same point as above)
  • internal Program assignFile and unassignFile methods to clean up that logic (aligns with v1 implementation).
  • adds helper getFirstScopeForFile function to find the first scope for a file
  • moves FileLink interface into interfaces since it's not really a Program-specific interface.

@TwitchBronBron TwitchBronBron merged commit 56f4408 into master Feb 7, 2022
@TwitchBronBron TwitchBronBron deleted the file-add-improvements branch February 7, 2022 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant