Skip to content
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

Outlining is incorrect with nested namespaces when a child namespace matches a parent namespace #7023

Closed
sean-mcmanus opened this issue Feb 22, 2021 · 0 comments
Labels
bug Feature: Document Symbol Outline view and breadcrumbs fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Milestone

Comments

@sean-mcmanus
Copy link
Collaborator

Repro is

namespace foo1
{
	int foo1;
	namespace foo2
	{
		namespace foo1::foo4
		{
			int foo2;
		}
		int foo1;
	}
}

Changing foo1::foo4 to foo3::foo4 shows the correct behavior.

Not sure if any real world code would be hitting this, but it could point to an underlying problem with the algorithm used that could potentially be causing other bugs.

@bobbrow bobbrow added this to the 1.3.0 milestone Feb 25, 2021
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Mar 4, 2021
@sean-mcmanus sean-mcmanus removed their assignment Mar 13, 2021
@github-actions github-actions bot locked and limited conversation to collaborators May 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Feature: Document Symbol Outline view and breadcrumbs fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Projects
None yet
Development

No branches or pull requests

2 participants