Skip to content

Fix issues with opening source generated files#47846

Merged
4 commits merged intodotnet:masterfrom
jasonmalinowski:fix-issues-with-opening-source-generated-files
Sep 19, 2020
Merged

Fix issues with opening source generated files#47846
4 commits merged intodotnet:masterfrom
jasonmalinowski:fix-issues-with-opening-source-generated-files

Conversation

@jasonmalinowski
Copy link
Member

@jasonmalinowski jasonmalinowski commented Sep 18, 2020

Fixes a smattering of small bugs; commit-by-commit is easiest.

@jasonmalinowski jasonmalinowski requested a review from a team as a code owner September 18, 2020 19:36
@jasonmalinowski jasonmalinowski self-assigned this Sep 18, 2020
Copy link
Member

Choose a reason for hiding this comment

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

just want to check - the temp file could exist because it was already navigated to once, is that the scenario?

Copy link
Member Author

Choose a reason for hiding this comment

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

@dibarbet Yes; if the file was already open we were still writing it a second time which triggered a reload.

If the file is already open, then this was causing us to trigger a
reload prompt which we don't want.
This factory service was only being used to ensure there's a singleton
across all workspaces, but that can be just as easily done by exporting
it directly.
I passed the span to navigate to along to the service, and then never
used it. Oops.
Source Generators always run now.
@jasonmalinowski jasonmalinowski force-pushed the fix-issues-with-opening-source-generated-files branch from ae9bebc to 2ea0d2c Compare September 18, 2020 22:55
@ghost
Copy link

ghost commented Sep 18, 2020

Hello @jasonmalinowski!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Auto-approval

@ghost ghost merged commit 4e2cb83 into dotnet:master Sep 19, 2020
@ghost ghost added this to the Next milestone Sep 19, 2020
@jasonmalinowski jasonmalinowski deleted the fix-issues-with-opening-source-generated-files branch September 21, 2020 18:27
@dibarbet dibarbet modified the milestones: Next, 16.8.P4 Sep 21, 2020
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants