JetBrains / JetBrains/resharper-unity

Copy package to Packages folder to make editable

Open
#1,505 1 comment 0 reactions 0 assignees View on GitHub
packages
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

If trying to edit a file from a read only package (e.g. something referenced from `manifest.json`), prompt to copy the package to the Packages folder and make editable. If accepted, copy the entire package folder from its current location (i.e. `Library/PackageCache`) to the `Packages` folder. Also make sure the files are no longer read-only.

Care needs to be taken to:
* Copy everything in the background
* Once complete, notify Unity to refresh the asset database. This should rebuild projects and include the new folder as one or more projects
* Close currently open files from that package to avoid confusion?
* What happens to the existing cached folder?

Contributor guide

Open the contributing guide

Research direction

Start by tracing how read-only files referenced from manifest.json are handled, along with package locations in Library/PackageCache and Packages. Define the copy, background operation, read-only removal, Unity asset-database refresh, open-file handling, and cached-folder behavior; completion requires these cases to be resolved and implemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
game-dev, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.