From 65326e99f18f1341414fea4a32da6b3c3a97348e Mon Sep 17 00:00:00 2001 From: emfisch <26634764+emfisch@users.noreply.github.com> Date: Sun, 2 Feb 2025 20:46:41 -0600 Subject: [PATCH] Use AppliesTo Attribute Only for LaunchSettings-Specific Query Providers (#9641) This is a follow up to these PRs: https://github.com/dotnet/project-system/pull/9621, https://github.com/dotnet/project-system/pull/9631 The TypeScript/JavaScript team is working on adding a version of the launch profiles UI that reads/writes from` launch.json `rather than` launchsettings.json`. We'd like reuse dotnet's existing functionality for this, with the exception of actions specific to modifying ` launchsettings.json`. With this PR, all actions specific to ` launchsettings.json` have been moved into a separate class (`LaunchProfileProjectActionProvider`) with relevant filtering `([AppliesTo(ProjectCapability.DotNet)])`. I have removed this filtering from the other action providers so they can be used for JSPS projects as well. --- .../VS/Query/LaunchProfiles/LaunchProfileActionProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/LaunchProfiles/LaunchProfileActionProvider.cs b/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/LaunchProfiles/LaunchProfileActionProvider.cs index 4b87195fd9..27823d0765 100644 --- a/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/LaunchProfiles/LaunchProfileActionProvider.cs +++ b/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Query/LaunchProfiles/LaunchProfileActionProvider.cs @@ -22,7 +22,7 @@ namespace Microsoft.VisualStudio.ProjectSystem.VS.Query; [QueryActionProvider(ProjectModelActionNames.SetLaunchProfilePropertyValue, typeof(SetLaunchProfilePropertyValue))] [QueryDataProviderZone(ProjectModelZones.Cps)] [Export(typeof(IQueryActionProvider))] -[AppliesTo(ProjectCapability.DotNet)] +[AppliesTo(ProjectCapability.LaunchProfiles)] internal sealed class LaunchProfileActionProvider : IQueryActionProvider { public IQueryActionExecutor CreateQueryActionDataTransformer(ExecutableStep executableStep)