Skip to content

Commit

Permalink
Merge pull request #7023 from drewnoakes/launch-profiles
Browse files Browse the repository at this point in the history
Add a link to show the new Launch Profile UI
  • Loading branch information
drewnoakes authored Apr 1, 2021
2 parents dd2e356 + 07a2797 commit 20d7f46
Show file tree
Hide file tree
Showing 16 changed files with 115 additions and 34 deletions.
2 changes: 1 addition & 1 deletion docs/repo/property-pages/property-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ The click handler is exported via:
[ExportMetadata("CommandName", "MyCommandName")]
internal sealed class MyCommandActionHandler : ILinkActionHandler
{
public void Handle(IReadOnlyDictionary<string, string> editorMetadata)
public void Handle(ProjectContext projectContext, IReadOnlyDictionary<string, string> editorMetadata)
{
// Handle command invocation
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE.md file in the project root for more information.

namespace Microsoft.VisualStudio.ProjectSystem.Properties
{
[ExportInterceptingPropertyValueProvider("OpenLaunchProfilesEditor", ExportInterceptingPropertyValueProviderFile.ProjectFile)]
internal sealed class OpenLaunchProfilesEditorValueProvider : NoOpInterceptingPropertyValueProvider
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,29 @@
xmlns="http://schemas.microsoft.com/build/2009/properties">

<Rule.DataSource>
<DataSource Persistence="ProjectFile"
<DataSource Persistence="ProjectFileWithInterception"
SourceOfDefaultValue="AfterContext"
HasConfigurationCondition="False" />
</Rule.DataSource>

<StringProperty Name="DebugPagePlaceholderDescription"
DisplayName="Ignored"
Description="The new Project Properties UI is under development, and the ability to edit launch profiles has not yet been completed. Please either edit the launchProfiles.json file manually, or revert to the previous Property Pages as described in the banner at the top of this page. We will be adding this feature very soon.">
<StringProperty.DataSource>
<DataSource PersistedName="DebugPagePlaceholderDescription"
Persistence="ProjectFileWithInterception"
HasConfigurationCondition="False" />
</StringProperty.DataSource>
Description="The management of launch profiles has moved to a dedicated dialog. It may be accessed via the link below.">
<StringProperty.ValueEditors>
<ValueEditor EditorType="Description" />
</StringProperty.ValueEditors>
</StringProperty>

<StringProperty Name="OpenLaunchProfilesEditor"
DisplayName="Open debug launch profiles UI">
<StringProperty.ValueEditors>
<ValueEditor EditorType="LinkAction">
<ValueEditor.Metadata>
<NameValuePair Name="Action" Value="Command" />
<NameValuePair Name="Command" Value="OpenLaunchProfilesEditor" />
</ValueEditor.Metadata>
</ValueEditor>
</StringProperty.ValueEditors>
</StringProperty>

</Rule>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 20d7f46

Please sign in to comment.