Skip to content

Sticky scroll doesn't work with C++ 17 nested namespaces #159271

@stefanhaller

Description

@stefanhaller

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.71.0-insider, Commit: 9529e11
  • OS Version: macOS 12.5.1 (21G83)

Steps to Reproduce:

Sticky scroll does not work correctly for a file like this:

namespace A::B {

void func() {
  //
  //
  //
  //
}

} // namespace A::B

Scrolling into the body of func() shows a sticky scroll area containing only namespace A::B {. I expect two lines instead, like this:

namespace A::B {
void func() {

However, it does work for a C++ file like this:

namespace A {
namespace B {

void func() {
  //
  //
  //
  //
}

} // namespace B
} // namespace A

In this case, scrolling into the body of func() shows a sticky scroll area containing three lines, as expected:

namespace A {
namespace B {
void func() {

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-sticky-scrollinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions