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

intelisense problem #346

Closed
jrieken opened this issue Nov 26, 2015 · 9 comments
Closed

intelisense problem #346

jrieken opened this issue Nov 26, 2015 · 9 comments

Comments

@jrieken
Copy link
Contributor

jrieken commented Nov 26, 2015

From @MasoodRezazadeh on November 26, 2015 12:53

there is no code suggestions for OVERRIDE ... last night it tooks till 6 AM for me to figure out that in DbContext i should override OnConfiguring with DbContextOptionsBuilder parameter not DbContextOptions ...

Copied from original issue: microsoft/vscode#709

@jrieken
Copy link
Contributor Author

jrieken commented Nov 26, 2015

Please provide details steps include a code sample so that we can understand and reproduce

@jrieken
Copy link
Contributor Author

jrieken commented Nov 26, 2015

From @MasoodRezazadeh on November 26, 2015 13:12

public class AvaContext: DbContext
    {
        public DbSet<Place> Places { get; set; }
        public DbSet<Location> Locations { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

        }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            var appEnv = CallContextServiceLocator.Locator.ServiceProvider
                            .GetRequiredService<IApplicationEnvironment>();
            optionsBuilder.UseSqlite($@"Data Source={appEnv.ApplicationBasePath}/../apiava/avaDB.db");
        }
    }

using EntityFramework 7 i created this context , for adding db connection query string OnConfiguring method should be overriden and in vscode intelisense not seggesting that or OnModelCreating

@jrieken
Copy link
Contributor Author

jrieken commented Nov 26, 2015

@MasoodRezazadeh Do I understand correctly that this is a feature request for IntelliSense helping you to implement a method? Like so

public class AvaContext: DbContext
    {
        public DbSet<Place> Places { get; set; }
        public DbSet<Location> Locations { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

        }
        OnCon<IntelliSense> -> Propose to override?
    }

@jrieken
Copy link
Contributor Author

jrieken commented Nov 26, 2015

From @MasoodRezazadeh on November 26, 2015 14:49

@jrieken Yes i Thought this feature should be available for newbies like me

@jrieken
Copy link
Contributor Author

jrieken commented Nov 26, 2015

ok. understood. moving to OmniSharp cos they drive the C# features

@david-driscoll
Copy link
Member

It's possible it can be added, but we're waiting on the new service via #78, which would also solve the same problem.

@DustinCampbell
Copy link
Contributor

This service probably wouldn't solve the problem precisely. "Override" completion has pretty specialized support since it has to do extra things like move the editor caret into the generated method. This is the same situation for XML doc comment completion (which moves the caret between the inserted start/end XML tags) and partial method completion after typing the "partial" keyword.

@333fred
Copy link
Contributor

333fred commented May 30, 2021

@filipw I think this can be closed out, right?

@filipw
Copy link
Member

filipw commented May 31, 2021

yes we missed it somehow

@filipw filipw closed this as completed May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants