BigBahss/vscode-cmantic

"Move Definition" chooses wrong file

Spongman opened this issue · 0 comments

given:

A/Foo.hpp:

namespace A {
struct Foo {
  Foo();
};
}

B/Foo.hpp:

#include "../A/Foo.hpp"
namespace B {
struct Foo : public A:Foo {
  Foo();
  void member() {}
};
}

with corresponding .cpp files in each directory.

If I try to "Move Definition" on B::member, then it moves it to A/Foo.cpp.