Skip to content

Fix syntactic range computation.#52672

Merged
CyrusNajmabadi merged 3 commits intodotnet:mainfrom
CyrusNajmabadi:outOfBounds
Apr 16, 2021
Merged

Fix syntactic range computation.#52672
CyrusNajmabadi merged 3 commits intodotnet:mainfrom
CyrusNajmabadi:outOfBounds

Conversation

@CyrusNajmabadi
Copy link
Contributor

Regression introduced with the recent cahnge to report a minimal text change to the editor for classification. In some cases, teh text change was too minimal, leading to us not classifying.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner April 16, 2021 00:25
@ghost ghost added the Area-IDE label Apr 16, 2021
// If the two nodes/tokens were the same just skip past them. They're part of the common right width.
if (currentOld.IsIncrementallyIdenticalTo(currentNew))
// Critically though, we can only skip past if this wasn't already something we consumed when determining
// the common left width. If this was common the left side, we can't consider it common to the right,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// the common left width. If this was common the left side, we can't consider it common to the right,
// the common left width. If this was common to the left side, we can't consider it common to the right,

@CyrusNajmabadi CyrusNajmabadi merged commit 243bd42 into dotnet:main Apr 16, 2021
@ghost ghost added this to the Next milestone Apr 16, 2021
@jasonmalinowski
Copy link
Member

Good catch!

@dibarbet dibarbet modified the milestones: Next, 16.10.P3 Apr 26, 2021
@CyrusNajmabadi CyrusNajmabadi deleted the outOfBounds branch May 6, 2021 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants