Skip to content

Enable SourceLink and add back generated code #548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Nov 6, 2018

Conversation

angularsen
Copy link
Owner

@angularsen angularsen commented Nov 3, 2018

Retry of #538, this time for v4 branch.

  • Re-enable SourceLink for source debugging, also for JSON and WRC
  • Disable building symbols nuget packages
  • Add back all generate code, required for SourceLink to work
  • Mark .g.cs files as generated to auto-collapse in GitHub PR reviews

SourceLink debugging 🕵️

Tested with VS 2017.8.9 and a simple test project, then trying to step into the library with a nuget built by AppVeyor. When using locally built nugets, it will find the original source code unless you moved it first.

image

image

Auto-collapse .g.cs files 🔼

A single-line change to 180 generated files are now collapsed by default. Previously it would load as many diffs as it could muster (limited to a couple of full screens or so).

image

No more .symbols.nupkg files

I also did it for WindowsRuntimeComponent, but it seems UWP apps don't support navigating into nuget source code - even with v3's symbols nugets or with v4's SourceLink. Did it for consistency.

image

@angularsen angularsen force-pushed the v4-sourcelink-and-add-back-generated-code branch 2 times, most recently from ca8fda0 to de0e211 Compare November 4, 2018 07:49
@angularsen angularsen changed the title WIP - Enable SourceLink and add back generated code Enable SourceLink and add back generated code Nov 4, 2018
tmilnthorp and others added 7 commits November 4, 2018 09:05
Instead of zip clone, since SourceLink nuget fails
to resolve the git repository without a proper clone.
This should tell GitHub and possibly other tools to
collapse these by default when reviewing PRs.
You can still expand them if you want to look at them,
but it greatly reduces noise when generating hundreds of
files.

Source: https://robots.thoughtbot.com/github-diff-supression
Remove symbols package.
@angularsen angularsen force-pushed the v4-sourcelink-and-add-back-generated-code branch from de0e211 to 40083cf Compare November 4, 2018 09:05
@angularsen angularsen added this to the 4.0 milestone Nov 4, 2018
# C#
*.cs diff=csharp
*.cs diff=csharp
*.g.cs linguist-generated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might have to make this

**/*.g.cs linguist-generated=true

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess it's fine 😃

@tmilnthorp tmilnthorp merged commit f8b0b1a into v4 Nov 6, 2018
@angularsen angularsen deleted the v4-sourcelink-and-add-back-generated-code branch December 16, 2018 10:50
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.

2 participants