From 73190db2b867fb738ff9d0b7af6216eb4748b767 Mon Sep 17 00:00:00 2001 From: David Kean Date: Wed, 22 Jul 2026 12:40:23 +1000 Subject: [PATCH] Opt out of IntelliSense-ready deferral for the EF entity designer editor factory The entity (.edmx) designer doesn't reach CodeModel on open, so it has no reason to wait for IntelliSense. Sets DeferUntilIntellisenseIsReady=false on both the ProvideEditorFactory attribute and the checked-in pkgdef so they stay in sync -- the package ships a hand-authored pkgdef that is the authoritative registration for this editor factory. *Cowritten with Copilot (Claude Opus 4.8)* --- src/EFTools/EntityDesignPackage/GeneratedCode/Package.cs | 2 +- .../PkgDefData/Microsoft.Data.Entity.Design.Package.pkgdef | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/EFTools/EntityDesignPackage/GeneratedCode/Package.cs b/src/EFTools/EntityDesignPackage/GeneratedCode/Package.cs index ae16c4df..59f394be 100644 --- a/src/EFTools/EntityDesignPackage/GeneratedCode/Package.cs +++ b/src/EFTools/EntityDesignPackage/GeneratedCode/Package.cs @@ -48,7 +48,7 @@ namespace Microsoft.Data.Entity.Design.Package "vs.edm.common.inheritancerelationships", "@InheritanceToolToolboxBitmap;Microsoft.Data.Entity.Design.EntityDesigner.dll", 0xff00ff)] - [VSShell::ProvideEditorFactory(typeof(MicrosoftDataEntityDesignEditorFactory), 103, TrustLevel = VSShellInterop::__VSEDITORTRUSTLEVEL.ETL_AlwaysTrusted)] + [VSShell::ProvideEditorFactory(typeof(MicrosoftDataEntityDesignEditorFactory), 103, deferUntilIntellisenseIsReady: false, TrustLevel = VSShellInterop::__VSEDITORTRUSTLEVEL.ETL_AlwaysTrusted)] [VSShell::ProvideEditorExtension(typeof(MicrosoftDataEntityDesignEditorFactory), "." + Constants.DesignerFileExtension, 50)] [DslShell::ProvideRelatedFile("." + Constants.DesignerFileExtension, Constants.DefaultDiagramExtension, ProjectSystem = DslShell::ProvideRelatedFileAttribute.CSharpProjectGuid, diff --git a/src/EFTools/EntityDesignPackage/PkgDefData/Microsoft.Data.Entity.Design.Package.pkgdef b/src/EFTools/EntityDesignPackage/PkgDefData/Microsoft.Data.Entity.Design.Package.pkgdef index 98546916..7bd43a1f 100644 --- a/src/EFTools/EntityDesignPackage/PkgDefData/Microsoft.Data.Entity.Design.Package.pkgdef +++ b/src/EFTools/EntityDesignPackage/PkgDefData/Microsoft.Data.Entity.Design.Package.pkgdef @@ -9,6 +9,7 @@ "EditorTrustLevel"=dword:00000001 "Package"="{8889e051-b7f9-4781-bb33-2a36a9bdb3a5}" "CommonPhysicalViewAttributes"=dword:00000002 +"DeferUntilIntellisenseIsReady"=dword:00000000 [$RootKey$\Editors\{c99aea30-8e36-4515-b76f-496f5a48a6aa}\Extensions] "edmx"=dword:0000003d