vscode-swift icon indicating copy to clipboard operation
vscode-swift copied to clipboard

Display files generated by build plugins in file browser

Open rauhul opened this issue 10 months ago • 5 comments

It would be really to be able to open and view files generated by swiftpm build tool plugins. Ideally these would look like "gitignored" files in the target folder they are included in.

rauhul avatar May 18 '25 19:05 rauhul

@rauhul vscode has a concept of multi-root workspaces where you could add other source trees to the workspace. Is that sufficient?

award999 avatar May 27 '25 14:05 award999

@rauhul vscode has a concept of multi-root workspaces where you could add other source trees to the workspace. Is that sufficient?

Could you not also add generated files into the swift-project view?

adam-fowler avatar May 27 '25 15:05 adam-fowler

@award999 well the other "source" tree is in the build folder so its already in the package source tree just buried under .build. But moreover I dont want to go digging through .build to find the files. it would be a much better UX to show them under the target they get compiled with.

@adam-fowler I'm not following sorry, can you explain further?

rauhul avatar May 27 '25 16:05 rauhul

@adam-fowler I'm not following sorry, can you explain further?

The swift project view which includes the Dependencies, Targets and Tasks sections could also include a Generated files section.

adam-fowler avatar May 29 '25 07:05 adam-fowler

@adam-fowler thats an interesting idea! I don't think its as good as a user experience but it's certainly wayyyy more accessible than the build folder.

It also occurred to me we could also show generated modulemaps etc which would make debugging C target issues SO much easier.

rauhul avatar May 29 '25 15:05 rauhul

Verified with 58ad058e6d135dfb17514c475b4068721364944d, works great

award999 avatar Jul 21 '25 13:07 award999