dotnet/roslyn

Feature Request: Namespaced autocomplete

Open

#75.342 aperta il 2 ott 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-IDEhelp wanted

Metriche repository

Star
 (20.414 star)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

Right now you either get all types from unimported namespaces, or the immediate children if you type out the namespace.

With "namespaced autocomplete", if we have:

namespace Foo {
    namespace N1 { public class SomeClass1; }
    namespace N2 { public class SomeClass2; }
}
namespace Bar {
    namespace N3 { public class SomeClass3; }
    namespace N4 { public class SomeClass4; }
}

then dotting off either namespace would only list types nested in that namespace.

Foo. // list only SomeClass1, SomeClass2

This is still considering unimported namespaces but scoped only to the one that is spelled out.

Guida contributor