Skip to content

Fix inline-temp not being offered in linked-files.#48693

Merged
CyrusNajmabadi merged 2 commits intodotnet:masterfrom
CyrusNajmabadi:inlineTempLinkedFiles
Oct 18, 2020
Merged

Fix inline-temp not being offered in linked-files.#48693
CyrusNajmabadi merged 2 commits intodotnet:masterfrom
CyrusNajmabadi:inlineTempLinkedFiles

Conversation

@CyrusNajmabadi
Copy link
Contributor

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner October 16, 2020 19:48
@Dotnet-GitSync-Bot

This comment has been minimized.

@CyrusNajmabadi CyrusNajmabadi force-pushed the inlineTempLinkedFiles branch 2 times, most recently from 7875ba7 to deb35ae Compare October 16, 2020 19:50
{
var referencedSymbol = CreateReferencedSymbol("Goo", 1);

Assert.Equal("Goo, 1 ref", referencedSymbol.GetTestAccessor().GetDebuggerDisplay());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these testswere useless. 1. testing debugger display is not necessary. 2. it was doing this bizarre thing about ensuring that hte debugger display only accesses the name of a symbol. all entirely unnecessary.

{
await VerifyAgainstWorkspaceDefinitionAsync(expectedText, newSolution, workspace.ExportProvider);
var newSolutionWithLinkedFiles = await newSolution.WithMergedLinkedFileChangesAsync(oldSolution);
await VerifyAgainstWorkspaceDefinitionAsync(expectedText, newSolutionWithLinkedFiles, workspace.ExportProvider);
Copy link
Member

Choose a reason for hiding this comment

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

Should this be opt-in in some way? I'm worried this will hide bad code which doesn't account for linked files, but the tests don't fail, or make bugs harder to fix by making it harder to make a failing test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i don't think so. We really want this. Code actions shouldn't need to update other parts of a linked file. They just update one, and the workspace does this. The primary issue here is htat we're not going through the workspace, so we don't get that behavior.

All this code goes away as we move more and more tests over to the roslyn-sdk (which does the right thing and goes through the workspace).

@CyrusNajmabadi CyrusNajmabadi merged commit 51548ef into dotnet:master Oct 18, 2020
@ghost ghost added this to the Next milestone Oct 18, 2020
@CyrusNajmabadi CyrusNajmabadi deleted the inlineTempLinkedFiles branch October 18, 2020 22:54
@allisonchou allisonchou modified the milestones: Next, 16.9.P2 Nov 24, 2020
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.

4 participants