Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

Fixes #71300

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner November 22, 2024 00:35
@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Nov 22, 2024
@dibarbet
Copy link
Member

Fixes #71300

Is 71300 the right issue? Seems already closed and not related

if (lastIndex < triviaList.Count && triviaList[lastIndex].IsEndOfLine())
lastIndex++;

return triviaList.Take(lastIndex);
Copy link
Member

Choose a reason for hiding this comment

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

didn't quite get why we need this filtering at a glance - mind adding a comment on it?

Copy link
Member

Choose a reason for hiding this comment

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

seems like its trying to get all the trivia up to the last comment and new line - but not sure why we aren't taking all the trivia?

Copy link
Member Author

Choose a reason for hiding this comment

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

the idea is that we want to grab up through the last comment and the newline that follows and only move those over if it exists. we don't want to generally move things like when the user only has blank lines above the inner call. i will doc :)

@CyrusNajmabadi CyrusNajmabadi merged commit cac0219 into dotnet:main Nov 22, 2024
25 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the removeLamdbaComments branch November 22, 2024 19:28
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Nov 22, 2024
@jjonescz jjonescz modified the milestones: Next, 17.13 P2 Nov 25, 2024
@drewnoakes
Copy link
Member

Fixes #71300

Is 71300 the right issue? Seems already closed and not related

Should be #60741

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IDE0200 is not reported in .NET 8 but works in .NET 7 for injected dependencies

4 participants