From 1ae48113f664e01dbc761ec4a347e36c9214cfc0 Mon Sep 17 00:00:00 2001 From: Todd Grunke Date: Sat, 22 Mar 2025 08:05:15 -0700 Subject: [PATCH] Unseal a method that TS has IVT to and overrides --- src/VisualStudio/Core/Def/LanguageService/AbstractPackage.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/VisualStudio/Core/Def/LanguageService/AbstractPackage.cs b/src/VisualStudio/Core/Def/LanguageService/AbstractPackage.cs index 403d2cfb5f217..8e0525c11acf3 100644 --- a/src/VisualStudio/Core/Def/LanguageService/AbstractPackage.cs +++ b/src/VisualStudio/Core/Def/LanguageService/AbstractPackage.cs @@ -27,7 +27,8 @@ internal IComponentModel ComponentModel /// This method is called upon package creation and is the mechanism by which roslyn packages calculate and /// process all package initialization work. Do not override this sealed method, instead override RegisterOnAfterPackageLoadedAsyncWork /// to indicate the work your package needs upon initialization. - protected sealed override Task InitializeAsync(CancellationToken cancellationToken, IProgress progress) + /// Not sealed as TypeScriptPackage has IVT and derives from this class and implements this method. + protected override Task InitializeAsync(CancellationToken cancellationToken, IProgress progress) => RegisterAndProcessTasksAsync(RegisterInitializeAsyncWork, cancellationToken); /// This method is called after package load and is the mechanism by which roslyn packages calculate and